Posted March 13, 20196 yr I have this problem that when I get the tile data of a chest it is empty. I use world.getTileEntity(pos).getTileData(), and that works on one of my custom ones, which looks like this: "{built:1b,multiblock:"test.json",multiblockcenter:[I;-906,5,310]}", but if I print the chest data it is empty ("{}"). Why is that?
March 13, 20196 yr Author I want to pass the data to the ItemStackHelper to get the items it contains. ItemStackHelper.loadAllItems(container.getTileData(), items); Edited March 13, 20196 yr by Jummit
March 13, 20196 yr Author What do I have to give the getCapability function? This doesn't work: container.getCapability(IItemHandler.class, EnumFacing.EAST); EDIT: Got it. container.getCapability(CapabilityItemHandler.ITEM_HANDLER_CAPABILITY, EnumFacing.EAST); Edited March 13, 20196 yr by Jummit
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.