use of binnie.core.machines.inventory.ComponentInventorySlots in project Binnie by ForestryMC.
the class InfuserMachine method createMachine.
@Override
public void createMachine(final Machine machine) {
new ExtraTreeMachine.ComponentExtraTreeGUI(machine, ExtraTreesGUID.INFUSER);
final ComponentInventorySlots inventory = new ComponentInventorySlots(machine);
final ComponentTankContainer tanks = new ComponentTankContainer(machine);
final TankSlot input = tanks.addTank(Infuser.TANK_INPUT, "input", 5000);
input.setValidator(new TankValidatorInfuserInput());
input.forbidExtraction();
final TankSlot output = tanks.addTank(Infuser.TANK_OUTPUT, "output", 5000);
output.setValidator(new TankValidatorInfuserOutput());
output.setReadOnly();
new ComponentPowerReceptor(machine);
new InfuserLogic(machine);
}
use of binnie.core.machines.inventory.ComponentInventorySlots in project Binnie by ForestryMC.
the class DistilleryMachine method createMachine.
@Override
public void createMachine(final Machine machine) {
new ExtraTreeMachine.ComponentExtraTreeGUI(machine, ExtraTreesGUID.DISTILLERY);
final ComponentInventorySlots inventory = new ComponentInventorySlots(machine);
final ComponentTankContainer tanks = new ComponentTankContainer(machine);
final TankSlot input = tanks.addTank(TANK_INPUT, "input", 5000);
input.setValidator(new TankValidatorDistilleryInput());
input.forbidExtraction();
final TankSlot output = tanks.addTank(TANK_OUTPUT, "output", 5000);
output.setValidator(new TankValidatorDistilleryOutput());
output.setReadOnly();
new ComponentPowerReceptor(machine);
new DistilleryLogic(machine);
}
use of binnie.core.machines.inventory.ComponentInventorySlots in project Binnie by ForestryMC.
the class BreweryMachine method createMachine.
@Override
public void createMachine(final Machine machine) {
new ExtraTreeMachine.ComponentExtraTreeGUI(machine, ExtraTreesGUID.BREWERY);
final ComponentInventorySlots inventory = new ComponentInventorySlots(machine);
for (final InventorySlot slot : inventory.addSlotArray(SLOT_RECIPE_GRAINS, new ResourceLocation(Constants.CORE_MOD_ID, "gui.slot.grain"))) {
slot.setValidator(new SlotValidatorBreweryGrain());
slot.setType(InventorySlot.Type.Recipe);
}
for (final InventorySlot slot : inventory.addSlotArray(SLOTS_INVENTORY, new ResourceLocation(Constants.CORE_MOD_ID, "gui.slot.inventory"))) {
slot.forbidExtraction();
}
final InventorySlot yeast = inventory.addSlot(SLOT_YEAST, getSlotRL("yeast"));
yeast.setValidator(new SlotValidatorBreweryYeast());
yeast.setType(InventorySlot.Type.Recipe);
final InventorySlot ingredient = inventory.addSlot(SLOT_RECIPE_INPUT, getSlotRL("ingredient"));
ingredient.setValidator(new SlotValidatorBreweryIngredient());
ingredient.setType(InventorySlot.Type.Recipe);
final ComponentTankContainer tanks = new ComponentTankContainer(machine);
TankSlot input = tanks.addTank(TANK_INPUT, "input", 5000);
input.setValidator(new TankValidatorFermentInput());
input.forbidExtraction();
final TankSlot output = tanks.addTank(TANK_OUTPUT, "output", 5000);
output.setValidator(new TankValidatorFermentOutput());
output.setReadOnly();
new ComponentPowerReceptor(machine);
new BreweryLogic(machine);
}
use of binnie.core.machines.inventory.ComponentInventorySlots in project Binnie by ForestryMC.
the class PackageDesigner method createMachine.
@Override
public void createMachine(final Machine machine) {
new ExtraTreeMachine.ComponentExtraTreeGUI(machine, ExtraTreesGUID.WOODWORKER);
final ComponentInventorySlots inventory = new ComponentInventorySlots(machine);
inventory.addSlot(DesignerSlots.ADHESIVE_SLOT, getSlotRL("polish")).setValidator(new SlotValidatorDesignAdhesive(this.type));
inventory.addSlot(DesignerSlots.DESIGN_SLOT_1, getSlotRL("wood")).setValidator(new SlotValidatorDesignMaterial(this.type));
inventory.addSlot(DesignerSlots.DESIGN_SLOT_2, getSlotRL("wood")).setValidator(new SlotValidatorDesignMaterial(this.type));
new ComponentDesignerRecipe(machine, this.type);
}
use of binnie.core.machines.inventory.ComponentInventorySlots in project Binnie by ForestryMC.
the class PackageLabMachine method createMachine.
@Override
public void createMachine(final Machine machine) {
new ComponentGUIHolder(machine);
new LabFX(machine);
ComponentInventorySlots inventory = new ComponentInventorySlots(machine);
inventory.addSlot(0, new ResourceLocation(GENETICS_MOD_ID, "lab_display"));
}
Aggregations