Class ServerboundContainerClickPacket
java.lang.Object
org.geysermc.mcprotocollib.protocol.packet.ingame.serverbound.inventory.ServerboundContainerClickPacket
- All Implemented Interfaces:
Packet,MinecraftPacket
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionServerboundContainerClickPacket(int containerId, int stateId, int slot, @NonNull ContainerActionType action, @NonNull ContainerAction param, @Nullable ItemStack carriedItem, @NonNull it.unimi.dsi.fastutil.ints.Int2ObjectMap<@Nullable ItemStack> changedSlots) ServerboundContainerClickPacket(int containerId, int stateId, int slot, @NonNull ContainerActionType action, @NonNull ContainerAction param, @Nullable ItemStack carriedItem, @NonNull Map<Integer, @Nullable ItemStack> changedSlots) ServerboundContainerClickPacket(io.netty.buffer.ByteBuf in, MinecraftCodecHelper helper) -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanboolean@NonNull ContainerActionType@Nullable ItemStack@NonNull it.unimi.dsi.fastutil.ints.Int2ObjectMap<@Nullable ItemStack>int@NonNull ContainerActiongetParam()intgetSlot()intinthashCode()voidserialize(io.netty.buffer.ByteBuf out, MinecraftCodecHelper helper) @NonNull StringtoString()@NonNull ServerboundContainerClickPacketwithAction(@NonNull ContainerActionType action) @NonNull ServerboundContainerClickPacketwithCarriedItem(@Nullable ItemStack carriedItem) @NonNull ServerboundContainerClickPacketwithChangedSlots(@NonNull it.unimi.dsi.fastutil.ints.Int2ObjectMap<@Nullable ItemStack> changedSlots) @NonNull ServerboundContainerClickPacketwithContainerId(int containerId) @NonNull ServerboundContainerClickPacketwithParam(@NonNull ContainerAction param) @NonNull ServerboundContainerClickPacketwithSlot(int slot) @NonNull ServerboundContainerClickPacketwithStateId(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
-
Field Details
-
CLICK_OUTSIDE_NOT_HOLDING_SLOT
public static final int CLICK_OUTSIDE_NOT_HOLDING_SLOT- See Also:
-
-
Constructor Details
-
ServerboundContainerClickPacket
public ServerboundContainerClickPacket(int containerId, int stateId, int slot, @NonNull @NonNull ContainerActionType action, @NonNull @NonNull ContainerAction param, @Nullable ItemStack carriedItem, @NonNull @NonNull Map<Integer, @Nullable ItemStack> changedSlots) -
ServerboundContainerClickPacket
public ServerboundContainerClickPacket(int containerId, int stateId, int slot, @NonNull @NonNull ContainerActionType action, @NonNull @NonNull ContainerAction param, @Nullable ItemStack carriedItem, @NonNull @NonNull it.unimi.dsi.fastutil.ints.Int2ObjectMap<@Nullable ItemStack> changedSlots) -
ServerboundContainerClickPacket
-
-
Method Details
-
serialize
- Specified by:
serializein interfaceMinecraftPacket
-
getContainerId
public int getContainerId() -
getStateId
public int getStateId() -
getSlot
public int getSlot() -
getAction
-
getParam
-
getCarriedItem
-
getChangedSlots
@NonNull public @NonNull it.unimi.dsi.fastutil.ints.Int2ObjectMap<@Nullable ItemStack> getChangedSlots() -
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).
-
withAction
public @NonNull ServerboundContainerClickPacket withAction(@NonNull @NonNull ContainerActionType action) - Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withParam
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withCarriedItem
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withChangedSlots
public @NonNull ServerboundContainerClickPacket withChangedSlots(@NonNull @NonNull it.unimi.dsi.fastutil.ints.Int2ObjectMap<@Nullable ItemStack> changedSlots) - Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-