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 Summary
FieldsModifier and TypeFieldDescriptionprivate final @Nullable Identifier
The field for theid
record component.private final String
The field for thename
record component.private final ArgumentSerializer.ArgumentTypeProperties
<?> The field for theproperties
record component. -
Constructor Summary
ConstructorsConstructorDescriptionArgumentNode
(String string, ArgumentSerializer.ArgumentTypeProperties<?> argumentTypeProperties, @Nullable Identifier identifier) -
Method Summary
Modifier and TypeMethodDescription<S> com.mojang.brigadier.builder.ArgumentBuilder
<S, ?> createArgumentBuilder
(CommandRegistryAccess commandRegistryAccess, CommandTreeS2CPacket.NodeFactory<S> nodeFactory) final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.id()
Returns the value of theid
record component.name()
Returns the value of thename
record component.Returns the value of theproperties
record component.final String
toString()
Returns a string representation of this record class.void
write
(PacketByteBuf buf) private static <A extends com.mojang.brigadier.arguments.ArgumentType<?>>
voidwrite
(PacketByteBuf buf, ArgumentSerializer.ArgumentTypeProperties<A> properties) private static <A extends com.mojang.brigadier.arguments.ArgumentType<?>,
T extends ArgumentSerializer.ArgumentTypeProperties<A>>
voidwrite
(PacketByteBuf buf, ArgumentSerializer<A, T> serializer, ArgumentSerializer.ArgumentTypeProperties<A> properties)
-
Field Details
-
name
The field for thename
record component. -
properties
The field for theproperties
record component. -
id
The field for theid
record component.
-
-
Constructor Details
-
ArgumentNode
ArgumentNode(String string, ArgumentSerializer.ArgumentTypeProperties<?> argumentTypeProperties, @Nullable @Nullable Identifier identifier)
-
-
Method Details
-
createArgumentBuilder
public <S> com.mojang.brigadier.builder.ArgumentBuilder<S,?> createArgumentBuilder(CommandRegistryAccess commandRegistryAccess, CommandTreeS2CPacket.NodeFactory<S> nodeFactory) - Specified by:
createArgumentBuilder
in interfaceCommandTreeS2CPacket.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
- Specified by:
write
in interfaceCommandTreeS2CPacket.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
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. All components in this record class are compared withObjects::equals(Object,Object)
. -
name
Returns the value of thename
record component.- Returns:
- the value of the
name
record component
-
properties
Returns the value of theproperties
record component.- Returns:
- the value of the
properties
record component
-
id
Returns the value of theid
record component.- Returns:
- the value of the
id
record component
-