Record Class ClickSlotC2SPacket

java.lang.Object
java.lang.Record
net.minecraft.network.packet.c2s.play.ClickSlotC2SPacket
Record Components:
syncId -
revision -
slot -
button -
actionType -
modifiedStacks -
cursor -
All Implemented Interfaces:
Packet<ServerPlayPacketListener>

public record ClickSlotC2SPacket(int syncId, int revision, short slot, byte button, SlotActionType actionType, Int2ObjectMap<ItemStackHash> modifiedStacks, ItemStackHash cursor) extends Record implements Packet<ServerPlayPacketListener>
Mappings:
Namespace Name
named net/minecraft/network/packet/c2s/play/ClickSlotC2SPacket
intermediary net/minecraft/class_2813
official ahq
named syncId
intermediary comp_3842
official b
named revision
intermediary comp_3843
official c
named slot
intermediary comp_3844
official d
named button
intermediary comp_3845
official e
named actionType
intermediary comp_3846
official f
named modifiedStacks
intermediary comp_3847
official g
named cursor
intermediary comp_3848
official h
  • Field Details Link icon

    • syncId Link icon

      private final int syncId
      The field for the syncId record component.
    • revision Link icon

      private final int revision
      The field for the revision record component.
    • slot Link icon

      private final short slot
      The field for the slot record component.
    • button Link icon

      private final byte button
      The field for the button record component.
    • actionType Link icon

      private final SlotActionType actionType
      The field for the actionType record component.
    • modifiedStacks Link icon

      private final Int2ObjectMap<ItemStackHash> modifiedStacks
      The field for the modifiedStacks record component.
    • cursor Link icon

      private final ItemStackHash cursor
      The field for the cursor record component.
    • MAX_MODIFIED_STACKS Link icon

      private static final int MAX_MODIFIED_STACKS
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named MAX_MODIFIED_STACKS Lnet/minecraft/network/packet/c2s/play/ClickSlotC2SPacket;MAX_MODIFIED_STACKS:I
      intermediary field_34045 Lnet/minecraft/class_2813;field_34045:I
      official i Lahq;i:I
    • STACK_MAP_CODEC Link icon

      private static final PacketCodec<RegistryByteBuf,Int2ObjectMap<ItemStackHash>> STACK_MAP_CODEC
      Mappings:
      Namespace Name Mixin selector
      named STACK_MAP_CODEC Lnet/minecraft/network/packet/c2s/play/ClickSlotC2SPacket;STACK_MAP_CODEC:Lnet/minecraft/network/codec/PacketCodec;
      intermediary field_48190 Lnet/minecraft/class_2813;field_48190:Lnet/minecraft/class_9139;
      official j Lahq;j:Lze;
    • CODEC Link icon

      public static final PacketCodec<RegistryByteBuf,ClickSlotC2SPacket> CODEC
      Mappings:
      Namespace Name Mixin selector
      named CODEC Lnet/minecraft/network/packet/c2s/play/ClickSlotC2SPacket;CODEC:Lnet/minecraft/network/codec/PacketCodec;
      intermediary field_48189 Lnet/minecraft/class_2813;field_48189:Lnet/minecraft/class_9139;
      official a Lahq;a:Lze;
  • Constructor Details Link icon

  • Method Details Link icon

    • getPacketType Link icon

      public PacketType<ClickSlotC2SPacket> getPacketType()
      Specified by:
      getPacketType in interface Packet<ServerPlayPacketListener>
      Mappings:
      Namespace Name Mixin selector
      named getPacketType Lnet/minecraft/network/packet/Packet;getPacketType()Lnet/minecraft/network/packet/PacketType;
      intermediary method_65080 Lnet/minecraft/class_2596;method_65080()Lnet/minecraft/class_9145;
      official a Lzo;a()Lzq;
    • apply Link icon

      public void apply(ServerPlayPacketListener serverPlayPacketListener)
      Specified by:
      apply in interface Packet<ServerPlayPacketListener>
      Mappings:
      Namespace Name Mixin selector
      named apply Lnet/minecraft/network/packet/c2s/play/ClickSlotC2SPacket;apply(Lnet/minecraft/network/listener/ServerPlayPacketListener;)V
      intermediary method_12191 Lnet/minecraft/class_2813;method_12191(Lnet/minecraft/class_2792;)V
      official a Lahq;a(Laha;)V
    • toString Link icon

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode Link icon

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals Link icon

      public final boolean equals(Object object)
      Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared with Objects::equals(Object,Object); primitive components are compared with '=='.
      Specified by:
      equals in class Record
      Parameters:
      object - the object with which to compare
      Returns:
      true if this object is the same as the object argument; false otherwise.
    • syncId Link icon

      public int syncId()
      Returns the value of the syncId record component.
      Returns:
      the value of the syncId record component
    • revision Link icon

      public int revision()
      Returns the value of the revision record component.
      Returns:
      the value of the revision record component
    • slot Link icon

      public short slot()
      Returns the value of the slot record component.
      Returns:
      the value of the slot record component
    • button Link icon

      public byte button()
      Returns the value of the button record component.
      Returns:
      the value of the button record component
    • actionType Link icon

      public SlotActionType actionType()
      Returns the value of the actionType record component.
      Returns:
      the value of the actionType record component
    • modifiedStacks Link icon

      public Int2ObjectMap<ItemStackHash> modifiedStacks()
      Returns the value of the modifiedStacks record component.
      Returns:
      the value of the modifiedStacks record component
    • cursor Link icon

      public ItemStackHash cursor()
      Returns the value of the cursor record component.
      Returns:
      the value of the cursor record component