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