net.minecraft.command.argument

public class RegistryEntryReferenceArgumentType<T>

implements com.mojang.brigadier.arguments.ArgumentType<RegistryEntry$Reference<T>>

net.minecraft.commands.arguments.ResourceArgument
net.minecraft.class_7733
net.minecraft.command.argument.RegistryEntryReferenceArgumentType

Field summary

Modifier and TypeField
private static final Collection<String>
EXAMPLES
field_40403
EXAMPLES
private static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType
ERROR_NOT_SUMMONABLE_ENTITY
field_40404
NOT_SUMMONABLE_EXCEPTION
public static final com.mojang.brigadier.exceptions.Dynamic2CommandExceptionType
ERROR_UNKNOWN_RESOURCE
field_40401
NOT_FOUND_EXCEPTION
public static final com.mojang.brigadier.exceptions.Dynamic3CommandExceptionType
ERROR_INVALID_RESOURCE_TYPE
field_40402
INVALID_TYPE_EXCEPTION
private final RegistryKey<? extends Registry<T>>
registryKey
field_40405
registryRef
private final RegistryWrapper<T>
registryLookup
field_40406
registryWrapper

Constructor summary

ModifierConstructor
public (CommandRegistryAccess registryAccess, RegistryKey<? extends Registry<T>> registryRef)

Method summary

Modifier and TypeMethod
public static <T> RegistryEntryReferenceArgumentType<T>
resource(CommandBuildContext context, ResourceKey<? extends Registry<T>> key)
method_45603(class_7157 arg0, class_5321<? extends class_2378<T>> arg1)
registryEntry(CommandRegistryAccess registryAccess, RegistryKey<? extends Registry<T>> registryRef)
public static <T> RegistryEntry$Reference<T>
getResource(com.mojang.brigadier.context.CommandContext<CommandSourceStack> context, String name, ResourceKey<Registry<T>> registryKey)
method_45602(com.mojang.brigadier.context.CommandContext<class_2168> arg0, String arg1, class_5321<class_2378<T>> arg2)
getRegistryEntry(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String name, RegistryKey<Registry<T>> registryRef)
public static RegistryEntry$Reference<EntityAttribute>
getAttribute(com.mojang.brigadier.context.CommandContext<CommandSourceStack> context, String name)
method_45601(com.mojang.brigadier.context.CommandContext<class_2168> arg0, String arg1)
getEntityAttribute(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String name)
public static RegistryEntry$Reference<ConfiguredFeature<?, ?>>
getConfiguredFeature(com.mojang.brigadier.context.CommandContext<CommandSourceStack> context, String name)
method_45607(com.mojang.brigadier.context.CommandContext<class_2168> arg0, String arg1)
getConfiguredFeature(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String name)
public static RegistryEntry$Reference<Structure>
getStructure(com.mojang.brigadier.context.CommandContext<CommandSourceStack> context, String name)
method_45608(com.mojang.brigadier.context.CommandContext<class_2168> arg0, String arg1)
getStructure(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String name)
public static RegistryEntry$Reference<EntityType<?>>
getEntityType(com.mojang.brigadier.context.CommandContext<CommandSourceStack> context, String name)
method_45609(com.mojang.brigadier.context.CommandContext<class_2168> arg0, String arg1)
getEntityType(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String name)
public static RegistryEntry$Reference<EntityType<?>>
getSummonableEntityType(com.mojang.brigadier.context.CommandContext<CommandSourceStack> context, String name)
method_45610(com.mojang.brigadier.context.CommandContext<class_2168> arg0, String arg1)
getSummonableEntityType(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String name)
public static RegistryEntry$Reference<StatusEffect>
getMobEffect(com.mojang.brigadier.context.CommandContext<CommandSourceStack> context, String name)
method_45611(com.mojang.brigadier.context.CommandContext<class_2168> arg0, String arg1)
getStatusEffect(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String name)
public static RegistryEntry$Reference<Enchantment>
getEnchantment(com.mojang.brigadier.context.CommandContext<CommandSourceStack> context, String name)
method_45612(com.mojang.brigadier.context.CommandContext<class_2168> arg0, String arg1)
getEnchantment(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String name)
public RegistryEntry$Reference<T>
parse(com.mojang.brigadier.StringReader reader)
method_45600(com.mojang.brigadier.StringReader arg0)
parse(com.mojang.brigadier.StringReader arg0)
public <S> CompletableFuture<com.mojang.brigadier.suggestion.Suggestions>
listSuggestions(com.mojang.brigadier.context.CommandContext<S> context, com.mojang.brigadier.suggestion.SuggestionsBuilder builder)
listSuggestions(com.mojang.brigadier.context.CommandContext<S> arg0, com.mojang.brigadier.suggestion.SuggestionsBuilder arg1)
listSuggestions(com.mojang.brigadier.context.CommandContext<S> context, com.mojang.brigadier.suggestion.SuggestionsBuilder builder)
public Collection<String>
getExamples()
public Object
parse(com.mojang.brigadier.StringReader reader)
parse(com.mojang.brigadier.StringReader arg0)
parse(com.mojang.brigadier.StringReader reader)
private com.mojang.brigadier.exceptions.CommandSyntaxException
lambda$parse$3(com.mojang.brigadier.StringReader arg0, Identifier arg1)
method_45599(com.mojang.brigadier.StringReader arg0, class_2960 arg1)
method_45599(com.mojang.brigadier.StringReader arg0, Identifier arg1)
private static com.mojang.brigadier.Message
lambda$static$2(Object arg0, Object arg1, Object arg2)
method_45606(Object arg0, Object arg1, Object arg2)
method_45606(Object element, Object type, Object expectedType)
private static com.mojang.brigadier.Message
lambda$static$1(Object arg0, Object arg1)
method_45605(Object arg0, Object arg1)
method_45605(Object element, Object type)
private static com.mojang.brigadier.Message
lambda$static$0(Object arg0)
method_45604(Object arg0)
method_45604(Object id)