public class ConfirmGuiActionS2CPacket extends Object implements Packet<ClientPlayPacketListener>
Modifier and Type | Field and Description |
---|---|
private boolean |
accepted |
private short |
actionId |
private int |
id |
Constructor and Description |
---|
ConfirmGuiActionS2CPacket() |
ConfirmGuiActionS2CPacket(int id,
short actionId,
boolean accepted) |
Modifier and Type | Method and Description |
---|---|
void |
apply(ClientPlayPacketListener clientPlayPacketListener) |
short |
getActionId() |
int |
getId() |
void |
read(PacketByteBuf buf) |
boolean |
wasAccepted() |
void |
write(PacketByteBuf buf) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
isWritingErrorSkippable
public ConfirmGuiActionS2CPacket()
public ConfirmGuiActionS2CPacket(int id, short actionId, boolean accepted)
public void apply(ClientPlayPacketListener clientPlayPacketListener)
apply
in interface Packet<ClientPlayPacketListener>
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
@Environment(value=CLIENT) public int getId()
@Environment(value=CLIENT) public short getActionId()
@Environment(value=CLIENT) public boolean wasAccepted()