Record Class CommandTreeS2CPacket.LiteralNode
java.lang.Object
java.lang.Record
net.minecraft.network.packet.s2c.play.CommandTreeS2CPacket.LiteralNode
- Record Components:
literal-
- All Implemented Interfaces:
CommandTreeS2CPacket.SuggestableNode
- Enclosing class:
CommandTreeS2CPacket
private static record CommandTreeS2CPacket.LiteralNode(String literal)
extends Record
implements CommandTreeS2CPacket.SuggestableNode
- Mappings:
Namespace Name named net/minecraft/network/packet/s2c/play/CommandTreeS2CPacket$LiteralNodeintermediary net/minecraft/class_2641$class_7233official adj$cnamed literalintermediary comp_4291official a
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionLiteralNode(String literal) Creates an instance of aLiteralNoderecord class. -
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.literal()Returns the value of theliteralrecord component.final StringtoString()Returns a string representation of this record class.voidwrite(PacketByteBuf buf)
-
Field Details
-
literal
The field for theliteralrecord component.
-
-
Constructor Details
-
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
-
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). -
literal
Returns the value of theliteralrecord component.- Returns:
- the value of the
literalrecord component
-