public class InventoryS2CPacket extends Object implements Packet<ClientPlayPacketListener>
Modifier and Type | Field and Description |
---|---|
private List<ItemStack> |
contents |
private int |
syncId
The
ScreenHandler.syncId of a screen handler. |
Constructor and Description |
---|
InventoryS2CPacket() |
InventoryS2CPacket(int syncId,
DefaultedList<ItemStack> contents) |
Modifier and Type | Method and Description |
---|---|
void |
apply(ClientPlayPacketListener clientPlayPacketListener) |
List<ItemStack> |
getContents() |
int |
getSyncId() |
void |
read(PacketByteBuf buf) |
void |
write(PacketByteBuf buf) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
isWritingErrorSkippable
private int syncId
ScreenHandler.syncId
of a screen handler.public InventoryS2CPacket()
public InventoryS2CPacket(int syncId, DefaultedList<ItemStack> contents)
public void read(PacketByteBuf buf) throws IOException
read
in interface Packet<ClientPlayPacketListener>
IOException
public void write(PacketByteBuf buf) throws IOException
write
in interface Packet<ClientPlayPacketListener>
IOException
public void apply(ClientPlayPacketListener clientPlayPacketListener)
apply
in interface Packet<ClientPlayPacketListener>
@Environment(value=CLIENT) public int getSyncId()