net.minecraft.commands.arguments

public class ResourceOrIdArgument<T>

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

fy
net.minecraft.commands.arguments.ResourceOrIdArgument
net.minecraft.class_9433
net.minecraft.command.argument.RegistryEntryArgumentType
net.minecraft.commands.arguments.ResourceOrIdArgument

Field summary

Modifier and TypeField
private static final Collection<String>
b
EXAMPLES
field_50038
EXAMPLES
public static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType
a
ERROR_FAILED_TO_PARSE
field_50037
FAILED_TO_PARSE_EXCEPTION
private static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType
c
ERROR_INVALID
field_50039
INVALID_EXCEPTION
private final HolderLookup$Provider
d
registryLookup
field_50040
registries
private final boolean
e
hasRegistry
field_50041
canLookupRegistry
private final com.mojang.serialization.Codec<Holder<T>>
f
codec
field_50042
entryCodec

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(es arg0)
lootTable(CommandBuildContext arg0)
method_58482(class_7157 arg0)
lootTable(CommandRegistryAccess registryAccess)
public static Holder<LootTable>
a(com.mojang.brigadier.context.CommandContext<ew> 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)
public static ResourceOrIdArgument$LootModifierArgument
b(es arg0)
lootModifier(CommandBuildContext arg0)
method_58486(class_7157 arg0)
lootFunction(CommandRegistryAccess registryAccess)
public static Holder<LootItemFunction>
b(com.mojang.brigadier.context.CommandContext<ew> 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)
public static ResourceOrIdArgument$LootPredicateArgument
c(es arg0)
lootPredicate(CommandBuildContext arg0)
method_58489(class_7157 arg0)
lootCondition(CommandRegistryAccess registryAccess)
public static Holder<LootItemCondition>
c(com.mojang.brigadier.context.CommandContext<ew> 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)
private static <T> Holder<T>
d(com.mojang.brigadier.context.CommandContext<ew> 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)
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)
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)
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)
public Collection<String>
getExamples()
getExamples()