public class PacketUtil
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static void |
writeItemStackFromClientToServer(PacketBuffer buffer,
ItemStack stack)
Most ItemStack serialization is Server to Client, and must go through PacketBuffer.writeItemStack which uses Item.getNBTShareTag.
|
public static void writeItemStackFromClientToServer(PacketBuffer buffer, ItemStack stack)