Class RegistryPredicateArgumentType<T>

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

public class RegistryPredicateArgumentType<T> extends Object implements com.mojang.brigadier.arguments.ArgumentType<RegistryPredicateArgumentType.RegistryPredicate<T>>
Mappings:
Namespace Name
named net/minecraft/command/argument/RegistryPredicateArgumentType
intermediary net/minecraft/class_7066
official ga
  • Field Details

    • EXAMPLES

      private static final Collection<String> EXAMPLES
      Mappings:
      Namespace Name Mixin selector
      named EXAMPLES Lnet/minecraft/command/argument/RegistryPredicateArgumentType;EXAMPLES:Ljava/util/Collection;
      intermediary field_37223 Lnet/minecraft/class_7066;field_37223:Ljava/util/Collection;
      official a Lga;a:Ljava/util/Collection;
    • registryRef

      final RegistryKey<? extends Registry<T>> registryRef
      Mappings:
      Namespace Name Mixin selector
      named registryRef Lnet/minecraft/command/argument/RegistryPredicateArgumentType;registryRef:Lnet/minecraft/registry/RegistryKey;
      intermediary field_37226 Lnet/minecraft/class_7066;field_37226:Lnet/minecraft/class_5321;
      official b Lga;b:Laly;
  • Constructor Details

    • RegistryPredicateArgumentType

      public RegistryPredicateArgumentType(RegistryKey<? extends Registry<T>> registryRef)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/command/argument/RegistryPredicateArgumentType;<init>(Lnet/minecraft/registry/RegistryKey;)V
      intermediary <init> Lnet/minecraft/class_7066;<init>(Lnet/minecraft/class_5321;)V
      official <init> Lga;<init>(Laly;)V
  • Method Details

    • registryPredicate

      public static <T> RegistryPredicateArgumentType<T> registryPredicate(RegistryKey<? extends Registry<T>> registryRef)
      Mappings:
      Namespace Name Mixin selector
      named registryPredicate Lnet/minecraft/command/argument/RegistryPredicateArgumentType;registryPredicate(Lnet/minecraft/registry/RegistryKey;)Lnet/minecraft/command/argument/RegistryPredicateArgumentType;
      intermediary method_41170 Lnet/minecraft/class_7066;method_41170(Lnet/minecraft/class_5321;)Lnet/minecraft/class_7066;
      official a Lga;a(Laly;)Lga;
    • getPredicate

      public static <T> RegistryPredicateArgumentType.RegistryPredicate<T> getPredicate(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String name, RegistryKey<Registry<T>> registryRef, com.mojang.brigadier.exceptions.DynamicCommandExceptionType invalidException) throws com.mojang.brigadier.exceptions.CommandSyntaxException
      Throws:
      com.mojang.brigadier.exceptions.CommandSyntaxException
      Mappings:
      Namespace Name Mixin selector
      named getPredicate Lnet/minecraft/command/argument/RegistryPredicateArgumentType;getPredicate(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;Lnet/minecraft/registry/RegistryKey;Lcom/mojang/brigadier/exceptions/DynamicCommandExceptionType;)Lnet/minecraft/command/argument/RegistryPredicateArgumentType$RegistryPredicate;
      intermediary method_41166 Lnet/minecraft/class_7066;method_41166(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;Lnet/minecraft/class_5321;Lcom/mojang/brigadier/exceptions/DynamicCommandExceptionType;)Lnet/minecraft/class_7066$class_7068;
      official a Lga;a(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;Laly;Lcom/mojang/brigadier/exceptions/DynamicCommandExceptionType;)Lga$c;
    • parse

      public RegistryPredicateArgumentType.RegistryPredicate<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/RegistryPredicateArgumentType;parse(Lcom/mojang/brigadier/StringReader;)Lnet/minecraft/command/argument/RegistryPredicateArgumentType$RegistryPredicate;
      intermediary method_41164 Lnet/minecraft/class_7066;method_41164(Lcom/mojang/brigadier/StringReader;)Lnet/minecraft/class_7066$class_7068;
      official a Lga;a(Lcom/mojang/brigadier/StringReader;)Lga$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/RegistryPredicateArgumentType;listSuggestions(Lcom/mojang/brigadier/context/CommandContext;Lcom/mojang/brigadier/suggestion/SuggestionsBuilder;)Ljava/util/concurrent/CompletableFuture;
      intermediary listSuggestions Lnet/minecraft/class_7066;listSuggestions(Lcom/mojang/brigadier/context/CommandContext;Lcom/mojang/brigadier/suggestion/SuggestionsBuilder;)Ljava/util/concurrent/CompletableFuture;
      official listSuggestions Lga;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>