net.minecraft.commands.arguments

public class ResourceOrIdArgument<T>

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

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

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 final HolderLookup$Provider
d
registryLookup
field_50040
registryLookup
f_315523_
private final boolean
e
hasRegistry
field_50041
canLookupRegistry
f_316282_
private final com.mojang.serialization.Codec<Holder<T>>
f
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(el 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<ep> 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(el 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<ep> 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(el 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<ep> 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<ep> 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)
static Tag
b(com.mojang.brigadier.StringReader arg0)
parseInlineOrId(com.mojang.brigadier.StringReader arg0)
method_58484(com.mojang.brigadier.StringReader arg0)
parseAsNbt(com.mojang.brigadier.StringReader stringReader)
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)
hasFinishedReading(com.mojang.brigadier.StringReader stringReader)
m_318795_(com.mojang.brigadier.StringReader p_330624_)
public Collection<String>
getExamples()
getExamples()
getExamples()