Record Class CommandTreeS2CPacket.CommandNodeData
java.lang.Object
java.lang.Record
net.minecraft.network.packet.s2c.play.CommandTreeS2CPacket.CommandNodeData
- Record Components:
suggestableNode
-flags
-redirectNodeIndex
-childNodeIndices
-
- Enclosing class:
CommandTreeS2CPacket
private static record CommandTreeS2CPacket.CommandNodeData(@Nullable CommandTreeS2CPacket.SuggestableNode suggestableNode, int flags, int redirectNodeIndex, int[] childNodeIndices)
extends Record
- Mappings:
Namespace Name named net/minecraft/network/packet/s2c/play/CommandTreeS2CPacket$CommandNodeData
intermediary net/minecraft/class_2641$class_2642
official adi$b
named suggestableNode
intermediary comp_4287
official a
named flags
intermediary comp_4288
official b
named redirectNodeIndex
intermediary comp_4289
official c
named childNodeIndices
intermediary comp_4290
official d
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final int[]
The field for thechildNodeIndices
record component.private final int
The field for theflags
record component.private final int
The field for theredirectNodeIndex
record component.private final @Nullable CommandTreeS2CPacket.SuggestableNode
The field for thesuggestableNode
record component. -
Constructor Summary
ConstructorsConstructorDescriptionCommandNodeData
(@Nullable CommandTreeS2CPacket.SuggestableNode suggestableNode, int flags, int redirectNodeIndex, int[] childNodeIndices) Creates an instance of aCommandNodeData
record class. -
Method Summary
Modifier and TypeMethodDescriptionint[]
Returns the value of thechildNodeIndices
record component.final boolean
Indicates whether some other object is "equal to" this one.int
flags()
Returns the value of theflags
record component.final int
hashCode()
Returns a hash code value for this object.int
Returns the value of theredirectNodeIndex
record component.Returns the value of thesuggestableNode
record component.final String
toString()
Returns a string representation of this record class.boolean
validateChildNodeIndices
(IntSet indices) boolean
validateRedirectNodeIndex
(IntSet indices) void
write
(PacketByteBuf buf)
-
Field Details
-
suggestableNode
The field for thesuggestableNode
record component. -
flags
private final int flagsThe field for theflags
record component. -
redirectNodeIndex
private final int redirectNodeIndexThe field for theredirectNodeIndex
record component. -
childNodeIndices
private final int[] childNodeIndicesThe field for thechildNodeIndices
record component.
-
-
Constructor Details
-
CommandNodeData
CommandNodeData(@Nullable @Nullable CommandTreeS2CPacket.SuggestableNode suggestableNode, int flags, int redirectNodeIndex, int[] childNodeIndices) Creates an instance of aCommandNodeData
record class.- Parameters:
suggestableNode
- the value for thesuggestableNode
record componentflags
- the value for theflags
record componentredirectNodeIndex
- the value for theredirectNodeIndex
record componentchildNodeIndices
- the value for thechildNodeIndices
record component
-
-
Method Details
-
write
- Mappings:
Namespace Name Mixin selector named write
Lnet/minecraft/network/packet/s2c/play/CommandTreeS2CPacket$CommandNodeData;write(Lnet/minecraft/network/PacketByteBuf;)V
intermediary method_42075
Lnet/minecraft/class_2641$class_2642;method_42075(Lnet/minecraft/class_2540;)V
official a
Ladi$b;a(Lwg;)V
-
validateRedirectNodeIndex
- Mappings:
Namespace Name Mixin selector named validateRedirectNodeIndex
Lnet/minecraft/network/packet/s2c/play/CommandTreeS2CPacket$CommandNodeData;validateRedirectNodeIndex(Lit/unimi/dsi/fastutil/ints/IntSet;)Z
intermediary method_42074
Lnet/minecraft/class_2641$class_2642;method_42074(Lit/unimi/dsi/fastutil/ints/IntSet;)Z
official a
Ladi$b;a(Lit/unimi/dsi/fastutil/ints/IntSet;)Z
-
validateChildNodeIndices
- Mappings:
Namespace Name Mixin selector named validateChildNodeIndices
Lnet/minecraft/network/packet/s2c/play/CommandTreeS2CPacket$CommandNodeData;validateChildNodeIndices(Lit/unimi/dsi/fastutil/ints/IntSet;)Z
intermediary method_42076
Lnet/minecraft/class_2641$class_2642;method_42076(Lit/unimi/dsi/fastutil/ints/IntSet;)Z
official b
Ladi$b;b(Lit/unimi/dsi/fastutil/ints/IntSet;)Z
-
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 '=='. -
suggestableNode
Returns the value of thesuggestableNode
record component.- Returns:
- the value of the
suggestableNode
record component
-
flags
public int flags()Returns the value of theflags
record component.- Returns:
- the value of the
flags
record component
-
redirectNodeIndex
public int redirectNodeIndex()Returns the value of theredirectNodeIndex
record component.- Returns:
- the value of the
redirectNodeIndex
record component
-
childNodeIndices
public int[] childNodeIndices()Returns the value of thechildNodeIndices
record component.- Returns:
- the value of the
childNodeIndices
record component
-