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$DirectParserintermediary net/minecraft/class_9433$class_11380official fn$bnamed valueintermediary comp_4272official a
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()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 StringtoString()Returns a string representation of this record class.value()Returns the value of thevaluerecord component.
-
Field Details
-
value
The field for thevaluerecord 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:
parsein interfaceRegistryEntryArgumentType.EntryParser<T,O> - Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException- Mappings:
Namespace Name Mixin selector named parseLnet/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_71499Lnet/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 aLfn$g;a(Lcom/mojang/brigadier/ImmutableStringReader;Ljm$a;Lcom/mojang/serialization/DynamicOps;Lcom/mojang/serialization/Codec;Ljm$b;)Ljk;
-
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 thevaluerecord component.- Returns:
- the value of the
valuerecord component
-