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.Reference<T>>
public class RegistryEntryArgumentType<T>
extends Object
implements com.mojang.brigadier.arguments.ArgumentType<RegistryEntry.Reference<T>>
- Mappings:
Namespace Name official eointermediary net/minecraft/class_7733named net/minecraft/command/argument/RegistryEntryArgumentType
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final Collection<String>static final com.mojang.brigadier.exceptions.Dynamic3CommandExceptionTypestatic final com.mojang.brigadier.exceptions.Dynamic2CommandExceptionTypeprivate static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType(package private) final RegistryKey<? extends Registry<T>>private final RegistryWrapper<T> -
Constructor Summary
ConstructorsConstructorDescriptionRegistryEntryArgumentType(CommandRegistryAccess registryAccess, RegistryKey<? extends Registry<T>> registryRef) -
Method Summary
Modifier and TypeMethodDescriptionstatic RegistryEntry.Reference<ConfiguredFeature<?,?>> getConfiguredFeature(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String name) static RegistryEntry.Reference<Enchantment>getEnchantment(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String name) getEntityAttribute(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String name) static RegistryEntry.Reference<EntityType<?>>getEntityType(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String name) static <T> RegistryEntry.Reference<T>getRegistryEntry(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String name, RegistryKey<Registry<T>> registryRef) static RegistryEntry.Reference<StatusEffect>getStatusEffect(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String name) static RegistryEntry.Reference<Structure>getStructure(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String name) static RegistryEntry.Reference<EntityType<?>>getSummonableEntityType(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String name) <S> CompletableFuture<com.mojang.brigadier.suggestion.Suggestions>listSuggestions(com.mojang.brigadier.context.CommandContext<S> context, com.mojang.brigadier.suggestion.SuggestionsBuilder builder) parse(com.mojang.brigadier.StringReader stringReader) static <T> RegistryEntryArgumentType<T>registryEntry(CommandRegistryAccess registryAccess, RegistryKey<? extends Registry<T>> registryRef)
-
Field Details
-
EXAMPLES
- Mappings:
Namespace Name Mixin selector official cLeo;c:Ljava/util/Collection;intermediary field_40403Lnet/minecraft/class_7733;field_40403:Ljava/util/Collection;named EXAMPLESLnet/minecraft/command/argument/RegistryEntryArgumentType;EXAMPLES:Ljava/util/Collection;
-
NOT_SUMMONABLE_EXCEPTION
private static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType NOT_SUMMONABLE_EXCEPTION- Mappings:
Namespace Name Mixin selector official dLeo;d:Lcom/mojang/brigadier/exceptions/DynamicCommandExceptionType;intermediary field_40404Lnet/minecraft/class_7733;field_40404:Lcom/mojang/brigadier/exceptions/DynamicCommandExceptionType;named NOT_SUMMONABLE_EXCEPTIONLnet/minecraft/command/argument/RegistryEntryArgumentType;NOT_SUMMONABLE_EXCEPTION:Lcom/mojang/brigadier/exceptions/DynamicCommandExceptionType;
-
NOT_FOUND_EXCEPTION
public static final com.mojang.brigadier.exceptions.Dynamic2CommandExceptionType NOT_FOUND_EXCEPTION- Mappings:
Namespace Name Mixin selector official aLeo;a:Lcom/mojang/brigadier/exceptions/Dynamic2CommandExceptionType;intermediary field_40401Lnet/minecraft/class_7733;field_40401:Lcom/mojang/brigadier/exceptions/Dynamic2CommandExceptionType;named NOT_FOUND_EXCEPTIONLnet/minecraft/command/argument/RegistryEntryArgumentType;NOT_FOUND_EXCEPTION:Lcom/mojang/brigadier/exceptions/Dynamic2CommandExceptionType;
-
INVALID_TYPE_EXCEPTION
public static final com.mojang.brigadier.exceptions.Dynamic3CommandExceptionType INVALID_TYPE_EXCEPTION- Mappings:
Namespace Name Mixin selector official bLeo;b:Lcom/mojang/brigadier/exceptions/Dynamic3CommandExceptionType;intermediary field_40402Lnet/minecraft/class_7733;field_40402:Lcom/mojang/brigadier/exceptions/Dynamic3CommandExceptionType;named INVALID_TYPE_EXCEPTIONLnet/minecraft/command/argument/RegistryEntryArgumentType;INVALID_TYPE_EXCEPTION:Lcom/mojang/brigadier/exceptions/Dynamic3CommandExceptionType;
-
registryRef
- Mappings:
Namespace Name Mixin selector official eLeo;e:Lacp;intermediary field_40405Lnet/minecraft/class_7733;field_40405:Lnet/minecraft/class_5321;named registryRefLnet/minecraft/command/argument/RegistryEntryArgumentType;registryRef:Lnet/minecraft/registry/RegistryKey;
-
registryWrapper
- Mappings:
Namespace Name Mixin selector official fLeo;f:Lhg;intermediary field_40406Lnet/minecraft/class_7733;field_40406:Lnet/minecraft/class_7225;named registryWrapperLnet/minecraft/command/argument/RegistryEntryArgumentType;registryWrapper:Lnet/minecraft/registry/RegistryWrapper;
-
-
Constructor Details
-
RegistryEntryArgumentType
public RegistryEntryArgumentType(CommandRegistryAccess registryAccess, RegistryKey<? extends Registry<T>> registryRef) - Mappings:
Namespace Name Mixin selector official <init>Leo;<init>(Ldm;Lacp;)Vintermediary <init>Lnet/minecraft/class_7733;<init>(Lnet/minecraft/class_7157;Lnet/minecraft/class_5321;)Vnamed <init>Lnet/minecraft/command/argument/RegistryEntryArgumentType;<init>(Lnet/minecraft/command/CommandRegistryAccess;Lnet/minecraft/registry/RegistryKey;)V
-
-
Method Details
-
registryEntry
public static <T> RegistryEntryArgumentType<T> registryEntry(CommandRegistryAccess registryAccess, RegistryKey<? extends Registry<T>> registryRef) - Mappings:
Namespace Name Mixin selector official aLeo;a(Ldm;Lacp;)Leo;intermediary method_45603Lnet/minecraft/class_7733;method_45603(Lnet/minecraft/class_7157;Lnet/minecraft/class_5321;)Lnet/minecraft/class_7733;named registryEntryLnet/minecraft/command/argument/RegistryEntryArgumentType;registryEntry(Lnet/minecraft/command/CommandRegistryAccess;Lnet/minecraft/registry/RegistryKey;)Lnet/minecraft/command/argument/RegistryEntryArgumentType;
-
getRegistryEntry
public static <T> RegistryEntry.Reference<T> getRegistryEntry(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String name, RegistryKey<Registry<T>> registryRef) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException- Mappings:
Namespace Name Mixin selector official aLeo;a(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;Lacp;)Lhe$c;intermediary method_45602Lnet/minecraft/class_7733;method_45602(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;Lnet/minecraft/class_5321;)Lnet/minecraft/class_6880$class_6883;named getRegistryEntryLnet/minecraft/command/argument/RegistryEntryArgumentType;getRegistryEntry(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;Lnet/minecraft/registry/RegistryKey;)Lnet/minecraft/registry/entry/RegistryEntry$Reference;
-
getEntityAttribute
public static RegistryEntry.Reference<EntityAttribute> getEntityAttribute(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String name) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException- Mappings:
Namespace Name Mixin selector official aLeo;a(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)Lhe$c;intermediary method_45601Lnet/minecraft/class_7733;method_45601(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)Lnet/minecraft/class_6880$class_6883;named getEntityAttributeLnet/minecraft/command/argument/RegistryEntryArgumentType;getEntityAttribute(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)Lnet/minecraft/registry/entry/RegistryEntry$Reference;
-
getConfiguredFeature
public static RegistryEntry.Reference<ConfiguredFeature<?,?>> getConfiguredFeature(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String name) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException- Mappings:
Namespace Name Mixin selector official bLeo;b(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)Lhe$c;intermediary method_45607Lnet/minecraft/class_7733;method_45607(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)Lnet/minecraft/class_6880$class_6883;named getConfiguredFeatureLnet/minecraft/command/argument/RegistryEntryArgumentType;getConfiguredFeature(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)Lnet/minecraft/registry/entry/RegistryEntry$Reference;
-
getStructure
public static RegistryEntry.Reference<Structure> getStructure(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String name) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException- Mappings:
Namespace Name Mixin selector official cLeo;c(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)Lhe$c;intermediary method_45608Lnet/minecraft/class_7733;method_45608(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)Lnet/minecraft/class_6880$class_6883;named getStructureLnet/minecraft/command/argument/RegistryEntryArgumentType;getStructure(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)Lnet/minecraft/registry/entry/RegistryEntry$Reference;
-
getEntityType
public static RegistryEntry.Reference<EntityType<?>> getEntityType(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String name) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException- Mappings:
Namespace Name Mixin selector official dLeo;d(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)Lhe$c;intermediary method_45609Lnet/minecraft/class_7733;method_45609(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)Lnet/minecraft/class_6880$class_6883;named getEntityTypeLnet/minecraft/command/argument/RegistryEntryArgumentType;getEntityType(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)Lnet/minecraft/registry/entry/RegistryEntry$Reference;
-
getSummonableEntityType
public static RegistryEntry.Reference<EntityType<?>> getSummonableEntityType(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String name) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException- Mappings:
Namespace Name Mixin selector official eLeo;e(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)Lhe$c;intermediary method_45610Lnet/minecraft/class_7733;method_45610(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)Lnet/minecraft/class_6880$class_6883;named getSummonableEntityTypeLnet/minecraft/command/argument/RegistryEntryArgumentType;getSummonableEntityType(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)Lnet/minecraft/registry/entry/RegistryEntry$Reference;
-
getStatusEffect
public static RegistryEntry.Reference<StatusEffect> getStatusEffect(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String name) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException- Mappings:
Namespace Name Mixin selector official fLeo;f(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)Lhe$c;intermediary method_45611Lnet/minecraft/class_7733;method_45611(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)Lnet/minecraft/class_6880$class_6883;named getStatusEffectLnet/minecraft/command/argument/RegistryEntryArgumentType;getStatusEffect(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)Lnet/minecraft/registry/entry/RegistryEntry$Reference;
-
getEnchantment
public static RegistryEntry.Reference<Enchantment> getEnchantment(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String name) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException- Mappings:
Namespace Name Mixin selector official gLeo;g(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)Lhe$c;intermediary method_45612Lnet/minecraft/class_7733;method_45612(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)Lnet/minecraft/class_6880$class_6883;named getEnchantmentLnet/minecraft/command/argument/RegistryEntryArgumentType;getEnchantment(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)Lnet/minecraft/registry/entry/RegistryEntry$Reference;
-
parse
public RegistryEntry.Reference<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 official aLeo;a(Lcom/mojang/brigadier/StringReader;)Lhe$c;intermediary method_45600Lnet/minecraft/class_7733;method_45600(Lcom/mojang/brigadier/StringReader;)Lnet/minecraft/class_6880$class_6883;named parseLnet/minecraft/command/argument/RegistryEntryArgumentType;parse(Lcom/mojang/brigadier/StringReader;)Lnet/minecraft/registry/entry/RegistryEntry$Reference;
-
listSuggestions
public <S> CompletableFuture<com.mojang.brigadier.suggestion.Suggestions> listSuggestions(com.mojang.brigadier.context.CommandContext<S> context, com.mojang.brigadier.suggestion.SuggestionsBuilder builder) - Specified by:
listSuggestionsin interfacecom.mojang.brigadier.arguments.ArgumentType<T>- Mappings:
Namespace Name Mixin selector official listSuggestionsLeo;listSuggestions(Lcom/mojang/brigadier/context/CommandContext;Lcom/mojang/brigadier/suggestion/SuggestionsBuilder;)Ljava/util/concurrent/CompletableFuture;intermediary listSuggestionsLnet/minecraft/class_7733;listSuggestions(Lcom/mojang/brigadier/context/CommandContext;Lcom/mojang/brigadier/suggestion/SuggestionsBuilder;)Ljava/util/concurrent/CompletableFuture;named listSuggestionsLnet/minecraft/command/argument/RegistryEntryArgumentType;listSuggestions(Lcom/mojang/brigadier/context/CommandContext;Lcom/mojang/brigadier/suggestion/SuggestionsBuilder;)Ljava/util/concurrent/CompletableFuture;
-
getExamples
- Specified by:
getExamplesin interfacecom.mojang.brigadier.arguments.ArgumentType<T>
-