Class RegistryEntryPredicateArgumentType<T>

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

public class RegistryEntryPredicateArgumentType<T> extends Object implements com.mojang.brigadier.arguments.ArgumentType<RegistryEntryPredicateArgumentType.EntryPredicate<T>>
Mappings:
Namespace Name
official er
intermediary net/minecraft/class_7737
named net/minecraft/command/argument/RegistryEntryPredicateArgumentType
  • Field Details

    • EXAMPLES

      private static final Collection<String> EXAMPLES
      Mappings:
      Namespace Name Mixin selector
      official a Ler;a:Ljava/util/Collection;
      intermediary field_40417 Lnet/minecraft/class_7737;field_40417:Ljava/util/Collection;
      named EXAMPLES Lnet/minecraft/command/argument/RegistryEntryPredicateArgumentType;EXAMPLES:Ljava/util/Collection;
    • NOT_FOUND_EXCEPTION

      private static final com.mojang.brigadier.exceptions.Dynamic2CommandExceptionType NOT_FOUND_EXCEPTION
      Mappings:
      Namespace Name Mixin selector
      official b Ler;b:Lcom/mojang/brigadier/exceptions/Dynamic2CommandExceptionType;
      intermediary field_40418 Lnet/minecraft/class_7737;field_40418:Lcom/mojang/brigadier/exceptions/Dynamic2CommandExceptionType;
      named NOT_FOUND_EXCEPTION Lnet/minecraft/command/argument/RegistryEntryPredicateArgumentType;NOT_FOUND_EXCEPTION:Lcom/mojang/brigadier/exceptions/Dynamic2CommandExceptionType;
    • WRONG_TYPE_EXCEPTION

      private static final com.mojang.brigadier.exceptions.Dynamic3CommandExceptionType WRONG_TYPE_EXCEPTION
      Mappings:
      Namespace Name Mixin selector
      official c Ler;c:Lcom/mojang/brigadier/exceptions/Dynamic3CommandExceptionType;
      intermediary field_40419 Lnet/minecraft/class_7737;field_40419:Lcom/mojang/brigadier/exceptions/Dynamic3CommandExceptionType;
      named WRONG_TYPE_EXCEPTION Lnet/minecraft/command/argument/RegistryEntryPredicateArgumentType;WRONG_TYPE_EXCEPTION:Lcom/mojang/brigadier/exceptions/Dynamic3CommandExceptionType;
    • registryWrapper

      private final RegistryWrapper<T> registryWrapper
      Mappings:
      Namespace Name Mixin selector
      official d Ler;d:Lhg;
      intermediary field_40420 Lnet/minecraft/class_7737;field_40420:Lnet/minecraft/class_7225;
      named registryWrapper Lnet/minecraft/command/argument/RegistryEntryPredicateArgumentType;registryWrapper:Lnet/minecraft/registry/RegistryWrapper;
    • registryRef

      final RegistryKey<? extends Registry<T>> registryRef
      Mappings:
      Namespace Name Mixin selector
      official e Ler;e:Lacp;
      intermediary field_40421 Lnet/minecraft/class_7737;field_40421:Lnet/minecraft/class_5321;
      named registryRef Lnet/minecraft/command/argument/RegistryEntryPredicateArgumentType;registryRef:Lnet/minecraft/registry/RegistryKey;
  • Constructor Details

    • RegistryEntryPredicateArgumentType

      public RegistryEntryPredicateArgumentType(CommandRegistryAccess registryAccess, RegistryKey<? extends Registry<T>> registryRef)
      Mappings:
      Namespace Name Mixin selector
      official <init> Ler;<init>(Ldm;Lacp;)V
      intermediary <init> Lnet/minecraft/class_7737;<init>(Lnet/minecraft/class_7157;Lnet/minecraft/class_5321;)V
      named <init> Lnet/minecraft/command/argument/RegistryEntryPredicateArgumentType;<init>(Lnet/minecraft/command/CommandRegistryAccess;Lnet/minecraft/registry/RegistryKey;)V
  • Method Details

    • registryEntryPredicate

      public static <T> RegistryEntryPredicateArgumentType<T> registryEntryPredicate(CommandRegistryAccess registryRef, RegistryKey<? extends Registry<T>> registryAccess)
      Mappings:
      Namespace Name Mixin selector
      official a Ler;a(Ldm;Lacp;)Ler;
      intermediary method_45637 Lnet/minecraft/class_7737;method_45637(Lnet/minecraft/class_7157;Lnet/minecraft/class_5321;)Lnet/minecraft/class_7737;
      named registryEntryPredicate Lnet/minecraft/command/argument/RegistryEntryPredicateArgumentType;registryEntryPredicate(Lnet/minecraft/command/CommandRegistryAccess;Lnet/minecraft/registry/RegistryKey;)Lnet/minecraft/command/argument/RegistryEntryPredicateArgumentType;
    • getRegistryEntryPredicate

      public static <T> RegistryEntryPredicateArgumentType.EntryPredicate<T> getRegistryEntryPredicate(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 Ler;a(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;Lacp;)Ler$c;
      intermediary method_45636 Lnet/minecraft/class_7737;method_45636(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;Lnet/minecraft/class_5321;)Lnet/minecraft/class_7737$class_7741;
      named getRegistryEntryPredicate Lnet/minecraft/command/argument/RegistryEntryPredicateArgumentType;getRegistryEntryPredicate(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;Lnet/minecraft/registry/RegistryKey;)Lnet/minecraft/command/argument/RegistryEntryPredicateArgumentType$EntryPredicate;
    • parse

      public RegistryEntryPredicateArgumentType.EntryPredicate<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 Ler;a(Lcom/mojang/brigadier/StringReader;)Ler$c;
      intermediary method_45635 Lnet/minecraft/class_7737;method_45635(Lcom/mojang/brigadier/StringReader;)Lnet/minecraft/class_7737$class_7741;
      named parse Lnet/minecraft/command/argument/RegistryEntryPredicateArgumentType;parse(Lcom/mojang/brigadier/StringReader;)Lnet/minecraft/command/argument/RegistryEntryPredicateArgumentType$EntryPredicate;
    • 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 Ler;listSuggestions(Lcom/mojang/brigadier/context/CommandContext;Lcom/mojang/brigadier/suggestion/SuggestionsBuilder;)Ljava/util/concurrent/CompletableFuture;
      intermediary listSuggestions Lnet/minecraft/class_7737;listSuggestions(Lcom/mojang/brigadier/context/CommandContext;Lcom/mojang/brigadier/suggestion/SuggestionsBuilder;)Ljava/util/concurrent/CompletableFuture;
      named listSuggestions Lnet/minecraft/command/argument/RegistryEntryPredicateArgumentType;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>