Package net.minecraft.command.argument
Record Class RegistryEntryArgumentType.DirectParser<T,O>
java.lang.Object
java.lang.Record
net.minecraft.command.argument.RegistryEntryArgumentType.DirectParser<T,O>
- Record Components:
value
-
- All Implemented Interfaces:
RegistryEntryArgumentType.EntryParser<T,
O>
- Enclosing class:
RegistryEntryArgumentType<T>
public static record RegistryEntryArgumentType.DirectParser<T,O> (O value)
extends Record
implements RegistryEntryArgumentType.EntryParser<T,O>
- Mappings:
Namespace Name named net/minecraft/command/argument/RegistryEntryArgumentType$DirectParser
intermediary net/minecraft/class_9433$class_11380
official fo$b
named value
intermediary comp_4272
official a
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.parse
(com.mojang.brigadier.ImmutableStringReader reader, RegistryWrapper.WrapperLookup registries, com.mojang.serialization.DynamicOps<O> ops, com.mojang.serialization.Codec<T> codec, RegistryWrapper.Impl<T> registryAccess) final String
toString()
Returns a string representation of this record class.value()
Returns the value of thevalue
record component.
-
Field Details
-
value
The field for thevalue
record component.
-
-
Constructor Details
-
DirectParser
-
-
Method Details
-
parse
public RegistryEntry<T> parse(com.mojang.brigadier.ImmutableStringReader reader, RegistryWrapper.WrapperLookup registries, com.mojang.serialization.DynamicOps<O> ops, com.mojang.serialization.Codec<T> codec, RegistryWrapper.Impl<T> registryAccess) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Specified by:
parse
in interfaceRegistryEntryArgumentType.EntryParser<T,
O> - Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
- Mappings:
Namespace Name Mixin selector named parse
Lnet/minecraft/command/argument/RegistryEntryArgumentType$EntryParser;parse(Lcom/mojang/brigadier/ImmutableStringReader;Lnet/minecraft/registry/RegistryWrapper$WrapperLookup;Lcom/mojang/serialization/DynamicOps;Lcom/mojang/serialization/Codec;Lnet/minecraft/registry/RegistryWrapper$Impl;)Lnet/minecraft/registry/entry/RegistryEntry;
intermediary method_71499
Lnet/minecraft/class_9433$class_11382;method_71499(Lcom/mojang/brigadier/ImmutableStringReader;Lnet/minecraft/class_7225$class_7874;Lcom/mojang/serialization/DynamicOps;Lcom/mojang/serialization/Codec;Lnet/minecraft/class_7225$class_7226;)Lnet/minecraft/class_6880;
official a
Lfo$g;a(Lcom/mojang/brigadier/ImmutableStringReader;Ljn$a;Lcom/mojang/serialization/DynamicOps;Lcom/mojang/serialization/Codec;Ljn$b;)Ljl;
-
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)
. -
value
Returns the value of thevalue
record component.- Returns:
- the value of the
value
record component
-