Record Class ClickSlotC2SPacket
java.lang.Object
java.lang.Record
net.minecraft.network.packet.c2s.play.ClickSlotC2SPacket
- Record Components:
syncId
-revision
-slot
--
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 Summary
FieldsModifier and TypeFieldDescriptionprivate final SlotActionType
The field for theactionType
record component.private final byte
The field for thebutton
record component.static final PacketCodec
<RegistryByteBuf, ClickSlotC2SPacket> private final ItemStackHash
The field for thecursor
record component.private static final int
private final Int2ObjectMap
<ItemStackHash> The field for themodifiedStacks
record component.private final int
The field for therevision
record component.private final short
The field for theslot
record component.private static final PacketCodec
<RegistryByteBuf, Int2ObjectMap<ItemStackHash>> private final int
The field for thesyncId
record component. -
Constructor Summary
ConstructorsConstructorDescriptionClickSlotC2SPacket
(int int2, int int3, short short2, byte byte2, SlotActionType slotActionType, Int2ObjectMap<ItemStackHash> int2ObjectMap, ItemStackHash itemStackHash) -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theactionType
record component.void
apply
(ServerPlayPacketListener serverPlayPacketListener) byte
button()
Returns the value of thebutton
record component.cursor()
Returns the value of thecursor
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.Returns the value of themodifiedStacks
record component.int
revision()
Returns the value of therevision
record component.short
slot()
Returns the value of theslot
record component.int
syncId()
Returns the value of thesyncId
record component.final String
toString()
Returns a string representation of this record class.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface net.minecraft.network.packet.Packet
isWritingErrorSkippable, transitionsNetworkState
-
Field Details
-
syncId
private final int syncIdThe field for thesyncId
record component. -
revision
private final int revisionThe field for therevision
record component. -
slot
private final short slotThe field for theslot
record component. -
button
private final byte buttonThe field for thebutton
record component. -
actionType
The field for theactionType
record component. -
modifiedStacks
The field for themodifiedStacks
record component. -
cursor
The field for thecursor
record component. -
MAX_MODIFIED_STACKS
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
- 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
- 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
-
ClickSlotC2SPacket
public ClickSlotC2SPacket(int int2, int int3, short short2, byte byte2, SlotActionType slotActionType, Int2ObjectMap<ItemStackHash> int2ObjectMap, ItemStackHash itemStackHash)
-
-
Method Details
-
getPacketType
- Specified by:
getPacketType
in interfacePacket<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
- Specified by:
apply
in interfacePacket<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
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. -
hashCode
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. -
equals
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 withObjects::equals(Object,Object)
; primitive components are compared with '=='. -
syncId
public int syncId()Returns the value of thesyncId
record component.- Returns:
- the value of the
syncId
record component
-
revision
public int revision()Returns the value of therevision
record component.- Returns:
- the value of the
revision
record component
-
slot
public short slot()Returns the value of theslot
record component.- Returns:
- the value of the
slot
record component
-
button
public byte button()Returns the value of thebutton
record component.- Returns:
- the value of the
button
record component
-
actionType
Returns the value of theactionType
record component.- Returns:
- the value of the
actionType
record component
-
modifiedStacks
Returns the value of themodifiedStacks
record component.- Returns:
- the value of the
modifiedStacks
record component
-
cursor
Returns the value of thecursor
record component.- Returns:
- the value of the
cursor
record component
-