Package net.minecraft.command.argument
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 official el
intermediary net/minecraft/class_7066
named net/minecraft/command/argument/RegistryPredicateArgumentType
-
Nested Class Summary
Modifier and TypeClassDescriptionprivate static final record
static interface
static class
private static final record
-
Field Summary
Modifier and TypeFieldDescriptionprivate static final Collection<String>
private static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType
private static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType
(package private) final RegistryKey<? extends Registry<T>>
-
Constructor Summary
ConstructorDescriptionRegistryPredicateArgumentType
(RegistryKey<? extends Registry<T>> registryRef) -
Method Summary
Modifier and TypeMethodDescriptiongetBiomePredicate
(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String name) getConfiguredStructureFeaturePredicate
(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String name) private 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) <S> CompletableFuture<com.mojang.brigadier.suggestion.Suggestions>
listSuggestions
(com.mojang.brigadier.context.CommandContext<S> context, com.mojang.brigadier.suggestion.SuggestionsBuilder builder) parse
(com.mojang.brigadier.StringReader stringReader) static <T> RegistryPredicateArgumentType<T>
registryPredicate
(RegistryKey<? extends Registry<T>> registryRef)
-
Field Details
-
EXAMPLES
- Mappings:
Namespace Name Mixin selector official a
Lel;a:Ljava/util/Collection;
intermediary field_37223
Lnet/minecraft/class_7066;field_37223:Ljava/util/Collection;
named EXAMPLES
Lnet/minecraft/command/argument/RegistryPredicateArgumentType;EXAMPLES:Ljava/util/Collection;
-
INVALID_BIOME_EXCEPTION
private static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType INVALID_BIOME_EXCEPTION- Mappings:
Namespace Name Mixin selector official b
Lel;b:Lcom/mojang/brigadier/exceptions/DynamicCommandExceptionType;
intermediary field_37224
Lnet/minecraft/class_7066;field_37224:Lcom/mojang/brigadier/exceptions/DynamicCommandExceptionType;
named INVALID_BIOME_EXCEPTION
Lnet/minecraft/command/argument/RegistryPredicateArgumentType;INVALID_BIOME_EXCEPTION:Lcom/mojang/brigadier/exceptions/DynamicCommandExceptionType;
-
INVALID_CONFIGURED_STRUCTURE_FEATURE_EXCEPTION
private static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType INVALID_CONFIGURED_STRUCTURE_FEATURE_EXCEPTION- Mappings:
Namespace Name Mixin selector official c
Lel;c:Lcom/mojang/brigadier/exceptions/DynamicCommandExceptionType;
intermediary field_37225
Lnet/minecraft/class_7066;field_37225:Lcom/mojang/brigadier/exceptions/DynamicCommandExceptionType;
named INVALID_CONFIGURED_STRUCTURE_FEATURE_EXCEPTION
Lnet/minecraft/command/argument/RegistryPredicateArgumentType;INVALID_CONFIGURED_STRUCTURE_FEATURE_EXCEPTION:Lcom/mojang/brigadier/exceptions/DynamicCommandExceptionType;
-
registryRef
- Mappings:
Namespace Name Mixin selector official d
Lel;d:Lys;
intermediary field_37226
Lnet/minecraft/class_7066;field_37226:Lnet/minecraft/class_5321;
named registryRef
Lnet/minecraft/command/argument/RegistryPredicateArgumentType;registryRef:Lnet/minecraft/util/registry/RegistryKey;
-
-
Constructor Details
-
RegistryPredicateArgumentType
- Mappings:
Namespace Name Mixin selector official <init>
Lel;<init>(Lys;)V
intermediary <init>
Lnet/minecraft/class_7066;<init>(Lnet/minecraft/class_5321;)V
named <init>
Lnet/minecraft/command/argument/RegistryPredicateArgumentType;<init>(Lnet/minecraft/util/registry/RegistryKey;)V
-
-
Method Details
-
registryPredicate
public static <T> RegistryPredicateArgumentType<T> registryPredicate(RegistryKey<? extends Registry<T>> registryRef) - Mappings:
Namespace Name Mixin selector official a
Lel;a(Lys;)Lel;
intermediary method_41170
Lnet/minecraft/class_7066;method_41170(Lnet/minecraft/class_5321;)Lnet/minecraft/class_7066;
named registryPredicate
Lnet/minecraft/command/argument/RegistryPredicateArgumentType;registryPredicate(Lnet/minecraft/util/registry/RegistryKey;)Lnet/minecraft/command/argument/RegistryPredicateArgumentType;
-
getPredicate
private 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 official a
Lel;a(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;Lys;Lcom/mojang/brigadier/exceptions/DynamicCommandExceptionType;)Lel$b;
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;
named getPredicate
Lnet/minecraft/command/argument/RegistryPredicateArgumentType;getPredicate(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;Lnet/minecraft/util/registry/RegistryKey;Lcom/mojang/brigadier/exceptions/DynamicCommandExceptionType;)Lnet/minecraft/command/argument/RegistryPredicateArgumentType$RegistryPredicate;
-
getBiomePredicate
public static RegistryPredicateArgumentType.RegistryPredicate<Biome> getBiomePredicate(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
Lel;a(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)Lel$b;
intermediary method_41165
Lnet/minecraft/class_7066;method_41165(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)Lnet/minecraft/class_7066$class_7068;
named getBiomePredicate
Lnet/minecraft/command/argument/RegistryPredicateArgumentType;getBiomePredicate(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)Lnet/minecraft/command/argument/RegistryPredicateArgumentType$RegistryPredicate;
-
getConfiguredStructureFeaturePredicate
public static RegistryPredicateArgumentType.RegistryPredicate<ConfiguredStructureFeature<?,?>> getConfiguredStructureFeaturePredicate(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
Lel;b(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)Lel$b;
intermediary method_41171
Lnet/minecraft/class_7066;method_41171(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)Lnet/minecraft/class_7066$class_7068;
named getConfiguredStructureFeaturePredicate
Lnet/minecraft/command/argument/RegistryPredicateArgumentType;getConfiguredStructureFeaturePredicate(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)Lnet/minecraft/command/argument/RegistryPredicateArgumentType$RegistryPredicate;
-
parse
public RegistryPredicateArgumentType.RegistryPredicate<T> parse(com.mojang.brigadier.StringReader stringReader) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Specified by:
parse
in interfacecom.mojang.brigadier.arguments.ArgumentType<T>
- Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
- Mappings:
Namespace Name Mixin selector official a
Lel;a(Lcom/mojang/brigadier/StringReader;)Lel$b;
intermediary method_41164
Lnet/minecraft/class_7066;method_41164(Lcom/mojang/brigadier/StringReader;)Lnet/minecraft/class_7066$class_7068;
named parse
Lnet/minecraft/command/argument/RegistryPredicateArgumentType;parse(Lcom/mojang/brigadier/StringReader;)Lnet/minecraft/command/argument/RegistryPredicateArgumentType$RegistryPredicate;
-
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 interfacecom.mojang.brigadier.arguments.ArgumentType<T>
- Mappings:
Namespace Name Mixin selector official listSuggestions
Lel;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;
named listSuggestions
Lnet/minecraft/command/argument/RegistryPredicateArgumentType;listSuggestions(Lcom/mojang/brigadier/context/CommandContext;Lcom/mojang/brigadier/suggestion/SuggestionsBuilder;)Ljava/util/concurrent/CompletableFuture;
-
getExamples
- Specified by:
getExamples
in interfacecom.mojang.brigadier.arguments.ArgumentType<T>
-