public class ConfirmGuiActionC2SPacket extends Object implements Packet<ServerPlayPacketListener>
Modifier and Type | Field and Description |
---|---|
private boolean |
accepted |
private short |
actionId |
private int |
windowId |
Constructor and Description |
---|
ConfirmGuiActionC2SPacket() |
ConfirmGuiActionC2SPacket(int windowId,
short actionId,
boolean accepted) |
Modifier and Type | Method and Description |
---|---|
void |
apply(ServerPlayPacketListener serverPlayPacketListener) |
short |
getSyncId() |
int |
getWindowId() |
void |
read(PacketByteBuf buf) |
void |
write(PacketByteBuf buf) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
isWritingErrorSkippable
private int windowId
private short actionId
private boolean accepted
public ConfirmGuiActionC2SPacket()
@Environment(value=CLIENT) public ConfirmGuiActionC2SPacket(int windowId, short actionId, boolean accepted)
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 getWindowId()
public short getSyncId()