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