public ContainerDecomposer(InventoryPlayer inventoryPlayer, TileEntityDecomposer decomposer) { this.decomposer = decomposer; kPlayerInventorySlotStart = decomposer.getSizeInventory(); kPlayerInventorySlotEnd = kPlayerInventorySlotStart + (9 * 4); kDecomposerInventoryEnd = decomposer.getSizeInventory(); addSlotToContainer(new Slot(decomposer, decomposer.kInputSlot, 80, 16)); bindOutputSlots(); bindBottleSlots(); bindPlayerInventory(inventoryPlayer); }
@Override public boolean canInteractWith(EntityPlayer entityPlayer) { return decomposer.isUseableByPlayer(entityPlayer); }