Class ClientboundSetPlayerInventoryPacket
java.lang.Object
org.geysermc.mcprotocollib.protocol.packet.ingame.clientbound.inventory.ClientboundSetPlayerInventoryPacket
- All Implemented Interfaces:
Packet, MinecraftPacket
-
Constructor Summary
ConstructorsConstructorDescriptionClientboundSetPlayerInventoryPacket(int slot, @Nullable ItemStack contents) ClientboundSetPlayerInventoryPacket(io.netty.buffer.ByteBuf in) -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanboolean@Nullable ItemStackintgetSlot()inthashCode()voidserialize(io.netty.buffer.ByteBuf out) @NonNull StringtoString()@NonNull ClientboundSetPlayerInventoryPacketwithContents(@Nullable ItemStack contents) @NonNull ClientboundSetPlayerInventoryPacketwithSlot(int slot) Methods inherited from interface Packet
isPriority, isTerminal
-
Constructor Details
-
ClientboundSetPlayerInventoryPacket
public ClientboundSetPlayerInventoryPacket(io.netty.buffer.ByteBuf in) -
ClientboundSetPlayerInventoryPacket
-
-
Method Details
-
serialize
public void serialize(io.netty.buffer.ByteBuf out) - Specified by:
serializein interfaceMinecraftPacket
-
getSlot
public int getSlot() -
getContents
-
equals
-
canEqual
-
hashCode
-
toString
-
withSlot
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withContents
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-