net.minecraft.network.packet.s2c.play

public record SetPlayerInventoryS2CPacket

implements Packet<ClientPlayPacketListener>

net.minecraft.network.protocol.game.ClientboundSetPlayerInventoryPacket
net.minecraft.class_9835
net.minecraft.network.packet.s2c.play.SetPlayerInventoryS2CPacket

Field summary

Modifier and TypeField
private final int
slot
comp_2891
slot
private final ItemStack
contents
comp_2892
contents
public static final PacketCodec<RegistryByteBuf, SetPlayerInventoryS2CPacket>
STREAM_CODEC
field_52327
CODEC

Constructor summary

ModifierConstructor
public (int slot, ItemStack contents)

Method summary

Modifier and TypeMethod
public PacketType<SetPlayerInventoryS2CPacket>
type()
method_65080()
getPacketType()
public void
handle(ClientGamePacketListener listener)
method_61217(class_2602 arg0)
apply(ClientPlayPacketListener arg0)
public int
slot()
comp_2891()
slot()
public ItemStack
contents()
comp_2892()
contents()
public void
handle(PacketListener listener)
method_65081(class_2547 arg0)
apply(PacketListener arg0)