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 en
intermediary net/minecraft/class_7733
named net/minecraft/command/argument/RegistryEntryArgumentType
  • Field Details

    • EXAMPLES

      private static final Collection<String> EXAMPLES
      Mappings:
      Namespace Name Mixin selector
      official c Len;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 Len;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 Len;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 Len;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

      final RegistryKey<? extends Registry<T>> registryRef
      Mappings:
      Namespace Name Mixin selector
      official e Len;e:Ladc;
      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

      private final RegistryWrapper<T> registryWrapper
      Mappings:
      Namespace Name Mixin selector
      official f Len;f:Lhf;
      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> Len;<init>(Ldl;Ladc;)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 Len;a(Ldl;Ladc;)Len;
      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 Len;a(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;Ladc;)Lhd$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 Len;a(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)Lhd$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 Len;b(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)Lhd$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 Len;c(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)Lhd$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 Len;d(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)Lhd$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 Len;e(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)Lhd$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 Len;f(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)Lhd$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 Len;g(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)Lhd$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 interface com.mojang.brigadier.arguments.ArgumentType<T>
      Throws:
      com.mojang.brigadier.exceptions.CommandSyntaxException
      Mappings:
      Namespace Name Mixin selector
      official a Len;a(Lcom/mojang/brigadier/StringReader;)Lhd$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 interface com.mojang.brigadier.arguments.ArgumentType<T>
      Mappings:
      Namespace Name Mixin selector
      official listSuggestions Len;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

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