public class ScreenHandlerSlotUpdateS2CPacket extends Object implements Packet<ClientPlayPacketListener>
| Modifier and Type | Field and Description |
|---|---|
private int |
slot |
private ItemStack |
stack |
private int |
syncId |
| Constructor and Description |
|---|
ScreenHandlerSlotUpdateS2CPacket() |
ScreenHandlerSlotUpdateS2CPacket(int syncId,
int slot,
ItemStack stack) |
| Modifier and Type | Method and Description |
|---|---|
void |
apply(ClientPlayPacketListener clientPlayPacketListener) |
ItemStack |
getItemStack() |
int |
getSlot() |
int |
getSyncId() |
void |
read(PacketByteBuf buf) |
void |
write(PacketByteBuf buf) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitisWritingErrorSkippableprivate int syncId
private int slot
private ItemStack stack
public ScreenHandlerSlotUpdateS2CPacket()
public ScreenHandlerSlotUpdateS2CPacket(int syncId,
int slot,
ItemStack stack)
public void apply(ClientPlayPacketListener clientPlayPacketListener)
apply in interface Packet<ClientPlayPacketListener>public void read(PacketByteBuf buf) throws IOException
read in interface Packet<ClientPlayPacketListener>IOExceptionpublic void write(PacketByteBuf buf) throws IOException
write in interface Packet<ClientPlayPacketListener>IOException@Environment(value=CLIENT) public int getSyncId()
@Environment(value=CLIENT) public int getSlot()
@Environment(value=CLIENT) public ItemStack getItemStack()