Okay so I made a Tile-Entity and i'm having a problem with the render. When I put an object in the Tile-Entity (in this case an itemstack) and open the GUI to do so, it updates the Render. However when I Reload the Chunk I have to Open The Tile-Entity for the Render to Update. I have learned that on client side it will not see the itemstack in the Tile-Entity till it's opened. Is there anyway I can force the game to auto update The Tile-Entity on the client side so it can begin ticking the render properly? To provide a little more insight have added my classes (in the 1.8 version) below.
Override TileEntity#getDescriptionPacket to write the data that needs syncing to NBT (use TileEntity#serializeNBT [1.8.9] or TileEntity#writeToNBT (1.8) if everything should be synced) and create and return an S35PacketUpdateTileEntity with the TileEntity's position, block metadata and the NBT data. This packet will automatically be sent from the server to the clients for any TileEntities in chunks loaded by players.
Override TileEntity#onDataPacket to read the data from the packet's NBT on the client.
Side note: Always add the @Override annotation to override methods to assert that they actually override a super method or implement an interface method.
Chisel Facades: For all your decorative pipe-hiding needs.
Please don't PM me to ask for help or to join your mod development team. Asking your question in a public thread preserves it for people who are having the same problem in the future. I'm not interested in developing mods with people.
Okay so I made a Tile-Entity and i'm having a problem with the render. When I put an object in the Tile-Entity (in this case an itemstack) and open the GUI to do so, it updates the Render. However when I Reload the Chunk I have to Open The Tile-Entity for the Render to Update. I have learned that on client side it will not see the itemstack in the Tile-Entity till it's opened. Is there anyway I can force the game to auto update The Tile-Entity on the client side so it can begin ticking the render properly? To provide a little more insight have added my classes (in the 1.8 version) below.
TileEntity.class
Container.class
Render.class
Override TileEntity#getDescriptionPacket to write the data that needs syncing to NBT (use TileEntity#serializeNBT [1.8.9] or TileEntity#writeToNBT (1.8) if everything should be synced) and create and return an S35PacketUpdateTileEntity with the TileEntity's position, block metadata and the NBT data. This packet will automatically be sent from the server to the clients for any TileEntities in chunks loaded by players.
Override TileEntity#onDataPacket to read the data from the packet's NBT on the client.
Side note: Always add the @Override annotation to override methods to assert that they actually override a super method or implement an interface method.
Chisel Facades: For all your decorative pipe-hiding needs.
Please don't PM me to ask for help or to join your mod development team. Asking your question in a public thread preserves it for people who are having the same problem in the future. I'm not interested in developing mods with people.
Okay, I added that to the TileEntity.class but it dosen't update till I open the Container.
Do to lack of Activity this Thread has been marked Abandoned.
(may we never know.)
~ Thread Unsolved
~ Thread Locked