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/ClickSlotC2SPacketintermediary net/minecraft/class_2813official ahqnamed syncIdintermediary comp_3842official bnamed revisionintermediary comp_3843official cnamed slotintermediary comp_3844official dnamed buttonintermediary comp_3845official enamed actionTypeintermediary comp_3846official fnamed modifiedStacksintermediary comp_3847official gnamed cursorintermediary comp_3848official h
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final SlotActionTypeThe field for theactionTyperecord component.private final byteThe field for thebuttonrecord component.static final PacketCodec<RegistryByteBuf, ClickSlotC2SPacket> private final ItemStackHashThe field for thecursorrecord component.private static final intprivate final Int2ObjectMap<ItemStackHash> The field for themodifiedStacksrecord component.private final intThe field for therevisionrecord component.private final shortThe field for theslotrecord component.private static final PacketCodec<RegistryByteBuf, Int2ObjectMap<ItemStackHash>> private final intThe field for thesyncIdrecord 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 theactionTyperecord component.voidapply(ServerPlayPacketListener serverPlayPacketListener) bytebutton()Returns the value of thebuttonrecord component.cursor()Returns the value of thecursorrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of themodifiedStacksrecord component.intrevision()Returns the value of therevisionrecord component.shortslot()Returns the value of theslotrecord component.intsyncId()Returns the value of thesyncIdrecord component.final StringtoString()Returns a string representation of this record class.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface net.minecraft.network.packet.Packet
isWritingErrorSkippable, transitionsNetworkState
-
Field Details
-
syncId
private final int syncIdThe field for thesyncIdrecord component. -
revision
private final int revisionThe field for therevisionrecord component. -
slot
private final short slotThe field for theslotrecord component. -
button
private final byte buttonThe field for thebuttonrecord component. -
actionType
The field for theactionTyperecord component. -
modifiedStacks
The field for themodifiedStacksrecord component. -
cursor
The field for thecursorrecord component. -
MAX_MODIFIED_STACKS
private static final int MAX_MODIFIED_STACKS- See Also:
- Mappings:
Namespace Name Mixin selector named MAX_MODIFIED_STACKSLnet/minecraft/network/packet/c2s/play/ClickSlotC2SPacket;MAX_MODIFIED_STACKS:Iintermediary field_34045Lnet/minecraft/class_2813;field_34045:Iofficial iLahq;i:I
-
STACK_MAP_CODEC
- Mappings:
Namespace Name Mixin selector named STACK_MAP_CODECLnet/minecraft/network/packet/c2s/play/ClickSlotC2SPacket;STACK_MAP_CODEC:Lnet/minecraft/network/codec/PacketCodec;intermediary field_48190Lnet/minecraft/class_2813;field_48190:Lnet/minecraft/class_9139;official jLahq;j:Lze;
-
CODEC
- Mappings:
Namespace Name Mixin selector named CODECLnet/minecraft/network/packet/c2s/play/ClickSlotC2SPacket;CODEC:Lnet/minecraft/network/codec/PacketCodec;intermediary field_48189Lnet/minecraft/class_2813;field_48189:Lnet/minecraft/class_9139;official aLahq;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:
getPacketTypein interfacePacket<ServerPlayPacketListener>- Mappings:
Namespace Name Mixin selector named getPacketTypeLnet/minecraft/network/packet/Packet;getPacketType()Lnet/minecraft/network/packet/PacketType;intermediary method_65080Lnet/minecraft/class_2596;method_65080()Lnet/minecraft/class_9145;official aLzo;a()Lzq;
-
apply
- Specified by:
applyin interfacePacket<ServerPlayPacketListener>- Mappings:
Namespace Name Mixin selector named applyLnet/minecraft/network/packet/c2s/play/ClickSlotC2SPacket;apply(Lnet/minecraft/network/listener/ServerPlayPacketListener;)Vintermediary method_12191Lnet/minecraft/class_2813;method_12191(Lnet/minecraft/class_2792;)Vofficial aLahq;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 thesyncIdrecord component.- Returns:
- the value of the
syncIdrecord component
-
revision
public int revision()Returns the value of therevisionrecord component.- Returns:
- the value of the
revisionrecord component
-
slot
public short slot()Returns the value of theslotrecord component.- Returns:
- the value of the
slotrecord component
-
button
public byte button()Returns the value of thebuttonrecord component.- Returns:
- the value of the
buttonrecord component
-
actionType
Returns the value of theactionTyperecord component.- Returns:
- the value of the
actionTyperecord component
-
modifiedStacks
Returns the value of themodifiedStacksrecord component.- Returns:
- the value of the
modifiedStacksrecord component
-
cursor
Returns the value of thecursorrecord component.- Returns:
- the value of the
cursorrecord component
-