Hello,
I am currently having problems for syncing ItemStack capabilities to the client side for tools and other items. Current my method of syncing is by override the onUpdate method of its Item Class and sending the NBT (of the capability) and the slot of the player. My slot checking code is as follows:
public static int getSlot(EntityPlayer ep, ItemStack is){
int i = ep.openContainer.inventorySlots.size();
for(int ii=0; ii<i; ii++){
if(ep.openContainer.get
There are two main ways to sync item capability data:
Override Item#getNBTShareTag, as suggested in this PR and various other issues.
Register an IContainerListener for EntityPlayer#inventoryContainer on PlayerLoggedInEvent and PlayerEvent.Clone and for PlayerContainerEvent#getContainer on PlayerContainerEvent.Open.
I use the latter in my mod. This class is responsible for registering the IContainerListener instances with each Container, this is the base class for the IContaine