Class ConfirmGuiActionS2CPacket
java.lang.Object
net.minecraft.network.packet.s2c.play.ConfirmGuiActionS2CPacket
- All Implemented Interfaces:
Packet<ClientPlayPacketListener>
public class ConfirmGuiActionS2CPacket extends Object implements Packet<ClientPlayPacketListener>
-
Field Summary
-
Constructor Summary
Constructors Constructor Description ConfirmGuiActionS2CPacket()ConfirmGuiActionS2CPacket(int id, short actionId, boolean accepted) -
Method Summary
Modifier and Type Method Description voidapply(ClientPlayPacketListener clientPlayPacketListener)shortgetActionId()intgetId()voidread(PacketByteBuf buf)booleanwasAccepted()voidwrite(PacketByteBuf buf)
-
Field Details
-
Constructor Details
-
ConfirmGuiActionS2CPacket
public ConfirmGuiActionS2CPacket() -
ConfirmGuiActionS2CPacket
public ConfirmGuiActionS2CPacket(int id, 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
-
getId
@Environment(CLIENT) public int getId() -
getActionId
@Environment(CLIENT) public short getActionId() -
wasAccepted
@Environment(CLIENT) public boolean wasAccepted()
-