public class ClickWindowC2SPacket extends Object implements Packet<ServerPlayPacketListener>
Modifier and Type | Field and Description |
---|---|
private short |
actionId |
private SlotActionType |
actionType |
private int |
clickData |
private int |
slot |
private ItemStack |
stack |
private int |
syncId |
Constructor and Description |
---|
ClickWindowC2SPacket() |
ClickWindowC2SPacket(int syncId,
int slot,
int clickData,
SlotActionType actionType,
ItemStack stack,
short actionId) |
Modifier and Type | Method and Description |
---|---|
void |
apply(ServerPlayPacketListener serverPlayPacketListener) |
short |
getActionId() |
SlotActionType |
getActionType() |
int |
getClickData() |
int |
getSlot() |
ItemStack |
getStack() |
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
private int slot
private int clickData
private short actionId
private ItemStack stack
private SlotActionType actionType
public ClickWindowC2SPacket()
@Environment(value=CLIENT) public ClickWindowC2SPacket(int syncId, int slot, int clickData, SlotActionType actionType, ItemStack stack, short actionId)
public void apply(ServerPlayPacketListener serverPlayPacketListener)
apply
in interface Packet<ServerPlayPacketListener>
public void read(PacketByteBuf buf) throws IOException
read
in interface Packet<ServerPlayPacketListener>
IOException
public void write(PacketByteBuf buf) throws IOException
write
in interface Packet<ServerPlayPacketListener>
IOException
public int getSyncId()
public int getSlot()
public int getClickData()
public short getActionId()
public ItemStack getStack()
public SlotActionType getActionType()