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
named net/minecraft/command/argument/RegistryEntryPredicateArgumentType
intermediary net/minecraft/class_7737
official fz
  • Field Details

    • EXAMPLES

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

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

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

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

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

    • RegistryEntryPredicateArgumentType

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

    • registryEntryPredicate

      public static <T> RegistryEntryPredicateArgumentType<T> registryEntryPredicate(CommandRegistryAccess registryRef, RegistryKey<? extends Registry<T>> registryAccess)
      Mappings:
      Namespace Name Mixin selector
      named registryEntryPredicate Lnet/minecraft/command/argument/RegistryEntryPredicateArgumentType;registryEntryPredicate(Lnet/minecraft/command/CommandRegistryAccess;Lnet/minecraft/registry/RegistryKey;)Lnet/minecraft/command/argument/RegistryEntryPredicateArgumentType;
      intermediary method_45637 Lnet/minecraft/class_7737;method_45637(Lnet/minecraft/class_7157;Lnet/minecraft/class_5321;)Lnet/minecraft/class_7737;
      official a Lfz;a(Les;Laly;)Lfz;
    • 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
      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;
      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;
      official a Lfz;a(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;Laly;)Lfz$c;
    • 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
      named parse Lnet/minecraft/command/argument/RegistryEntryPredicateArgumentType;parse(Lcom/mojang/brigadier/StringReader;)Lnet/minecraft/command/argument/RegistryEntryPredicateArgumentType$EntryPredicate;
      intermediary method_45635 Lnet/minecraft/class_7737;method_45635(Lcom/mojang/brigadier/StringReader;)Lnet/minecraft/class_7737$class_7741;
      official a Lfz;a(Lcom/mojang/brigadier/StringReader;)Lfz$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/RegistryEntryPredicateArgumentType;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;
      official listSuggestions Lfz;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>