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$ArgumentNodeintermediary net/minecraft/class_2641$class_7232official adj$anamed nameintermediary comp_4284official anamed propertiesintermediary comp_4285official bnamed idintermediary comp_4286official c
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final @Nullable IdentifierThe field for theidrecord component.private final StringThe field for thenamerecord component.private final ArgumentSerializer.ArgumentTypeProperties<?> The field for thepropertiesrecord 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 booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.id()Returns the value of theidrecord component.name()Returns the value of thenamerecord component.Returns the value of thepropertiesrecord component.final StringtoString()Returns a string representation of this record class.voidwrite(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 thenamerecord component. -
properties
The field for thepropertiesrecord component. -
id
The field for theidrecord 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:
createArgumentBuilderin interfaceCommandTreeS2CPacket.SuggestableNode- Mappings:
Namespace Name Mixin selector named createArgumentBuilderLnet/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_42070Lnet/minecraft/class_2641$class_7235;method_42070(Lnet/minecraft/class_7157;Lnet/minecraft/class_2641$class_11408;)Lcom/mojang/brigadier/builder/ArgumentBuilder;official aLadj$g;a(Lef;Ladj$d;)Lcom/mojang/brigadier/builder/ArgumentBuilder;
-
write
- Specified by:
writein interfaceCommandTreeS2CPacket.SuggestableNode- Mappings:
Namespace Name Mixin selector named writeLnet/minecraft/network/packet/s2c/play/CommandTreeS2CPacket$SuggestableNode;write(Lnet/minecraft/network/PacketByteBuf;)Vintermediary method_42071Lnet/minecraft/class_2641$class_7235;method_42071(Lnet/minecraft/class_2540;)Vofficial aLadj$g;a(Lwn;)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 writeLnet/minecraft/network/packet/s2c/play/CommandTreeS2CPacket$ArgumentNode;write(Lnet/minecraft/network/PacketByteBuf;Lnet/minecraft/command/argument/serialize/ArgumentSerializer$ArgumentTypeProperties;)Vintermediary method_42072Lnet/minecraft/class_2641$class_7232;method_42072(Lnet/minecraft/class_2540;Lnet/minecraft/class_2314$class_7217;)Vofficial aLadj$a;a(Lwn;Lij$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 writeLnet/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;)Vintermediary method_42073Lnet/minecraft/class_2641$class_7232;method_42073(Lnet/minecraft/class_2540;Lnet/minecraft/class_2314;Lnet/minecraft/class_2314$class_7217;)Vofficial aLadj$a;a(Lwn;Lij;Lij$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 thenamerecord component.- Returns:
- the value of the
namerecord component
-
properties
Returns the value of thepropertiesrecord component.- Returns:
- the value of the
propertiesrecord component
-
id
Returns the value of theidrecord component.- Returns:
- the value of the
idrecord component
-