Package net.minecraft.command.argument
Class RegistryEntryArgumentType<T>
java.lang.Object
net.minecraft.command.argument.RegistryEntryArgumentType<T>
- All Implemented Interfaces:
com.mojang.brigadier.arguments.ArgumentType<RegistryEntry<T>>
- Direct Known Subclasses:
RegistryEntryArgumentType.LootConditionArgumentType,RegistryEntryArgumentType.LootFunctionArgumentType,RegistryEntryArgumentType.LootTableArgumentType
public class RegistryEntryArgumentType<T>
extends Object
implements com.mojang.brigadier.arguments.ArgumentType<RegistryEntry<T>>
- Mappings:
Namespace Name named net/minecraft/command/argument/RegistryEntryArgumentTypeintermediary net/minecraft/class_9433official fn
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordstatic final recordstatic interfacestatic classstatic classstatic class -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final com.mojang.serialization.Codec<T> private static final Collection<String> static final com.mojang.brigadier.exceptions.DynamicCommandExceptionTypestatic final com.mojang.brigadier.exceptions.Dynamic2CommandExceptionTypestatic final com.mojang.serialization.DynamicOps<NbtElement> private final Optional<? extends RegistryWrapper.Impl<T>> private final PackratParser<RegistryEntryArgumentType.class_11382<T, NbtElement>> private final RegistryWrapper.WrapperLookup -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedRegistryEntryArgumentType(CommandRegistryAccess registryAccess, RegistryKey<? extends Registry<T>> registry, com.mojang.serialization.Codec<T> entryCodec) -
Method Summary
Modifier and TypeMethodDescriptionprivate static <T> RegistryEntry<T> getArgument(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String argument) static RegistryEntry<LootCondition> getLootCondition(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String argument) static RegistryEntry<LootFunction> getLootFunction(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String argument) static RegistryEntry<LootTable> getLootTable(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String argument) lootCondition(CommandRegistryAccess registryAccess) lootFunction(CommandRegistryAccess registryAccess) lootTable(CommandRegistryAccess registryAccess) static <T,O> PackratParser <RegistryEntryArgumentType.class_11382<T, O>> method_71495(RegistryKey<? extends Registry<T>> registryKey, com.mojang.serialization.DynamicOps<O> dynamicOps) parse(com.mojang.brigadier.StringReader stringReader) private <O> @Nullable RegistryEntry<T> parse(com.mojang.brigadier.StringReader reader, PackratParser<RegistryEntryArgumentType.class_11382<T, O>> packratParser, com.mojang.serialization.DynamicOps<O> dynamicOps) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.mojang.brigadier.arguments.ArgumentType
listSuggestions, parse
-
Field Details
-
EXAMPLES
- Mappings:
Namespace Name Mixin selector named EXAMPLESLnet/minecraft/command/argument/RegistryEntryArgumentType;EXAMPLES:Ljava/util/Collection;intermediary field_50038Lnet/minecraft/class_9433;field_50038:Ljava/util/Collection;official dLfn;d:Ljava/util/Collection;
-
FAILED_TO_PARSE_EXCEPTION
public static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType FAILED_TO_PARSE_EXCEPTION- Mappings:
Namespace Name Mixin selector named FAILED_TO_PARSE_EXCEPTIONLnet/minecraft/command/argument/RegistryEntryArgumentType;FAILED_TO_PARSE_EXCEPTION:Lcom/mojang/brigadier/exceptions/DynamicCommandExceptionType;intermediary field_50037Lnet/minecraft/class_9433;field_50037:Lcom/mojang/brigadier/exceptions/DynamicCommandExceptionType;official aLfn;a:Lcom/mojang/brigadier/exceptions/DynamicCommandExceptionType;
-
field_60428
public static final com.mojang.brigadier.exceptions.Dynamic2CommandExceptionType field_60428- Mappings:
Namespace Name Mixin selector named field_60428Lnet/minecraft/command/argument/RegistryEntryArgumentType;field_60428:Lcom/mojang/brigadier/exceptions/Dynamic2CommandExceptionType;intermediary field_60428Lnet/minecraft/class_9433;field_60428:Lcom/mojang/brigadier/exceptions/Dynamic2CommandExceptionType;official bLfn;b:Lcom/mojang/brigadier/exceptions/Dynamic2CommandExceptionType;
-
field_60429
- Mappings:
Namespace Name Mixin selector named field_60429Lnet/minecraft/command/argument/RegistryEntryArgumentType;field_60429:Lcom/mojang/serialization/DynamicOps;intermediary field_60429Lnet/minecraft/class_9433;field_60429:Lcom/mojang/serialization/DynamicOps;official cLfn;c:Lcom/mojang/serialization/DynamicOps;
-
registries
- Mappings:
Namespace Name Mixin selector named registriesLnet/minecraft/command/argument/RegistryEntryArgumentType;registries:Lnet/minecraft/registry/RegistryWrapper$WrapperLookup;intermediary field_50040Lnet/minecraft/class_9433;field_50040:Lnet/minecraft/class_7225$class_7874;official eLfn;e:Ljk$a;
-
field_60430
- Mappings:
Namespace Name Mixin selector named field_60430Lnet/minecraft/command/argument/RegistryEntryArgumentType;field_60430:Ljava/util/Optional;intermediary field_60430Lnet/minecraft/class_9433;field_60430:Ljava/util/Optional;official fLfn;f:Ljava/util/Optional;
-
entryCodec
- Mappings:
Namespace Name Mixin selector named entryCodecLnet/minecraft/command/argument/RegistryEntryArgumentType;entryCodec:Lcom/mojang/serialization/Codec;intermediary field_50042Lnet/minecraft/class_9433;field_50042:Lcom/mojang/serialization/Codec;official gLfn;g:Lcom/mojang/serialization/Codec;
-
field_60431
- Mappings:
Namespace Name Mixin selector named field_60431Lnet/minecraft/command/argument/RegistryEntryArgumentType;field_60431:Lnet/minecraft/util/packrat/PackratParser;intermediary field_60431Lnet/minecraft/class_9433;field_60431:Lnet/minecraft/class_9408;official hLfn;h:Lbrd;
-
-
Constructor Details
-
RegistryEntryArgumentType
protected RegistryEntryArgumentType(CommandRegistryAccess registryAccess, RegistryKey<? extends Registry<T>> registry, com.mojang.serialization.Codec<T> entryCodec) - Mappings:
Namespace Name Mixin selector named <init>Lnet/minecraft/command/argument/RegistryEntryArgumentType;<init>(Lnet/minecraft/command/CommandRegistryAccess;Lnet/minecraft/registry/RegistryKey;Lcom/mojang/serialization/Codec;)Vintermediary <init>Lnet/minecraft/class_9433;<init>(Lnet/minecraft/class_7157;Lnet/minecraft/class_5321;Lcom/mojang/serialization/Codec;)Vofficial <init>Lfn;<init>(Leg;Lalv;Lcom/mojang/serialization/Codec;)V
-
-
Method Details
-
method_71495
public static <T,O> PackratParser<RegistryEntryArgumentType.class_11382<T,O>> method_71495(RegistryKey<? extends Registry<T>> registryKey, com.mojang.serialization.DynamicOps<O> dynamicOps) - Mappings:
Namespace Name Mixin selector named method_71495Lnet/minecraft/command/argument/RegistryEntryArgumentType;method_71495(Lnet/minecraft/registry/RegistryKey;Lcom/mojang/serialization/DynamicOps;)Lnet/minecraft/util/packrat/PackratParser;intermediary method_71495Lnet/minecraft/class_9433;method_71495(Lnet/minecraft/class_5321;Lcom/mojang/serialization/DynamicOps;)Lnet/minecraft/class_9408;official aLfn;a(Lalv;Lcom/mojang/serialization/DynamicOps;)Lbrd;
-
lootTable
public static RegistryEntryArgumentType.LootTableArgumentType lootTable(CommandRegistryAccess registryAccess) - Mappings:
Namespace Name Mixin selector named lootTableLnet/minecraft/command/argument/RegistryEntryArgumentType;lootTable(Lnet/minecraft/command/CommandRegistryAccess;)Lnet/minecraft/command/argument/RegistryEntryArgumentType$LootTableArgumentType;intermediary method_58482Lnet/minecraft/class_9433;method_58482(Lnet/minecraft/class_7157;)Lnet/minecraft/class_9433$class_9436;official aLfn;a(Leg;)Lfn$d;
-
getLootTable
public static RegistryEntry<LootTable> getLootTable(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String argument) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException- Mappings:
Namespace Name Mixin selector named getLootTableLnet/minecraft/command/argument/RegistryEntryArgumentType;getLootTable(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)Lnet/minecraft/registry/entry/RegistryEntry;intermediary method_58481Lnet/minecraft/class_9433;method_58481(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)Lnet/minecraft/class_6880;official aLfn;a(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)Lji;
-
lootFunction
public static RegistryEntryArgumentType.LootFunctionArgumentType lootFunction(CommandRegistryAccess registryAccess) - Mappings:
Namespace Name Mixin selector named lootFunctionLnet/minecraft/command/argument/RegistryEntryArgumentType;lootFunction(Lnet/minecraft/command/CommandRegistryAccess;)Lnet/minecraft/command/argument/RegistryEntryArgumentType$LootFunctionArgumentType;intermediary method_58486Lnet/minecraft/class_9433;method_58486(Lnet/minecraft/class_7157;)Lnet/minecraft/class_9433$class_9434;official bLfn;b(Leg;)Lfn$b;
-
getLootFunction
public static RegistryEntry<LootFunction> getLootFunction(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String argument) - Mappings:
Namespace Name Mixin selector named getLootFunctionLnet/minecraft/command/argument/RegistryEntryArgumentType;getLootFunction(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)Lnet/minecraft/registry/entry/RegistryEntry;intermediary method_58485Lnet/minecraft/class_9433;method_58485(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)Lnet/minecraft/class_6880;official bLfn;b(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)Lji;
-
lootCondition
public static RegistryEntryArgumentType.LootConditionArgumentType lootCondition(CommandRegistryAccess registryAccess) - Mappings:
Namespace Name Mixin selector named lootConditionLnet/minecraft/command/argument/RegistryEntryArgumentType;lootCondition(Lnet/minecraft/command/CommandRegistryAccess;)Lnet/minecraft/command/argument/RegistryEntryArgumentType$LootConditionArgumentType;intermediary method_58489Lnet/minecraft/class_9433;method_58489(Lnet/minecraft/class_7157;)Lnet/minecraft/class_9433$class_9435;official cLfn;c(Leg;)Lfn$c;
-
getLootCondition
public static RegistryEntry<LootCondition> getLootCondition(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String argument) - Mappings:
Namespace Name Mixin selector named getLootConditionLnet/minecraft/command/argument/RegistryEntryArgumentType;getLootCondition(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)Lnet/minecraft/registry/entry/RegistryEntry;intermediary method_58488Lnet/minecraft/class_9433;method_58488(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)Lnet/minecraft/class_6880;official cLfn;c(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)Lji;
-
getArgument
private static <T> RegistryEntry<T> getArgument(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String argument) - Mappings:
Namespace Name Mixin selector named getArgumentLnet/minecraft/command/argument/RegistryEntryArgumentType;getArgument(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)Lnet/minecraft/registry/entry/RegistryEntry;intermediary method_58490Lnet/minecraft/class_9433;method_58490(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)Lnet/minecraft/class_6880;official dLfn;d(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)Lji;
-
parse
@Nullable public @Nullable RegistryEntry<T> parse(com.mojang.brigadier.StringReader stringReader) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Specified by:
parsein interfacecom.mojang.brigadier.arguments.ArgumentType<T>- Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException- Mappings:
Namespace Name Mixin selector named parseLnet/minecraft/command/argument/RegistryEntryArgumentType;parse(Lcom/mojang/brigadier/StringReader;)Lnet/minecraft/registry/entry/RegistryEntry;intermediary method_58479Lnet/minecraft/class_9433;method_58479(Lcom/mojang/brigadier/StringReader;)Lnet/minecraft/class_6880;official aLfn;a(Lcom/mojang/brigadier/StringReader;)Lji;
-
parse
@Nullable private <O> @Nullable RegistryEntry<T> parse(com.mojang.brigadier.StringReader reader, PackratParser<RegistryEntryArgumentType.class_11382<T, O>> packratParser, com.mojang.serialization.DynamicOps<O> dynamicOps) throws com.mojang.brigadier.exceptions.CommandSyntaxException- Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException- Mappings:
Namespace Name Mixin selector named parseLnet/minecraft/command/argument/RegistryEntryArgumentType;parse(Lcom/mojang/brigadier/StringReader;Lnet/minecraft/util/packrat/PackratParser;Lcom/mojang/serialization/DynamicOps;)Lnet/minecraft/registry/entry/RegistryEntry;intermediary method_68814Lnet/minecraft/class_9433;method_68814(Lcom/mojang/brigadier/StringReader;Lnet/minecraft/class_9408;Lcom/mojang/serialization/DynamicOps;)Lnet/minecraft/class_6880;official aLfn;a(Lcom/mojang/brigadier/StringReader;Lbrd;Lcom/mojang/serialization/DynamicOps;)Lji;
-
getExamples
- Specified by:
getExamplesin interfacecom.mojang.brigadier.arguments.ArgumentType<T>
-