mirror of
https://github.com/GTNewHorizons/Binnie.git
synced 2026-11-25 14:34:33 +00:00
More null annotations
This commit is contained in:
1 parent
da8a833485
commit
a5daa93bf1
163 files changed
+952
-849
No files matched your search
@@ -4,6 +4,8 @@ import binnie.core.machines.Machine;
|
||||
import binnie.core.machines.TileEntityMachine;
|
||||
import binnie.core.machines.inventory.ComponentInventorySlots;
|
||||
import binnie.core.machines.inventory.ComponentTankContainer;
|
||||
import binnie.core.machines.inventory.InventorySlot;
|
||||
import binnie.core.machines.inventory.TankSlot;
|
||||
import binnie.core.machines.inventory.TankValidator;
|
||||
import binnie.core.machines.power.ComponentPowerReceptor;
|
||||
import binnie.craftgui.minecraft.IMachineInformation;
|
||||
@@ -13,12 +15,12 @@ import binnie.extratrees.machines.ExtraTreeMachine;
|
||||
import net.minecraft.tileentity.TileEntity;
|
||||
|
||||
public class LumbermillMachine extends ExtraTreeMachine.PackageExtraTreeMachine implements IMachineInformation {
|
||||
public static int SLOT_LOG = 0;
|
||||
public static int SLOT_PLANKS = 1;
|
||||
public static int SLOT_BARK = 2;
|
||||
public static int SLOT_SAWDUST = 3;
|
||||
public static int TANK_WATER = 0;
|
||||
public static int TANK_WATER_CAPACITY = 10000;
|
||||
public static final int SLOT_LOG = 0;
|
||||
public static final int SLOT_PLANKS = 1;
|
||||
public static final int SLOT_BARK = 2;
|
||||
public static final int SLOT_SAWDUST = 3;
|
||||
public static final int TANK_WATER = 0;
|
||||
public static final int TANK_WATER_CAPACITY = 10000;
|
||||
|
||||
public LumbermillMachine() {
|
||||
super("lumbermill", ExtraTreeTexture.lumbermillTexture, true);
|
||||
@@ -28,18 +30,19 @@ public class LumbermillMachine extends ExtraTreeMachine.PackageExtraTreeMachine
|
||||
public void createMachine(final Machine machine) {
|
||||
new ExtraTreeMachine.ComponentExtraTreeGUI(machine, ExtraTreesGUID.Lumbermill);
|
||||
final ComponentInventorySlots inventory = new ComponentInventorySlots(machine);
|
||||
inventory.addSlot(SLOT_LOG, "input");
|
||||
inventory.getSlot(SLOT_LOG).setValidator(new SlotValidatorLog());
|
||||
inventory.getSlot(SLOT_LOG).forbidExtraction();
|
||||
inventory.addSlot(SLOT_PLANKS, "output");
|
||||
inventory.addSlot(SLOT_BARK, "byproduct");
|
||||
inventory.addSlot(SLOT_SAWDUST, "byproduct");
|
||||
inventory.getSlot(SLOT_PLANKS).setReadOnly();
|
||||
inventory.getSlot(SLOT_BARK).setReadOnly();
|
||||
inventory.getSlot(SLOT_SAWDUST).setReadOnly();
|
||||
|
||||
InventorySlot slotLog = inventory.addSlot(SLOT_LOG, "input");
|
||||
slotLog.setValidator(new SlotValidatorLog());
|
||||
slotLog.forbidExtraction();
|
||||
|
||||
inventory.addSlot(SLOT_PLANKS, "output").setReadOnly();
|
||||
inventory.addSlot(SLOT_BARK, "byproduct").setReadOnly();
|
||||
inventory.addSlot(SLOT_SAWDUST, "byproduct").setReadOnly();
|
||||
|
||||
final ComponentTankContainer tanks = new ComponentTankContainer(machine);
|
||||
tanks.addTank(TANK_WATER, "input", TANK_WATER_CAPACITY);
|
||||
tanks.getTankSlot(TANK_WATER).setValidator(new TankValidator.Basic("water"));
|
||||
TankSlot tankWater = tanks.addTank(TANK_WATER, "input", TANK_WATER_CAPACITY);
|
||||
tankWater.setValidator(new TankValidator.Basic("water"));
|
||||
|
||||
new ComponentPowerReceptor(machine);
|
||||
new LumbermillLogic(machine);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user