use of forestry.farming.logic.FarmLogicRedOrchid in project ForestryMC by ForestryMC.
the class PluginExtraUtilities method doInit.
@Override
public void doInit() {
Block redOrchid = getBlock("redorchid");
Block enderLilly = getBlock("enderlilly");
if (Config.isExUtilRedOrchidEnabled() && redOrchid != null) {
Item item = Item.getItemFromBlock(redOrchid);
registerFarmable(redOrchid, item, "farmOrchid");
IFarmProperties orchidFarm = FarmRegistry.getInstance().registerLogic("farmOrchid", FarmLogicRedOrchid::new);
orchidFarm.registerSoil(new ItemStack(Blocks.REDSTONE_ORE), Blocks.REDSTONE_ORE.getDefaultState());
orchidFarm.registerSoil(new ItemStack(Blocks.LIT_REDSTONE_ORE), Blocks.LIT_REDSTONE_ORE.getDefaultState());
Circuits.farmOrchidManaged = new CircuitFarmLogic("managedOrchid", orchidFarm, false);
Circuits.farmOrchidManual = new CircuitFarmLogic("manualOrchid", orchidFarm, true);
orchidStack = new ItemStack(item);
}
if (Config.isExUtilEnderLilyEnabled() && enderLilly != null) {
Item item = Item.getItemFromBlock(enderLilly);
registerFarmable(enderLilly, item, "farmEnder");
}
}
Aggregations