Class RegistryEntryReferenceArgumentType<T>

java.lang.Object
net.minecraft.command.argument.RegistryEntryReferenceArgumentType<T>
All Implemented Interfaces:
com.mojang.brigadier.arguments.ArgumentType<RegistryEntry.Reference<T>>

public class RegistryEntryReferenceArgumentType<T> extends Object implements com.mojang.brigadier.arguments.ArgumentType<RegistryEntry.Reference<T>>
Mappings:
Namespace Name
named net/minecraft/command/argument/RegistryEntryReferenceArgumentType
intermediary net/minecraft/class_7733
official fv
  • Field Details

    • EXAMPLES

      private static final Collection<String> EXAMPLES
      Mappings:
      Namespace Name Mixin selector
      named EXAMPLES Lnet/minecraft/command/argument/RegistryEntryReferenceArgumentType;EXAMPLES:Ljava/util/Collection;
      intermediary field_40403 Lnet/minecraft/class_7733;field_40403:Ljava/util/Collection;
      official c Lfv;c:Ljava/util/Collection;
    • NOT_SUMMONABLE_EXCEPTION

      private static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType NOT_SUMMONABLE_EXCEPTION
      Mappings:
      Namespace Name Mixin selector
      named NOT_SUMMONABLE_EXCEPTION Lnet/minecraft/command/argument/RegistryEntryReferenceArgumentType;NOT_SUMMONABLE_EXCEPTION:Lcom/mojang/brigadier/exceptions/DynamicCommandExceptionType;
      intermediary field_40404 Lnet/minecraft/class_7733;field_40404:Lcom/mojang/brigadier/exceptions/DynamicCommandExceptionType;
      official d Lfv;d:Lcom/mojang/brigadier/exceptions/DynamicCommandExceptionType;
    • NOT_FOUND_EXCEPTION

      public static final com.mojang.brigadier.exceptions.Dynamic2CommandExceptionType NOT_FOUND_EXCEPTION
      Mappings:
      Namespace Name Mixin selector
      named NOT_FOUND_EXCEPTION Lnet/minecraft/command/argument/RegistryEntryReferenceArgumentType;NOT_FOUND_EXCEPTION:Lcom/mojang/brigadier/exceptions/Dynamic2CommandExceptionType;
      intermediary field_40401 Lnet/minecraft/class_7733;field_40401:Lcom/mojang/brigadier/exceptions/Dynamic2CommandExceptionType;
      official a Lfv;a:Lcom/mojang/brigadier/exceptions/Dynamic2CommandExceptionType;
    • INVALID_TYPE_EXCEPTION

      public static final com.mojang.brigadier.exceptions.Dynamic3CommandExceptionType INVALID_TYPE_EXCEPTION
      Mappings:
      Namespace Name Mixin selector
      named INVALID_TYPE_EXCEPTION Lnet/minecraft/command/argument/RegistryEntryReferenceArgumentType;INVALID_TYPE_EXCEPTION:Lcom/mojang/brigadier/exceptions/Dynamic3CommandExceptionType;
      intermediary field_40402 Lnet/minecraft/class_7733;field_40402:Lcom/mojang/brigadier/exceptions/Dynamic3CommandExceptionType;
      official b Lfv;b:Lcom/mojang/brigadier/exceptions/Dynamic3CommandExceptionType;
    • registryRef

      final RegistryKey<? extends Registry<T>> registryRef
      Mappings:
      Namespace Name Mixin selector
      named registryRef Lnet/minecraft/command/argument/RegistryEntryReferenceArgumentType;registryRef:Lnet/minecraft/registry/RegistryKey;
      intermediary field_40405 Lnet/minecraft/class_7733;field_40405:Lnet/minecraft/class_5321;
      official e Lfv;e:Laly;
    • registryWrapper

      private final RegistryWrapper<T> registryWrapper
      Mappings:
      Namespace Name Mixin selector
      named registryWrapper Lnet/minecraft/command/argument/RegistryEntryReferenceArgumentType;registryWrapper:Lnet/minecraft/registry/RegistryWrapper;
      intermediary field_40406 Lnet/minecraft/class_7733;field_40406:Lnet/minecraft/class_7225;
      official f Lfv;f:Ljs;
  • Constructor Details

    • RegistryEntryReferenceArgumentType

      public RegistryEntryReferenceArgumentType(CommandRegistryAccess registryAccess, RegistryKey<? extends Registry<T>> registryRef)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/command/argument/RegistryEntryReferenceArgumentType;<init>(Lnet/minecraft/command/CommandRegistryAccess;Lnet/minecraft/registry/RegistryKey;)V
      intermediary <init> Lnet/minecraft/class_7733;<init>(Lnet/minecraft/class_7157;Lnet/minecraft/class_5321;)V
      official <init> Lfv;<init>(Les;Laly;)V
  • Method Details

    • registryEntry

      public static <T> RegistryEntryReferenceArgumentType<T> registryEntry(CommandRegistryAccess registryAccess, RegistryKey<? extends Registry<T>> registryRef)
      Mappings:
      Namespace Name Mixin selector
      named registryEntry Lnet/minecraft/command/argument/RegistryEntryReferenceArgumentType;registryEntry(Lnet/minecraft/command/CommandRegistryAccess;Lnet/minecraft/registry/RegistryKey;)Lnet/minecraft/command/argument/RegistryEntryReferenceArgumentType;
      intermediary method_45603 Lnet/minecraft/class_7733;method_45603(Lnet/minecraft/class_7157;Lnet/minecraft/class_5321;)Lnet/minecraft/class_7733;
      official a Lfv;a(Les;Laly;)Lfv;
    • 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
      named getRegistryEntry Lnet/minecraft/command/argument/RegistryEntryReferenceArgumentType;getRegistryEntry(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;Lnet/minecraft/registry/RegistryKey;)Lnet/minecraft/registry/entry/RegistryEntry$Reference;
      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;
      official a Lfv;a(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;Laly;)Ljq$c;
    • 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
      named getEntityAttribute Lnet/minecraft/command/argument/RegistryEntryReferenceArgumentType;getEntityAttribute(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)Lnet/minecraft/registry/entry/RegistryEntry$Reference;
      intermediary method_45601 Lnet/minecraft/class_7733;method_45601(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)Lnet/minecraft/class_6880$class_6883;
      official a Lfv;a(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)Ljq$c;
    • 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
      named getConfiguredFeature Lnet/minecraft/command/argument/RegistryEntryReferenceArgumentType;getConfiguredFeature(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)Lnet/minecraft/registry/entry/RegistryEntry$Reference;
      intermediary method_45607 Lnet/minecraft/class_7733;method_45607(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)Lnet/minecraft/class_6880$class_6883;
      official b Lfv;b(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)Ljq$c;
    • 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
      named getStructure Lnet/minecraft/command/argument/RegistryEntryReferenceArgumentType;getStructure(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)Lnet/minecraft/registry/entry/RegistryEntry$Reference;
      intermediary method_45608 Lnet/minecraft/class_7733;method_45608(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)Lnet/minecraft/class_6880$class_6883;
      official c Lfv;c(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)Ljq$c;
    • 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
      named getEntityType Lnet/minecraft/command/argument/RegistryEntryReferenceArgumentType;getEntityType(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)Lnet/minecraft/registry/entry/RegistryEntry$Reference;
      intermediary method_45609 Lnet/minecraft/class_7733;method_45609(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)Lnet/minecraft/class_6880$class_6883;
      official d Lfv;d(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)Ljq$c;
    • 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
      named getSummonableEntityType Lnet/minecraft/command/argument/RegistryEntryReferenceArgumentType;getSummonableEntityType(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)Lnet/minecraft/registry/entry/RegistryEntry$Reference;
      intermediary method_45610 Lnet/minecraft/class_7733;method_45610(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)Lnet/minecraft/class_6880$class_6883;
      official e Lfv;e(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)Ljq$c;
    • 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
      named getStatusEffect Lnet/minecraft/command/argument/RegistryEntryReferenceArgumentType;getStatusEffect(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)Lnet/minecraft/registry/entry/RegistryEntry$Reference;
      intermediary method_45611 Lnet/minecraft/class_7733;method_45611(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)Lnet/minecraft/class_6880$class_6883;
      official f Lfv;f(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)Ljq$c;
    • 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
      named getEnchantment Lnet/minecraft/command/argument/RegistryEntryReferenceArgumentType;getEnchantment(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)Lnet/minecraft/registry/entry/RegistryEntry$Reference;
      intermediary method_45612 Lnet/minecraft/class_7733;method_45612(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)Lnet/minecraft/class_6880$class_6883;
      official g Lfv;g(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)Ljq$c;
    • parse

      public RegistryEntry.Reference<T> parse(com.mojang.brigadier.StringReader stringReader) throws com.mojang.brigadier.exceptions.CommandSyntaxException
      Specified by:
      parse in interface com.mojang.brigadier.arguments.ArgumentType<T>
      Throws:
      com.mojang.brigadier.exceptions.CommandSyntaxException
      Mappings:
      Namespace Name Mixin selector
      named parse Lnet/minecraft/command/argument/RegistryEntryReferenceArgumentType;parse(Lcom/mojang/brigadier/StringReader;)Lnet/minecraft/registry/entry/RegistryEntry$Reference;
      intermediary method_45600 Lnet/minecraft/class_7733;method_45600(Lcom/mojang/brigadier/StringReader;)Lnet/minecraft/class_6880$class_6883;
      official a Lfv;a(Lcom/mojang/brigadier/StringReader;)Ljq$c;
    • 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 interface com.mojang.brigadier.arguments.ArgumentType<T>
      Mappings:
      Namespace Name Mixin selector
      named listSuggestions Lnet/minecraft/command/argument/RegistryEntryReferenceArgumentType;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;
      official listSuggestions Lfv;listSuggestions(Lcom/mojang/brigadier/context/CommandContext;Lcom/mojang/brigadier/suggestion/SuggestionsBuilder;)Ljava/util/concurrent/CompletableFuture;
    • getExamples

      public Collection<String> getExamples()
      Specified by:
      getExamples in interface com.mojang.brigadier.arguments.ArgumentType<T>