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$CommandNodeDataintermediary net/minecraft/class_2641$class_2642official adj$bnamed suggestableNodeintermediary comp_4287official anamed flagsintermediary comp_4288official bnamed redirectNodeIndexintermediary comp_4289official cnamed childNodeIndicesintermediary comp_4290official d
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final int[]The field for thechildNodeIndicesrecord component.private final intThe field for theflagsrecord component.private final intThe field for theredirectNodeIndexrecord component.private final @Nullable CommandTreeS2CPacket.SuggestableNodeThe field for thesuggestableNoderecord component. -
Constructor Summary
ConstructorsConstructorDescriptionCommandNodeData(@Nullable CommandTreeS2CPacket.SuggestableNode suggestableNode, int flags, int redirectNodeIndex, int[] childNodeIndices) Creates an instance of aCommandNodeDatarecord class. -
Method Summary
Modifier and TypeMethodDescriptionint[]Returns the value of thechildNodeIndicesrecord component.final booleanIndicates whether some other object is "equal to" this one.intflags()Returns the value of theflagsrecord component.final inthashCode()Returns a hash code value for this object.intReturns the value of theredirectNodeIndexrecord component.Returns the value of thesuggestableNoderecord component.final StringtoString()Returns a string representation of this record class.booleanvalidateChildNodeIndices(IntSet indices) booleanvalidateRedirectNodeIndex(IntSet indices) voidwrite(PacketByteBuf buf)
-
Field Details
-
suggestableNode
The field for thesuggestableNoderecord component. -
flags
private final int flagsThe field for theflagsrecord component. -
redirectNodeIndex
private final int redirectNodeIndexThe field for theredirectNodeIndexrecord component. -
childNodeIndices
private final int[] childNodeIndicesThe field for thechildNodeIndicesrecord component.
-
-
Constructor Details
-
CommandNodeData
CommandNodeData(@Nullable @Nullable CommandTreeS2CPacket.SuggestableNode suggestableNode, int flags, int redirectNodeIndex, int[] childNodeIndices) Creates an instance of aCommandNodeDatarecord class.- Parameters:
suggestableNode- the value for thesuggestableNoderecord componentflags- the value for theflagsrecord componentredirectNodeIndex- the value for theredirectNodeIndexrecord componentchildNodeIndices- the value for thechildNodeIndicesrecord component
-
-
Method Details
-
write
- Mappings:
Namespace Name Mixin selector named writeLnet/minecraft/network/packet/s2c/play/CommandTreeS2CPacket$CommandNodeData;write(Lnet/minecraft/network/PacketByteBuf;)Vintermediary method_42075Lnet/minecraft/class_2641$class_2642;method_42075(Lnet/minecraft/class_2540;)Vofficial aLadj$b;a(Lwn;)V
-
validateRedirectNodeIndex
- Mappings:
Namespace Name Mixin selector named validateRedirectNodeIndexLnet/minecraft/network/packet/s2c/play/CommandTreeS2CPacket$CommandNodeData;validateRedirectNodeIndex(Lit/unimi/dsi/fastutil/ints/IntSet;)Zintermediary method_42074Lnet/minecraft/class_2641$class_2642;method_42074(Lit/unimi/dsi/fastutil/ints/IntSet;)Zofficial aLadj$b;a(Lit/unimi/dsi/fastutil/ints/IntSet;)Z
-
validateChildNodeIndices
- Mappings:
Namespace Name Mixin selector named validateChildNodeIndicesLnet/minecraft/network/packet/s2c/play/CommandTreeS2CPacket$CommandNodeData;validateChildNodeIndices(Lit/unimi/dsi/fastutil/ints/IntSet;)Zintermediary method_42076Lnet/minecraft/class_2641$class_2642;method_42076(Lit/unimi/dsi/fastutil/ints/IntSet;)Zofficial bLadj$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 thesuggestableNoderecord component.- Returns:
- the value of the
suggestableNoderecord component
-
flags
public int flags()Returns the value of theflagsrecord component.- Returns:
- the value of the
flagsrecord component
-
redirectNodeIndex
public int redirectNodeIndex()Returns the value of theredirectNodeIndexrecord component.- Returns:
- the value of the
redirectNodeIndexrecord component
-
childNodeIndices
public int[] childNodeIndices()Returns the value of thechildNodeIndicesrecord component.- Returns:
- the value of the
childNodeIndicesrecord component
-