net.minecraft.commands.arguments

public class ResourceArgument<T>

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

fw
net.minecraft.commands.arguments.ResourceArgument
net.minecraft.class_7733
net.minecraft.unmapped.C_mymnmzsx
net.minecraft.command.argument.RegistryEntryReferenceArgumentType
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
f_fkeeakna
EXAMPLES
EXAMPLES
f_244573_
private static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType
d
ERROR_NOT_SUMMONABLE_ENTITY
field_40404
f_nhwrxdmt
NOT_SUMMONABLE_EXCEPTION
ENTITY_NOT_SUMMONABLE_EXCEPTION
f_244234_
public static final com.mojang.brigadier.exceptions.Dynamic2CommandExceptionType
a
ERROR_UNKNOWN_RESOURCE
field_40401
f_mjmvcceu
NOT_FOUND_EXCEPTION
REGISTRY_ENTRY_NOT_FOUND_EXCEPTION
f_244450_
public static final com.mojang.brigadier.exceptions.Dynamic3CommandExceptionType
b
ERROR_INVALID_RESOURCE_TYPE
field_40402
f_qycsdcbt
INVALID_TYPE_EXCEPTION
INVALID_REGISTRY_ENTRY_TYPE_EXCEPTION
f_243885_
final ResourceKey<? extends Registry<T>>
e
registryKey
field_40405
f_acmnckrg
registryRef
registryKey
f_244609_
private final HolderLookup<T>
f
registryLookup
field_40406
f_xtnuvvky
registryWrapper
holderLookup
f_243861_

Constructor summary

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

Method summary

Modifier and TypeMethod
public static <T> ResourceArgument<T>
a(et arg0, aku<? extends ke<T>> arg1)
resource(CommandBuildContext arg0, ResourceKey<? extends Registry<T>> arg1)
method_45603(class_7157 arg0, class_5321<? extends class_2378<T>> arg1)
m_jtygmkqu(C_bprdujxm arg0, C_xhhleach<? extends C_tqxyjqsk<T>> arg1)
registryEntry(CommandRegistryAccess registryAccess, RegistryKey<? extends Registry<T>> registryRef)
registryEntry(CommandBuildContext buildContext, RegistryKey<? extends Registry<T>> registryKey)
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<ex> arg0, String arg1, aku<ke<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)
m_mvzlmalk(com.mojang.brigadier.context.CommandContext<C_pennblrk> arg0, String arg1, C_xhhleach<C_tqxyjqsk<T>> arg2)
getRegistryEntry(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String name, RegistryKey<Registry<T>> registryRef)
getRegistryEntry(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String name, RegistryKey<Registry<T>> registryKey)
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<ex> 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)
m_mlvqftoi(com.mojang.brigadier.context.CommandContext<C_pennblrk> arg0, String arg1)
getEntityAttribute(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String name)
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<ex> 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)
m_smpebqpi(com.mojang.brigadier.context.CommandContext<C_pennblrk> arg0, String arg1)
getConfiguredFeature(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String name)
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<ex> 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)
m_lewkpddi(com.mojang.brigadier.context.CommandContext<C_pennblrk> arg0, String arg1)
getStructure(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String name)
getStructureFeature(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<ex> 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)
m_ywgminmu(com.mojang.brigadier.context.CommandContext<C_pennblrk> arg0, String arg1)
getEntityType(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String name)
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<ex> 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)
m_vafbfynk(com.mojang.brigadier.context.CommandContext<C_pennblrk> arg0, String arg1)
getSummonableEntityType(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String name)
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<ex> 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)
m_chqmsdty(com.mojang.brigadier.context.CommandContext<C_pennblrk> arg0, String arg1)
getStatusEffect(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String name)
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<ex> 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)
m_ilcygena(com.mojang.brigadier.context.CommandContext<C_pennblrk> arg0, String arg1)
getEnchantment(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String name)
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)
m_otvicvic(com.mojang.brigadier.StringReader arg0)
parse(com.mojang.brigadier.StringReader arg0)
parse(com.mojang.brigadier.StringReader reader)
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()