Class ConfirmScreenActionC2SPacket
java.lang.Object
net.minecraft.network.packet.c2s.play.ConfirmScreenActionC2SPacket
- All Implemented Interfaces:
Packet<ServerPlayPacketListener>
public class ConfirmScreenActionC2SPacket extends Object implements Packet<ServerPlayPacketListener>
-
Field Summary
-
Constructor Summary
Constructors Constructor Description ConfirmScreenActionC2SPacket()
ConfirmScreenActionC2SPacket(int syncId, short actionId, boolean accepted)
-
Method Summary
Modifier and Type Method Description void
apply(ServerPlayPacketListener serverPlayPacketListener)
short
getActionId()
int
getSyncId()
void
read(PacketByteBuf buf)
void
write(PacketByteBuf buf)
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.minecraft.network.Packet
isWritingErrorSkippable
-
Field Details
-
syncId
private int syncId -
actionId
private short actionId -
accepted
private boolean accepted
-
-
Constructor Details
-
ConfirmScreenActionC2SPacket
public ConfirmScreenActionC2SPacket() -
ConfirmScreenActionC2SPacket
@Environment(CLIENT) public ConfirmScreenActionC2SPacket(int syncId, short actionId, boolean accepted)
-
-
Method Details
-
apply
- Specified by:
apply
in interfacePacket<ServerPlayPacketListener>
-
read
- Specified by:
read
in interfacePacket<ServerPlayPacketListener>
- Throws:
IOException
-
write
- Specified by:
write
in interfacePacket<ServerPlayPacketListener>
- Throws:
IOException
-
getSyncId
public int getSyncId() -
getActionId
public short getActionId()
-