use of forestry.farming.logic.FarmLogicRubber in project ForestryMC by ForestryMC.
the class PluginIC2 method preInit.
@Override
@Optional.Method(modid = PluginIC2.MOD_ID)
public void preInit() {
// rubber chain
rubberWood = IC2Items.getItem("rubber_wood");
resin = IC2Items.getItem("misc_resource", "resin");
rubberSapling = IC2Items.getItem("sapling");
rubber = IC2Items.getItem("crafting", "rubber");
fertilizer = IC2Items.getItem("crop_res", "fertilizer");
IFarmProperties rubberFarm = FarmRegistry.getInstance().registerLogic("farmRubber", FarmLogicRubber::new);
Circuits.farmRubberManual = new CircuitFarmLogic("manualRubber", rubberFarm, true);
ICircuitLayout layoutEngineTin = new CircuitLayout("engine.tin", CircuitSocketType.ELECTRIC_ENGINE);
ChipsetManager.circuitRegistry.registerLayout(layoutEngineTin);
if (fertilizer != null) {
FarmRegistry.getInstance().registerFertilizer(fertilizer, 250);
}
}
Aggregations