net.minecraft.commands.arguments

public class ResourceOrIdArgument<T>

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

fv
net.minecraft.commands.arguments.ResourceOrIdArgument
net.minecraft.class_9433
net.minecraft.unmapped.C_jjjbxeeq
net.minecraft.command.argument.RegistryEntryArgumentType
net.minecraft.unmapped.C_jjjbxeeq
net.minecraft.src.C_313558_
net.minecraft.commands.arguments.ResourceOrIdArgument

Field summary

Modifier and TypeField
private static final Collection<String>
b
EXAMPLES
field_50038
f_fspekewb
EXAMPLES
f_316926_
public static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType
a
ERROR_FAILED_TO_PARSE
field_50037
f_aagtzzyf
FAILED_TO_PARSE_EXCEPTION
f_315623_
private static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType
c
ERROR_INVALID
field_50039
f_knuvanjc
INVALID_EXCEPTION
f_314815_
private final HolderLookup$Provider
d
registryLookup
field_50040
f_qyyszsan
registryLookup
f_315523_
private final boolean
e
hasRegistry
field_50041
f_sxaqoslp
canLookupRegistry
f_316282_
private final com.mojang.serialization.Codec<Holder<T>>
f
codec
field_50042
f_klqdwlde
entryCodec
codec
f_315174_

Constructor summary

ModifierConstructor
protected (CommandBuildContext registryAccess, ResourceKey<Registry<T>> registry, com.mojang.serialization.Codec<Holder<T>> entryCodec)

Method summary

Modifier and TypeMethod
public static ResourceOrIdArgument$LootTableArgument
a(ep arg0)
lootTable(CommandBuildContext arg0)
method_58482(class_7157 arg0)
m_qngglgoe(C_bprdujxm arg0)
lootTable(CommandRegistryAccess registryAccess)
m_324396_(C_213173_ p_329328_)
public static Holder<LootTable>
a(com.mojang.brigadier.context.CommandContext<et> arg0, String arg1)
getLootTable(com.mojang.brigadier.context.CommandContext<CommandSourceStack> arg0, String arg1)
method_58481(com.mojang.brigadier.context.CommandContext<class_2168> arg0, String arg1)
m_flzfexpi(com.mojang.brigadier.context.CommandContext<C_pennblrk> arg0, String arg1)
getLootTable(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String argument)
m_flzfexpi(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String arg1)
m_319428_(com.mojang.brigadier.context.CommandContext<C_2969_> p_335148_, String p_329251_)
public static ResourceOrIdArgument$LootModifierArgument
b(ep arg0)
lootModifier(CommandBuildContext arg0)
method_58486(class_7157 arg0)
m_zsyzdsvv(C_bprdujxm arg0)
lootFunction(CommandRegistryAccess registryAccess)
m_321589_(C_213173_ p_329720_)
public static Holder<LootItemFunction>
b(com.mojang.brigadier.context.CommandContext<et> arg0, String arg1)
getLootModifier(com.mojang.brigadier.context.CommandContext<CommandSourceStack> arg0, String arg1)
method_58485(com.mojang.brigadier.context.CommandContext<class_2168> arg0, String arg1)
m_mktwhdqj(com.mojang.brigadier.context.CommandContext<C_pennblrk> arg0, String arg1)
getLootFunction(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String argument)
m_mktwhdqj(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String arg1)
m_320065_(com.mojang.brigadier.context.CommandContext<C_2969_> p_334458_, String p_330525_)
public static ResourceOrIdArgument$LootPredicateArgument
c(ep arg0)
lootPredicate(CommandBuildContext arg0)
method_58489(class_7157 arg0)
m_jnrduxam(C_bprdujxm arg0)
lootCondition(CommandRegistryAccess registryAccess)
m_324190_(C_213173_ p_330159_)
public static Holder<LootItemCondition>
c(com.mojang.brigadier.context.CommandContext<et> arg0, String arg1)
getLootPredicate(com.mojang.brigadier.context.CommandContext<CommandSourceStack> arg0, String arg1)
method_58488(com.mojang.brigadier.context.CommandContext<class_2168> arg0, String arg1)
m_uusdrqzf(com.mojang.brigadier.context.CommandContext<C_pennblrk> arg0, String arg1)
getLootCondition(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String argument)
m_uusdrqzf(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String arg1)
m_323980_(com.mojang.brigadier.context.CommandContext<C_2969_> p_335366_, String p_334649_)
private static <T> Holder<T>
d(com.mojang.brigadier.context.CommandContext<et> arg0, String arg1)
getResource(com.mojang.brigadier.context.CommandContext<CommandSourceStack> arg0, String arg1)
method_58490(com.mojang.brigadier.context.CommandContext<class_2168> arg0, String arg1)
m_tvwwcvrr(com.mojang.brigadier.context.CommandContext<C_pennblrk> arg0, String arg1)
getArgument(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String argument)
m_tvwwcvrr(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String arg1)
m_323671_(com.mojang.brigadier.context.CommandContext<C_2969_> p_328476_, String p_329877_)
public Holder<T>
a(com.mojang.brigadier.StringReader arg0)
parse(com.mojang.brigadier.StringReader arg0)
method_58479(com.mojang.brigadier.StringReader arg0)
m_orckuupg(com.mojang.brigadier.StringReader arg0)
parse(com.mojang.brigadier.StringReader arg0)
parse(com.mojang.brigadier.StringReader reader)
parse(com.mojang.brigadier.StringReader arg0)
static Tag
b(com.mojang.brigadier.StringReader arg0)
parseInlineOrId(com.mojang.brigadier.StringReader arg0)
method_58484(com.mojang.brigadier.StringReader arg0)
m_hxuukajl(com.mojang.brigadier.StringReader arg0)
parseAsNbt(com.mojang.brigadier.StringReader stringReader)
m_hxuukajl(com.mojang.brigadier.StringReader reader)
m_319147_(com.mojang.brigadier.StringReader p_331361_)
private static boolean
c(com.mojang.brigadier.StringReader arg0)
hasConsumedWholeArg(com.mojang.brigadier.StringReader arg0)
method_58487(com.mojang.brigadier.StringReader arg0)
m_ytmitjqj(com.mojang.brigadier.StringReader arg0)
hasFinishedReading(com.mojang.brigadier.StringReader stringReader)
m_ytmitjqj(com.mojang.brigadier.StringReader reader)
m_318795_(com.mojang.brigadier.StringReader p_330624_)
public Collection<String>
getExamples()
getExamples()
getExamples()