Posted April 13, 201312 yr My ItemStack[] in my TileEntity = null after entering the world, only if I open my Container the ItemStack[] gets filled with data, but i want it to be loaded on world startup, cause the rendering of the block is diffrent when there are diffrent Items inside it Thanks
April 16, 201312 yr You have to synchronize TileEntity on both sides: server -> client. It's done by implementing getDescriptionPacket and onDataPacket (when you want to force a server to send update you'd use worldObj.markBlockForUpdate). Example: https://github.com/mnn/jaffas/blob/98acc4d9607d6493b82b277b3bfea3b7dacffc69/src/minecraft/monnef/jaffas/food/block/TileEntityPie.java mnn.getNativeLang() != English If I helped you please click on the "thank you" button.
April 16, 201312 yr You have to synchronize TileEntity on both sides: server -> client. It's done by implementing getDescriptionPacket and onDataPacket (when you want to force a server to send update you'd use worldObj.markBlockForUpdate). Example: https://github.com/mnn/jaffas/blob/98acc4d9607d6493b82b277b3bfea3b7dacffc69/src/minecraft/monnef/jaffas/food/block/TileEntityPie.java mnn.getNativeLang() != English If I helped you please click on the "thank you" button.
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.