Search in sources :

Example 1 with FarmLogicRubber

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);
    }
}
Also used : FarmLogicRubber(forestry.farming.logic.FarmLogicRubber) ICircuitLayout(forestry.api.circuits.ICircuitLayout) IFarmProperties(forestry.api.farming.IFarmProperties) ICircuitLayout(forestry.api.circuits.ICircuitLayout) CircuitLayout(forestry.core.circuits.CircuitLayout) CircuitFarmLogic(forestry.farming.circuits.CircuitFarmLogic)

Aggregations

ICircuitLayout (forestry.api.circuits.ICircuitLayout)1 IFarmProperties (forestry.api.farming.IFarmProperties)1 CircuitLayout (forestry.core.circuits.CircuitLayout)1 CircuitFarmLogic (forestry.farming.circuits.CircuitFarmLogic)1 FarmLogicRubber (forestry.farming.logic.FarmLogicRubber)1