net.minecraft.network.packet.c2s.play

public record SlotChangedStateC2SPacket

implements Packet<ServerPlayPacketListener>

net.minecraft.network.protocol.game.ServerboundContainerSlotStateChangedPacket
net.minecraft.class_8875
net.minecraft.network.packet.c2s.play.SlotChangedStateC2SPacket

Field summary

Modifier and TypeField
private final int
slotId
comp_1998
slotId
private final int
containerId
comp_1999
screenHandlerId
private final boolean
newState
comp_2000
newState
public static final PacketCodec<PacketByteBuf, SlotChangedStateC2SPacket>
STREAM_CODEC
field_48192
CODEC

Constructor summary

ModifierConstructor
private (PacketByteBuf buf)
public (int slotId, int screenHandlerId, boolean newState)

Method summary

Modifier and TypeMethod
private void
write(FriendlyByteBuf output)
method_55973(class_2540 arg0)
write(PacketByteBuf buf)
public PacketType<SlotChangedStateC2SPacket>
type()
method_65080()
getPacketType()
public void
handle(ServerGamePacketListener listener)
method_54437(class_2792 arg0)
apply(ServerPlayPacketListener arg0)
public int
slotId()
comp_1998()
slotId()
public int
containerId()
comp_1999()
screenHandlerId()
public boolean
newState()
comp_2000()
newState()
public void
handle(PacketListener listener)
method_65081(class_2547 arg0)
apply(PacketListener arg0)