Record Class CommandTreeS2CPacket.ArgumentNode

java.lang.Object
java.lang.Record
net.minecraft.network.packet.s2c.play.CommandTreeS2CPacket.ArgumentNode
Record Components:
name -
properties -
id -
All Implemented Interfaces:
CommandTreeS2CPacket.SuggestableNode
Enclosing class:
CommandTreeS2CPacket

private static record CommandTreeS2CPacket.ArgumentNode(String name, ArgumentSerializer.ArgumentTypeProperties<?> properties, @Nullable Identifier id) extends Record implements CommandTreeS2CPacket.SuggestableNode
Mappings:
Namespace Name
named net/minecraft/network/packet/s2c/play/CommandTreeS2CPacket$ArgumentNode
intermediary net/minecraft/class_2641$class_7232
official adi$a
named name
intermediary comp_4284
official a
named properties
intermediary comp_4285
official b
named id
intermediary comp_4286
official c
  • Field Details

  • Constructor Details

  • Method Details

    • createArgumentBuilder

      public <S> com.mojang.brigadier.builder.ArgumentBuilder<S,?> createArgumentBuilder(CommandRegistryAccess commandRegistryAccess, CommandTreeS2CPacket.NodeFactory<S> nodeFactory)
      Specified by:
      createArgumentBuilder in interface CommandTreeS2CPacket.SuggestableNode
      Mappings:
      Namespace Name Mixin selector
      named createArgumentBuilder Lnet/minecraft/network/packet/s2c/play/CommandTreeS2CPacket$SuggestableNode;createArgumentBuilder(Lnet/minecraft/command/CommandRegistryAccess;Lnet/minecraft/network/packet/s2c/play/CommandTreeS2CPacket$NodeFactory;)Lcom/mojang/brigadier/builder/ArgumentBuilder;
      intermediary method_42070 Lnet/minecraft/class_2641$class_7235;method_42070(Lnet/minecraft/class_7157;Lnet/minecraft/class_2641$class_11408;)Lcom/mojang/brigadier/builder/ArgumentBuilder;
      official a Ladi$g;a(Leg;Ladi$d;)Lcom/mojang/brigadier/builder/ArgumentBuilder;
    • write

      public void write(PacketByteBuf buf)
      Specified by:
      write in interface CommandTreeS2CPacket.SuggestableNode
      Mappings:
      Namespace Name Mixin selector
      named write Lnet/minecraft/network/packet/s2c/play/CommandTreeS2CPacket$SuggestableNode;write(Lnet/minecraft/network/PacketByteBuf;)V
      intermediary method_42071 Lnet/minecraft/class_2641$class_7235;method_42071(Lnet/minecraft/class_2540;)V
      official a Ladi$g;a(Lwg;)V
    • write

      private static <A extends com.mojang.brigadier.arguments.ArgumentType<?>> void write(PacketByteBuf buf, ArgumentSerializer.ArgumentTypeProperties<A> properties)
      Mappings:
      Namespace Name Mixin selector
      named write Lnet/minecraft/network/packet/s2c/play/CommandTreeS2CPacket$ArgumentNode;write(Lnet/minecraft/network/PacketByteBuf;Lnet/minecraft/command/argument/serialize/ArgumentSerializer$ArgumentTypeProperties;)V
      intermediary method_42072 Lnet/minecraft/class_2641$class_7232;method_42072(Lnet/minecraft/class_2540;Lnet/minecraft/class_2314$class_7217;)V
      official a Ladi$a;a(Lwg;Lik$a;)V
    • write

      private static <A extends com.mojang.brigadier.arguments.ArgumentType<?>, T extends ArgumentSerializer.ArgumentTypeProperties<A>> void write(PacketByteBuf buf, ArgumentSerializer<A,T> serializer, ArgumentSerializer.ArgumentTypeProperties<A> properties)
      Mappings:
      Namespace Name Mixin selector
      named write Lnet/minecraft/network/packet/s2c/play/CommandTreeS2CPacket$ArgumentNode;write(Lnet/minecraft/network/PacketByteBuf;Lnet/minecraft/command/argument/serialize/ArgumentSerializer;Lnet/minecraft/command/argument/serialize/ArgumentSerializer$ArgumentTypeProperties;)V
      intermediary method_42073 Lnet/minecraft/class_2641$class_7232;method_42073(Lnet/minecraft/class_2540;Lnet/minecraft/class_2314;Lnet/minecraft/class_2314$class_7217;)V
      official a Ladi$a;a(Lwg;Lik;Lik$a;)V
    • toString

      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

      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

      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. All components in this record class are compared with Objects::equals(Object,Object).
      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.
    • name

      public String name()
      Returns the value of the name record component.
      Returns:
      the value of the name record component
    • properties

      Returns the value of the properties record component.
      Returns:
      the value of the properties record component
    • id

      Returns the value of the id record component.
      Returns:
      the value of the id record component