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 voidapply(ServerPlayPacketListener serverPlayPacketListener)shortgetActionId()intgetSyncId()voidread(PacketByteBuf buf)voidwrite(PacketByteBuf buf)Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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:
applyin interfacePacket<ServerPlayPacketListener>
-
read
- Specified by:
readin interfacePacket<ServerPlayPacketListener>- Throws:
IOException
-
write
- Specified by:
writein interfacePacket<ServerPlayPacketListener>- Throws:
IOException
-
getSyncId
public int getSyncId() -
getActionId
public short getActionId()
-