Class ClientboundContainerSetSlotPacket
java.lang.Object
org.geysermc.mcprotocollib.protocol.packet.ingame.clientbound.inventory.ClientboundContainerSetSlotPacket
- All Implemented Interfaces:
Packet,MinecraftPacket
-
Constructor Summary
ConstructorsConstructorDescriptionClientboundContainerSetSlotPacket(int containerId, int stateId, int slot, @Nullable ItemStack item) ClientboundContainerSetSlotPacket(io.netty.buffer.ByteBuf in, MinecraftCodecHelper helper) -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanbooleanint@Nullable ItemStackgetItem()intgetSlot()intinthashCode()voidserialize(io.netty.buffer.ByteBuf out, MinecraftCodecHelper helper) @NonNull StringtoString()@NonNull ClientboundContainerSetSlotPacketwithContainerId(int containerId) @NonNull ClientboundContainerSetSlotPacket@NonNull ClientboundContainerSetSlotPacketwithSlot(int slot) @NonNull ClientboundContainerSetSlotPacketwithStateId(int stateId) Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.geysermc.mcprotocollib.network.packet.Packet
isPriority, isTerminal
-
Constructor Details
-
ClientboundContainerSetSlotPacket
-
ClientboundContainerSetSlotPacket
public ClientboundContainerSetSlotPacket(int containerId, int stateId, int slot, @Nullable ItemStack item)
-
-
Method Details
-
serialize
- Specified by:
serializein interfaceMinecraftPacket
-
getContainerId
public int getContainerId() -
getStateId
public int getStateId() -
getSlot
public int getSlot() -
getItem
-
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-
withContainerId
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withStateId
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withSlot
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withItem
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-