net.minecraft.commands.arguments

public class ResourceArgument<T>

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

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

Field summary

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

Constructor summary

ModifierConstructor
public (CommandBuildContext registryAccess, ResourceKey<? extends Registry<T>> registryRef)

Method summary

Modifier and TypeMethod
public static <T> ResourceArgument<T>
a(es arg0, aly<? extends kd<T>> arg1)
resource(CommandBuildContext arg0, ResourceKey<? extends Registry<T>> arg1)
method_45603(class_7157 arg0, class_5321<? extends class_2378<T>> arg1)
registryEntry(CommandRegistryAccess registryAccess, RegistryKey<? extends Registry<T>> registryRef)
public static <T> Holder$Reference<T>
a(com.mojang.brigadier.context.CommandContext<ew> arg0, String arg1, aly<kd<T>> arg2)
getResource(com.mojang.brigadier.context.CommandContext<CommandSourceStack> arg0, String arg1, ResourceKey<Registry<T>> arg2)
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 Holder$Reference<Attribute>
a(com.mojang.brigadier.context.CommandContext<ew> arg0, String arg1)
getAttribute(com.mojang.brigadier.context.CommandContext<CommandSourceStack> arg0, String arg1)
method_45601(com.mojang.brigadier.context.CommandContext<class_2168> arg0, String arg1)
getEntityAttribute(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String name)
public static Holder$Reference<ConfiguredFeature<?, ?>>
b(com.mojang.brigadier.context.CommandContext<ew> arg0, String arg1)
getConfiguredFeature(com.mojang.brigadier.context.CommandContext<CommandSourceStack> arg0, String arg1)
method_45607(com.mojang.brigadier.context.CommandContext<class_2168> arg0, String arg1)
getConfiguredFeature(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String name)
public static Holder$Reference<Structure>
c(com.mojang.brigadier.context.CommandContext<ew> arg0, String arg1)
getStructure(com.mojang.brigadier.context.CommandContext<CommandSourceStack> arg0, String arg1)
method_45608(com.mojang.brigadier.context.CommandContext<class_2168> arg0, String arg1)
getStructure(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String name)
public static Holder$Reference<EntityType<?>>
d(com.mojang.brigadier.context.CommandContext<ew> arg0, String arg1)
getEntityType(com.mojang.brigadier.context.CommandContext<CommandSourceStack> arg0, String arg1)
method_45609(com.mojang.brigadier.context.CommandContext<class_2168> arg0, String arg1)
getEntityType(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String name)
public static Holder$Reference<EntityType<?>>
e(com.mojang.brigadier.context.CommandContext<ew> arg0, String arg1)
getSummonableEntityType(com.mojang.brigadier.context.CommandContext<CommandSourceStack> arg0, String arg1)
method_45610(com.mojang.brigadier.context.CommandContext<class_2168> arg0, String arg1)
getSummonableEntityType(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String name)
public static Holder$Reference<MobEffect>
f(com.mojang.brigadier.context.CommandContext<ew> arg0, String arg1)
getMobEffect(com.mojang.brigadier.context.CommandContext<CommandSourceStack> arg0, String arg1)
method_45611(com.mojang.brigadier.context.CommandContext<class_2168> arg0, String arg1)
getStatusEffect(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String name)
public static Holder$Reference<Enchantment>
g(com.mojang.brigadier.context.CommandContext<ew> arg0, String arg1)
getEnchantment(com.mojang.brigadier.context.CommandContext<CommandSourceStack> arg0, String arg1)
method_45612(com.mojang.brigadier.context.CommandContext<class_2168> arg0, String arg1)
getEnchantment(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String name)
public Holder$Reference<T>
a(com.mojang.brigadier.StringReader arg0)
parse(com.mojang.brigadier.StringReader arg0)
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> arg0, com.mojang.brigadier.suggestion.SuggestionsBuilder arg1)
listSuggestions(com.mojang.brigadier.context.CommandContext<S> arg0, com.mojang.brigadier.suggestion.SuggestionsBuilder arg1)
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()
getExamples()