net.minecraft.commands.arguments

public class ResourceOrIdArgument<T>

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

fm
net.minecraft.commands.arguments.ResourceOrIdArgument
net.minecraft.class_9433
net.minecraft.command.argument.RegistryEntryArgumentType
net.minecraft.src.C_313558_

Field summary

Modifier and TypeField
private static final Collection<String>
b
EXAMPLES
field_50038
EXAMPLES
f_316926_
public static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType
a
ERROR_FAILED_TO_PARSE
field_50037
FAILED_TO_PARSE_EXCEPTION
f_315623_
private static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType
c
ERROR_INVALID
field_50039
INVALID_EXCEPTION
f_314815_
private static final TagParser<?>
d
VALUE_PARSER
field_58145
SNBT_READER
f_381878_
private final HolderLookup$Provider
e
registryLookup
field_50040
registries
f_315523_
private final boolean
f
hasRegistry
field_50041
canLookupRegistry
f_316282_
private final com.mojang.serialization.Codec<Holder<T>>
g
codec
field_50042
entryCodec
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(eg arg0)
lootTable(CommandBuildContext arg0)
method_58482(class_7157 arg0)
lootTable(CommandRegistryAccess registryAccess)
m_324396_(C_213173_ p_329328_)
public static Holder<LootTable>
a(com.mojang.brigadier.context.CommandContext<ek> 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)
getLootTable(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String argument)
m_319428_(com.mojang.brigadier.context.CommandContext<C_2969_> p_335148_, String p_329251_)
public static ResourceOrIdArgument$LootModifierArgument
b(eg arg0)
lootModifier(CommandBuildContext arg0)
method_58486(class_7157 arg0)
lootFunction(CommandRegistryAccess registryAccess)
m_321589_(C_213173_ p_329720_)
public static Holder<LootItemFunction>
b(com.mojang.brigadier.context.CommandContext<ek> 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)
getLootFunction(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String argument)
m_320065_(com.mojang.brigadier.context.CommandContext<C_2969_> p_334458_, String p_330525_)
public static ResourceOrIdArgument$LootPredicateArgument
c(eg arg0)
lootPredicate(CommandBuildContext arg0)
method_58489(class_7157 arg0)
lootCondition(CommandRegistryAccess registryAccess)
m_324190_(C_213173_ p_330159_)
public static Holder<LootItemCondition>
c(com.mojang.brigadier.context.CommandContext<ek> 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)
getLootCondition(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String argument)
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<ek> 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)
getArgument(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String argument)
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)
parse(com.mojang.brigadier.StringReader arg0)
parse(com.mojang.brigadier.StringReader arg0)
private <O> Holder<T>
a(com.mojang.brigadier.StringReader arg0, vb<O> arg1)
parse(com.mojang.brigadier.StringReader arg0, TagParser<O> arg1)
method_68814(com.mojang.brigadier.StringReader arg0, class_2522<O> arg1)
parse(com.mojang.brigadier.StringReader reader, StringNbtReader<O> snbtReader)
m_387504_(com.mojang.brigadier.StringReader p_394176_, C_4951_<O> arg1)
static <T> com.mojang.serialization.Dynamic<T>
a(com.mojang.serialization.DynamicOps<T> arg0, vb<T> arg1, com.mojang.brigadier.StringReader arg2)
parseInlineOrId(com.mojang.serialization.DynamicOps<T> arg0, TagParser<T> arg1, com.mojang.brigadier.StringReader arg2)
method_58484(com.mojang.serialization.DynamicOps<T> arg0, class_2522<T> arg1, com.mojang.brigadier.StringReader arg2)
parseAsNbt(com.mojang.serialization.DynamicOps<T> ops, StringNbtReader<T> snbtReader, com.mojang.brigadier.StringReader reader)
m_319147_(com.mojang.serialization.DynamicOps<T> p_391210_, C_4951_<T> p_394847_, com.mojang.brigadier.StringReader p_331361_)
private static boolean
b(com.mojang.brigadier.StringReader arg0)
hasConsumedWholeArg(com.mojang.brigadier.StringReader arg0)
method_58487(com.mojang.brigadier.StringReader arg0)
hasFinishedReading(com.mojang.brigadier.StringReader stringReader)
m_318795_(com.mojang.brigadier.StringReader p_330624_)
public Collection<String>
getExamples()
getExamples()
getExamples()