net.minecraft.commands.arguments

public class ResourceArgument<T>

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

er
net.minecraft.commands.arguments.ResourceArgument
net.minecraft.class_7733
net.minecraft.command.argument.RegistryEntryArgumentType
net.minecraft.src.C_243654_
net.minecraft.commands.arguments.ResourceArgument

Field summary

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

Constructor summary

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

Method summary

Modifier and TypeMethod
public static <T> ResourceArgument<T>
a(dn arg0, ahf<? extends it<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)
m_247102_(C_213173_ p_249973_, C_5264_<? extends C_4705_<T>> p_251405_)
public static <T> Holder$Reference<T>
a(com.mojang.brigadier.context.CommandContext<ds> arg0, String arg1, ahf<it<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)
m_246781_(com.mojang.brigadier.context.CommandContext<C_2969_> p_251788_, String p_251996_, C_5264_<C_4705_<T>> p_250077_)
public static Holder$Reference<Attribute>
a(com.mojang.brigadier.context.CommandContext<ds> 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)
m_245688_(com.mojang.brigadier.context.CommandContext<C_2969_> p_248753_, String p_251157_)
public static Holder$Reference<ConfiguredFeature<?, ?>>
b(com.mojang.brigadier.context.CommandContext<ds> 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)
m_245599_(com.mojang.brigadier.context.CommandContext<C_2969_> p_250819_, String p_252256_)
public static Holder$Reference<Structure>
c(com.mojang.brigadier.context.CommandContext<ds> 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)
m_247467_(com.mojang.brigadier.context.CommandContext<C_2969_> p_250288_, String p_250856_)
public static Holder$Reference<EntityType<?>>
d(com.mojang.brigadier.context.CommandContext<ds> 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)
m_246260_(com.mojang.brigadier.context.CommandContext<C_2969_> p_251258_, String p_252322_)
public static Holder$Reference<EntityType<?>>
e(com.mojang.brigadier.context.CommandContext<ds> 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)
m_247713_(com.mojang.brigadier.context.CommandContext<C_2969_> p_251880_, String p_250243_)
public static Holder$Reference<MobEffect>
f(com.mojang.brigadier.context.CommandContext<ds> 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)
m_247201_(com.mojang.brigadier.context.CommandContext<C_2969_> p_250521_, String p_249927_)
public static Holder$Reference<Enchantment>
g(com.mojang.brigadier.context.CommandContext<ds> 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)
m_245369_(com.mojang.brigadier.context.CommandContext<C_2969_> p_248656_, String p_248713_)
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)
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)
listSuggestions(com.mojang.brigadier.context.CommandContext<S> p_251197_, com.mojang.brigadier.suggestion.SuggestionsBuilder arg1)
public Collection<String>
getExamples()
getExamples()
getExamples()