writeItemStackFromClientToServer
public static void writeItemStackFromClientToServer(PacketBuffer buffer,
ItemStack stack)
Most ItemStack serialization is Server to Client, and must go through PacketBuffer.writeItemStack which uses Item.getNBTShareTag.
One exception is items from the creative menu, which must be sent from Client to Server with their full NBT.
This method matches PacketBuffer.writeItemStack but without the Item.getNBTShareTag patch.
It is compatible with PacketBuffer.readItemStack.