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 fw
  • 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 Lfw;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 Lfw;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 Lfw;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 Lfw;d:Ljo;
    • 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 Lfw;e:Lakq;
  • 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> Lfw;<init>(Lep;Lakq;)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 Lfw;a(Lep;Lakq;)Lfw;
    • 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 Lfw;a(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;Lakq;)Lfw$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 Lfw;a(Lcom/mojang/brigadier/StringReader;)Lfw$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 Lfw;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>