public ContainerFoodPrep( InventoryPlayer playerinv, TEFoodPrep pile, World world, int x, int y, int z) { this.player = playerinv.player; this.te = pile; this.world = world; this.posX = x; this.posY = y; this.posZ = z; pile.openChest(); layoutContainer(playerinv, pile, 0, 0); PlayerInventory.buildInventoryLayout(this, playerinv, 8, 90, false, true); }
/** Callback for when the crafting gui is closed. */ @Override public void onContainerClosed(EntityPlayer par1EntityPlayer) { super.onContainerClosed(par1EntityPlayer); te.closeChest(); }