@Override public boolean isItemValid(ItemStack stack) { return validator.isItemValid(stack); }
public ContainerFisher(InventoryPlayer inventory, TileEntity tile) { super(inventory, tile); myTile = (TileFisher) tile; addSlotToContainer(new SlotValidated(this, myTile, 0, 35, 35)); addSlotToContainer(new SlotRemoveOnly(myTile, 1, 107, 26)); addSlotToContainer(new SlotRemoveOnly(myTile, 2, 125, 26)); addSlotToContainer(new SlotRemoveOnly(myTile, 3, 107, 44)); addSlotToContainer(new SlotRemoveOnly(myTile, 4, 125, 44)); }
public ContainerInsolator(InventoryPlayer inventory, TileEntity tile) { super(inventory, tile); myTile = (TileInsolator) tile; addSlotToContainer(new SlotValidated(lockSlot, myTile, 0, 32, 26)); addSlotToContainer(new SlotValidated(otherSlot, myTile, 1, 56, 26)); addSlotToContainer(new SlotRemoveOnly(myTile, 2, 116, 26)); addSlotToContainer(new SlotRemoveOnly(myTile, 3, 116, 53)); addSlotToContainer(new SlotEnergy(myTile, myTile.getChargeSlot(), 8, 53)); }
public ContainerLexiconTransmute(InventoryPlayer inventory) { bindPlayerInventory(inventory); addSlotToContainer(new SlotValidated(this, lexiconInv, 0, 59, 61)); addSlotToContainer(new SlotRemoveOnly(lexiconInv, 1, 131, 61)); addSlotToContainer(new SlotLocked(lexiconInv, 2, 95, 33)); onCraftMatrixChanged(lexiconInv); }
public ContainerPrecipitator(InventoryPlayer inventory, TileEntity tile) { super(inventory, tile); myTile = (TilePrecipitator) tile; addSlotToContainer(new SlotRemoveOnly(myTile, 0, 134, 26)); addSlotToContainer(new SlotEnergy(myTile, myTile.getChargeSlot(), 8, 53)); /* Custom Inventory */ addSlotToContainer(new SlotCustomInventory(myTile, 0, null, 0, 89, 53, false)); }
public ContainerBrewer(InventoryPlayer inventory, TileEntity tile) { super(inventory, tile); myTile = (TileBrewer) tile; addSlotToContainer(new SlotValidated(this, myTile, 0, 80, 34)); addSlotToContainer(new SlotEnergy(myTile, myTile.getChargeSlot(), 8, 53)); }
public ContainerRefinery(InventoryPlayer inventory, TileEntity tile) { super(inventory, tile); myTile = (TileRefinery) tile; addSlotToContainer(new SlotRemoveOnly(myTile, 0, 116, 35)); addSlotToContainer(new SlotEnergy(myTile, myTile.getChargeSlot(), 8, 53)); }
public ContainerCentrifuge(InventoryPlayer inventory, TileEntity tile) { super(inventory, tile); myTile = (TileCentrifuge) tile; addSlotToContainer(new SlotValidated(this, myTile, 0, 44, 26)); addSlotToContainer(new SlotRemoveOnly(myTile, 1, 107, 26)); addSlotToContainer(new SlotRemoveOnly(myTile, 2, 125, 26)); addSlotToContainer(new SlotRemoveOnly(myTile, 3, 107, 44)); addSlotToContainer(new SlotRemoveOnly(myTile, 4, 125, 44)); addSlotToContainer(new SlotEnergy(myTile, myTile.getChargeSlot(), 8, 53)); }
public ContainerFactorizer(InventoryPlayer inventory, TileEntity tile) { super(inventory, tile); myTile = (TileFactorizer) tile; addSlotToContainer(new SlotValidated(this, myTile, 0, 44, 26)); addSlotToContainer(new SlotRemoveOnly(myTile, 1, 116, 26)); }
public ContainerExtruder(InventoryPlayer inventory, TileEntity tile) { super(inventory, tile); myTile = (TileExtruder) tile; addSlotToContainer(new SlotRemoveOnly(myTile, 0, 134, 26)); addSlotToContainer(new SlotEnergy(myTile, myTile.getChargeSlot(), 8, 53)); /* Custom Inventory */ addSlotToContainer(new SlotCustomInventory(myTile, 0, null, 0, 89, 53, false)); }
@Override public boolean isItemValid(ItemStack stack) { return validator.isItemValid(stack); }
public ContainerSmelter(InventoryPlayer inventory, TileEntity tile) { super(inventory, tile); myTile = (TileSmelter) tile; addSlotToContainer(new SlotValidated(lockSlot, myTile, 0, 32, 26)); addSlotToContainer(new SlotValidated(otherSlot, myTile, 1, 56, 26)); addSlotToContainer(new SlotRemoveOnly(myTile, 2, 116, 26)); addSlotToContainer(new SlotRemoveOnly(myTile, 3, 116, 53)); addSlotToContainer(new SlotEnergy(myTile, myTile.getChargeSlot(), 8, 53)); }
public ContainerMobCatcher(InventoryPlayer inventory, TileEntity tile) { super(inventory, tile); myTile = (TileMobCatcher) tile; addSlotToContainer(new SlotValidated(this, myTile, 0, 35, 35)); addSlotToContainer(new SlotRemoveOnly(myTile, 1, 107, 26)); addSlotToContainer(new SlotRemoveOnly(myTile, 2, 125, 26)); addSlotToContainer(new SlotRemoveOnly(myTile, 3, 107, 44)); addSlotToContainer(new SlotRemoveOnly(myTile, 4, 125, 44)); }
public ContainerSawmill(InventoryPlayer inventory, TileEntity tile) { super(inventory, tile); myTile = (TileSawmill) tile; addSlotToContainer(new SlotValidated(this, myTile, 0, 53, 26)); addSlotToContainer(new SlotRemoveOnly(myTile, 1, 116, 26)); addSlotToContainer(new SlotRemoveOnly(myTile, 2, 116, 53)); addSlotToContainer(new SlotEnergy(myTile, myTile.getChargeSlot(), 8, 53)); }
public ContainerLexicon(InventoryPlayer inventory, TileEntity tile) { super(inventory, tile); myTile = (TileLexicon) tile; addSlotToContainer(new SlotValidated(this, myTile, 0, 26, 35)); addSlotToContainer(new SlotRemoveOnly(myTile, 1, 134, 35)); for (int i = 0; i < 3; i++) { for (int j = 0; j < 3; j++) { addSlotToContainer(new SlotLexicon(myTile, 2 + j + i * 3, 62 + j * 18, 17 + i * 18)); } } }
public ContainerCharger(InventoryPlayer inventory, TileEntity tile) { super(inventory, tile); myTile = (TileCharger) tile; addSlotToContainer(new SlotValidated(this, myTile, 0, 44, 35)); addSlotToContainer(new SlotRemoveOnly(myTile, 1, 80, 35)); addSlotToContainer(new SlotRemoveOnly(myTile, 2, 125, 35)); addSlotToContainer(new SlotEnergy(myTile, myTile.getChargeSlot(), 8, 53)); }
public ContainerEnchanter(InventoryPlayer inventory, TileEntity tile) { super(inventory, tile); myTile = (TileEnchanter) tile; addSlotToContainer(new SlotValidated(lockSlot, myTile, 0, 32, 26)); addSlotToContainer(new SlotValidated(otherSlot, myTile, 1, 56, 26)); addSlotToContainer(new SlotRemoveOnly(myTile, 2, 116, 35)); addSlotToContainer(new SlotEnergy(myTile, myTile.getChargeSlot(), 8, 53)); }
public ContainerPulverizer(InventoryPlayer inventory, TileEntity tile) { super(inventory, tile); myTile = (TilePulverizer) tile; addSlotToContainer(new SlotValidated(this, myTile, 0, 53, 26)); addSlotToContainer(new SlotRemoveOnly(myTile, 1, 116, 26)); addSlotToContainer(new SlotRemoveOnly(myTile, 2, 116, 53)); addSlotToContainer(new SlotEnergy(myTile, myTile.getChargeSlot(), 8, 53)); }
public ContainerTransposer(InventoryPlayer inventory, TileEntity tile) { super(inventory, tile); myTile = (TileTransposer) tile; addSlotToContainer(new SlotValidated(this, myTile, 0, 44, 19)); addSlotToContainer(new SlotRemoveOnly(myTile, 1, 80, 19)); addSlotToContainer(new SlotRemoveOnly(myTile, 2, 80, 49)); addSlotToContainer(new SlotEnergy(myTile, myTile.getChargeSlot(), 8, 53)); }
public ContainerCompactor(InventoryPlayer inventory, TileEntity tile) { super(inventory, tile); myTile = (TileCompactor) tile; addSlotToContainer(new SlotValidated(this, myTile, 0, 53, 26)); addSlotToContainer(new SlotRemoveOnly(myTile, 1, 116, 35)); addSlotToContainer(new SlotEnergy(myTile, myTile.getChargeSlot(), 8, 53)); }