Class ConfirmScreenActionS2CPacket
java.lang.Object
net.minecraft.network.packet.s2c.play.ConfirmScreenActionS2CPacket
- All Implemented Interfaces:
Packet<ClientPlayPacketListener>
public class ConfirmScreenActionS2CPacket extends Object implements Packet<ClientPlayPacketListener>
-
Field Summary
-
Constructor Summary
Constructors Constructor Description ConfirmScreenActionS2CPacket()ConfirmScreenActionS2CPacket(int syncId, short actionId, boolean accepted) -
Method Summary
Modifier and Type Method Description voidapply(ClientPlayPacketListener clientPlayPacketListener)shortgetActionId()intgetSyncId()voidread(PacketByteBuf buf)booleanwasAccepted()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
-
ConfirmScreenActionS2CPacket
public ConfirmScreenActionS2CPacket() -
ConfirmScreenActionS2CPacket
public ConfirmScreenActionS2CPacket(int syncId, short actionId, boolean accepted)
-
-
Method Details
-
apply
- Specified by:
applyin interfacePacket<ClientPlayPacketListener>
-
read
- Specified by:
readin interfacePacket<ClientPlayPacketListener>- Throws:
IOException
-
write
- Specified by:
writein interfacePacket<ClientPlayPacketListener>- Throws:
IOException
-
getSyncId
@Environment(CLIENT) public int getSyncId() -
getActionId
@Environment(CLIENT) public short getActionId() -
wasAccepted
@Environment(CLIENT) public boolean wasAccepted()
-