Class ServerboundContainerClickPacket
java.lang.Object
net.minecraft.network.protocol.game.ServerboundContainerClickPacket
- All Implemented Interfaces:
Packet<ServerGamePacketListener>
public class ServerboundContainerClickPacket
extends Object
implements Packet<ServerGamePacketListener>
-
Field Summary
Modifier and TypeFieldDescriptionprivate final int
private final ItemStack
private final it.unimi.dsi.fastutil.ints.Int2ObjectMap
<ItemStack> private final ClickType
private final int
private static final int
private final int
private static final StreamCodec
<RegistryFriendlyByteBuf, it.unimi.dsi.fastutil.ints.Int2ObjectMap<ItemStack>> private final int
-
Constructor Summary
ModifierConstructorDescriptionServerboundContainerClickPacket
(int p_182734_, int p_182735_, int p_182736_, int p_182737_, ClickType p_182738_, ItemStack p_182739_, it.unimi.dsi.fastutil.ints.Int2ObjectMap<ItemStack> p_182740_) private
-
Method Summary
Modifier and TypeMethodDescriptionint
it.unimi.dsi.fastutil.ints.Int2ObjectMap
<ItemStack> int
int
int
void
handle
(ServerGamePacketListener p_133958_) type()
private void
write
(RegistryFriendlyByteBuf p_319872_) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.minecraft.network.protocol.Packet
isSkippable, isTerminal
-
Field Details
-
STREAM_CODEC
public static final StreamCodec<RegistryFriendlyByteBuf,ServerboundContainerClickPacket> STREAM_CODEC -
MAX_SLOT_COUNT
private static final int MAX_SLOT_COUNT- See Also:
-
SLOTS_STREAM_CODEC
private static final StreamCodec<RegistryFriendlyByteBuf,it.unimi.dsi.fastutil.ints.Int2ObjectMap<ItemStack>> SLOTS_STREAM_CODEC -
containerId
private final int containerId -
stateId
private final int stateId -
slotNum
private final int slotNum -
buttonNum
private final int buttonNum -
clickType
-
carriedItem
-
changedSlots
-
-
Constructor Details
-
ServerboundContainerClickPacket
-
ServerboundContainerClickPacket
-
-
Method Details
-
write
-
type
- Specified by:
type
in interfacePacket<ServerGamePacketListener>
-
handle
- Specified by:
handle
in interfacePacket<ServerGamePacketListener>
-
getContainerId
public int getContainerId() -
getSlotNum
public int getSlotNum() -
getButtonNum
public int getButtonNum() -
getCarriedItem
-
getChangedSlots
-
getClickType
-
getStateId
public int getStateId()
-