Class ConfirmGuiActionC2SPacket
java.lang.Object
net.minecraft.network.packet.c2s.play.ConfirmGuiActionC2SPacket
- All Implemented Interfaces:
Packet<ServerPlayPacketListener>
public class ConfirmGuiActionC2SPacket extends Object implements Packet<ServerPlayPacketListener>
-
Field Summary
-
Constructor Summary
Constructors Constructor Description ConfirmGuiActionC2SPacket()ConfirmGuiActionC2SPacket(int windowId, short actionId, boolean accepted) -
Method Summary
Modifier and Type Method Description voidapply(ServerPlayPacketListener serverPlayPacketListener)shortgetSyncId()intgetWindowId()voidread(PacketByteBuf buf)voidwrite(PacketByteBuf buf)
-
Field Details
-
Constructor Details
-
ConfirmGuiActionC2SPacket
public ConfirmGuiActionC2SPacket() -
ConfirmGuiActionC2SPacket
@Environment(CLIENT) public ConfirmGuiActionC2SPacket(int windowId, 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
-
getWindowId
public int getWindowId() -
getSyncId
public short getSyncId()
-