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 eq
intermediary net/minecraft/class_7733
named net/minecraft/command/argument/RegistryEntryArgumentType
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionprivate static final Collection<String>
static final com.mojang.brigadier.exceptions.Dynamic3CommandExceptionType
static final com.mojang.brigadier.exceptions.Dynamic2CommandExceptionType
private static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType
(package private) final RegistryKey<? extends Registry<T>>
private final RegistryWrapper<T>
-
Constructor Summary
ConstructorDescriptionRegistryEntryArgumentType
(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 c
Leq;c:Ljava/util/Collection;
intermediary field_40403
Lnet/minecraft/class_7733;field_40403:Ljava/util/Collection;
named EXAMPLES
Lnet/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 d
Leq;d:Lcom/mojang/brigadier/exceptions/DynamicCommandExceptionType;
intermediary field_40404
Lnet/minecraft/class_7733;field_40404:Lcom/mojang/brigadier/exceptions/DynamicCommandExceptionType;
named NOT_SUMMONABLE_EXCEPTION
Lnet/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 a
Leq;a:Lcom/mojang/brigadier/exceptions/Dynamic2CommandExceptionType;
intermediary field_40401
Lnet/minecraft/class_7733;field_40401:Lcom/mojang/brigadier/exceptions/Dynamic2CommandExceptionType;
named NOT_FOUND_EXCEPTION
Lnet/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 b
Leq;b:Lcom/mojang/brigadier/exceptions/Dynamic3CommandExceptionType;
intermediary field_40402
Lnet/minecraft/class_7733;field_40402:Lcom/mojang/brigadier/exceptions/Dynamic3CommandExceptionType;
named INVALID_TYPE_EXCEPTION
Lnet/minecraft/command/argument/RegistryEntryArgumentType;INVALID_TYPE_EXCEPTION:Lcom/mojang/brigadier/exceptions/Dynamic3CommandExceptionType;
-
registryRef
- Mappings:
Namespace Name Mixin selector official e
Leq;e:Laev;
intermediary field_40405
Lnet/minecraft/class_7733;field_40405:Lnet/minecraft/class_5321;
named registryRef
Lnet/minecraft/command/argument/RegistryEntryArgumentType;registryRef:Lnet/minecraft/registry/RegistryKey;
-
registryWrapper
- Mappings:
Namespace Name Mixin selector official f
Leq;f:Lhg;
intermediary field_40406
Lnet/minecraft/class_7733;field_40406:Lnet/minecraft/class_7225;
named registryWrapper
Lnet/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>
Leq;<init>(Ldn;Laev;)V
intermediary <init>
Lnet/minecraft/class_7733;<init>(Lnet/minecraft/class_7157;Lnet/minecraft/class_5321;)V
named <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 a
Leq;a(Ldn;Laev;)Leq;
intermediary method_45603
Lnet/minecraft/class_7733;method_45603(Lnet/minecraft/class_7157;Lnet/minecraft/class_5321;)Lnet/minecraft/class_7733;
named registryEntry
Lnet/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 a
Leq;a(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;Laev;)Lhe$c;
intermediary method_45602
Lnet/minecraft/class_7733;method_45602(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;Lnet/minecraft/class_5321;)Lnet/minecraft/class_6880$class_6883;
named getRegistryEntry
Lnet/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 a
Leq;a(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)Lhe$c;
intermediary method_45601
Lnet/minecraft/class_7733;method_45601(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)Lnet/minecraft/class_6880$class_6883;
named getEntityAttribute
Lnet/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 b
Leq;b(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)Lhe$c;
intermediary method_45607
Lnet/minecraft/class_7733;method_45607(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)Lnet/minecraft/class_6880$class_6883;
named getConfiguredFeature
Lnet/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 c
Leq;c(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)Lhe$c;
intermediary method_45608
Lnet/minecraft/class_7733;method_45608(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)Lnet/minecraft/class_6880$class_6883;
named getStructure
Lnet/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 d
Leq;d(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)Lhe$c;
intermediary method_45609
Lnet/minecraft/class_7733;method_45609(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)Lnet/minecraft/class_6880$class_6883;
named getEntityType
Lnet/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 e
Leq;e(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)Lhe$c;
intermediary method_45610
Lnet/minecraft/class_7733;method_45610(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)Lnet/minecraft/class_6880$class_6883;
named getSummonableEntityType
Lnet/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 f
Leq;f(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)Lhe$c;
intermediary method_45611
Lnet/minecraft/class_7733;method_45611(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)Lnet/minecraft/class_6880$class_6883;
named getStatusEffect
Lnet/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 g
Leq;g(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)Lhe$c;
intermediary method_45612
Lnet/minecraft/class_7733;method_45612(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)Lnet/minecraft/class_6880$class_6883;
named getEnchantment
Lnet/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:
parse
in interfacecom.mojang.brigadier.arguments.ArgumentType<T>
- Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
- Mappings:
Namespace Name Mixin selector official a
Leq;a(Lcom/mojang/brigadier/StringReader;)Lhe$c;
intermediary method_45600
Lnet/minecraft/class_7733;method_45600(Lcom/mojang/brigadier/StringReader;)Lnet/minecraft/class_6880$class_6883;
named parse
Lnet/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:
listSuggestions
in interfacecom.mojang.brigadier.arguments.ArgumentType<T>
- Mappings:
Namespace Name Mixin selector official listSuggestions
Leq;listSuggestions(Lcom/mojang/brigadier/context/CommandContext;Lcom/mojang/brigadier/suggestion/SuggestionsBuilder;)Ljava/util/concurrent/CompletableFuture;
intermediary listSuggestions
Lnet/minecraft/class_7733;listSuggestions(Lcom/mojang/brigadier/context/CommandContext;Lcom/mojang/brigadier/suggestion/SuggestionsBuilder;)Ljava/util/concurrent/CompletableFuture;
named listSuggestions
Lnet/minecraft/command/argument/RegistryEntryArgumentType;listSuggestions(Lcom/mojang/brigadier/context/CommandContext;Lcom/mojang/brigadier/suggestion/SuggestionsBuilder;)Ljava/util/concurrent/CompletableFuture;
-
getExamples
- Specified by:
getExamples
in interfacecom.mojang.brigadier.arguments.ArgumentType<T>
-