net.minecraft.command.argument

public class RegistryEntryArgumentType<T>

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

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

Field summary

Modifier and TypeField
private static final Collection<String>
d
EXAMPLES
field_50038
EXAMPLES
f_fspekewb
EXAMPLES
f_316926_
public static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType
a
ERROR_FAILED_TO_PARSE
field_50037
FAILED_TO_PARSE_EXCEPTION
f_aagtzzyf
FAILED_TO_PARSE_EXCEPTION
f_315623_
public static final com.mojang.brigadier.exceptions.Dynamic2CommandExceptionType
b
ERROR_NO_SUCH_ELEMENT
field_60428
NO_SUCH_ELEMENT_EXCEPTION
f_txlbpwqk
NO_SUCH_ELEMENT_EXCEPTION
f_399547_
public static final com.mojang.serialization.DynamicOps<NbtElement>
c
OPS
field_60429
OPS
f_ptipgfnv
OPS
f_399671_
private final RegistryWrapper$WrapperLookup
e
registryLookup
field_50040
registries
f_qyyszsan
lookupProvider
f_315523_
private final Optional<? extends RegistryWrapper$Impl<T>>
f
elementLookup
field_60430
registry
f_snxsshfn
registryLookup
f_399298_
private final com.mojang.serialization.Codec<T>
g
codec
field_50042
entryCodec
f_klqdwlde
codec
f_315174_
private final PackratParser<RegistryEntryArgumentType$EntryParser<T, NbtElement>>
h
grammar
field_60431
parser
f_nquivbvy
grammar
f_398725_
private final RegistryKey<? extends Registry<T>>
i
registryKey
field_60673
registryRef
f_xxeqsnma
registryKey
f_400386_

Constructor summary

ModifierConstructor
protected (CommandRegistryAccess registryAccess, RegistryKey<? extends Registry<T>> registry, com.mojang.serialization.Codec<T> entryCodec)

Method summary

Modifier and TypeMethod
public static <T, O> PackratParser<RegistryEntryArgumentType$EntryParser<T, O>>
a(amd<? extends jy<T>> o, com.mojang.serialization.DynamicOps<O> o)
createGrammar(ResourceKey<? extends Registry<T>> arg0, com.mojang.serialization.DynamicOps<O> arg1)
method_71495(class_5321<? extends class_2378<T>> arg0, com.mojang.serialization.DynamicOps<O> arg1)
createParser(RegistryKey<? extends Registry<T>> key, com.mojang.serialization.DynamicOps<O> ops)
m_itvsoobd(C_xhhleach<? extends C_tqxyjqsk<T>> arg0, com.mojang.serialization.DynamicOps<O> arg1)
createGrammar(RegistryKey<? extends Registry<T>> registry, com.mojang.serialization.DynamicOps<O> ops)
m_401598_(C_5264_<? extends C_4705_<T>> p_406976_, com.mojang.serialization.DynamicOps<O> p_407708_)
public static RegistryEntryArgumentType$LootTableArgumentType
a(eg o)
lootTable(CommandBuildContext arg0)
method_58482(class_7157 arg0)
lootTable(CommandRegistryAccess registryAccess)
m_qngglgoe(C_bprdujxm arg0)
createLootTable(CommandBuildContext context)
m_324396_(C_213173_ p_329328_)
public static RegistryEntry<LootTable>
a(com.mojang.brigadier.context.CommandContext<ek> o, String o)
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_flzfexpi(com.mojang.brigadier.context.CommandContext<C_pennblrk> arg0, String arg1)
getLootTableArgument(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String name)
m_319428_(com.mojang.brigadier.context.CommandContext<C_2969_> p_335148_, String p_329251_)
public static RegistryEntryArgumentType$LootFunctionArgumentType
b(eg o)
lootModifier(CommandBuildContext arg0)
method_58486(class_7157 arg0)
lootFunction(CommandRegistryAccess registryAccess)
m_zsyzdsvv(C_bprdujxm arg0)
createLootModifier(CommandBuildContext context)
m_321589_(C_213173_ p_329720_)
public static RegistryEntry<LootFunction>
b(com.mojang.brigadier.context.CommandContext<ek> o, String o)
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_mktwhdqj(com.mojang.brigadier.context.CommandContext<C_pennblrk> arg0, String arg1)
getLootFunctionArgument(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String name)
m_320065_(com.mojang.brigadier.context.CommandContext<C_2969_> p_334458_, String p_330525_)
public static RegistryEntryArgumentType$LootConditionArgumentType
c(eg o)
lootPredicate(CommandBuildContext arg0)
method_58489(class_7157 arg0)
lootCondition(CommandRegistryAccess registryAccess)
m_jnrduxam(C_bprdujxm arg0)
createLootPredicate(CommandBuildContext context)
m_324190_(C_213173_ p_330159_)
public static RegistryEntry<LootCondition>
c(com.mojang.brigadier.context.CommandContext<ek> o, String o)
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_uusdrqzf(com.mojang.brigadier.context.CommandContext<C_pennblrk> arg0, String arg1)
getLootConditionArgument(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String name)
m_323980_(com.mojang.brigadier.context.CommandContext<C_2969_> p_335366_, String p_334649_)
public static RegistryEntryArgumentType$DialogArgumentType
d(eg o)
dialog(CommandBuildContext arg0)
method_71780(class_7157 arg0)
dialog(CommandRegistryAccess registryAccess)
m_pvhnzmpu(C_bprdujxm arg0)
createDialog(CommandBuildContext context)
m_404047_(C_213173_ p_409305_)
public static RegistryEntry<Dialog>
d(com.mojang.brigadier.context.CommandContext<ek> o, String o)
getDialog(com.mojang.brigadier.context.CommandContext<CommandSourceStack> arg0, String arg1)
method_71779(com.mojang.brigadier.context.CommandContext<class_2168> arg0, String arg1)
getDialog(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String argument)
m_vsndjfcs(com.mojang.brigadier.context.CommandContext<C_pennblrk> arg0, String arg1)
getDialogArgument(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String name)
m_403804_(com.mojang.brigadier.context.CommandContext<C_2969_> p_407444_, String p_407109_)
private static <T> RegistryEntry<T>
e(com.mojang.brigadier.context.CommandContext<ek> o, String o)
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_tvwwcvrr(com.mojang.brigadier.context.CommandContext<C_pennblrk> arg0, String arg1)
getArgument(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String name)
m_323671_(com.mojang.brigadier.context.CommandContext<C_2969_> p_328476_, String p_329877_)
public RegistryEntry<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)
m_orckuupg(com.mojang.brigadier.StringReader arg0)
parse(com.mojang.brigadier.StringReader reader)
parse(com.mojang.brigadier.StringReader arg0)
private <O> RegistryEntry<T>
a(com.mojang.brigadier.StringReader o, bsx<fo$g<T, O>> o, com.mojang.serialization.DynamicOps<O> arg2)
parse(com.mojang.brigadier.StringReader arg0, Grammar<ResourceOrIdArgument$Result<T, O>> arg1, com.mojang.serialization.DynamicOps<O> arg2)
method_68814(com.mojang.brigadier.StringReader arg0, class_9408<class_9433$class_11382<T, O>> arg1, com.mojang.serialization.DynamicOps<O> arg2)
parse(com.mojang.brigadier.StringReader reader, PackratParser<RegistryEntryArgumentType$EntryParser<T, O>> parser, com.mojang.serialization.DynamicOps<O> ops)
m_uulkxtxg(com.mojang.brigadier.StringReader arg0, C_melyyado<C_jjjbxeeq$C_cdswkftq<T, O>> arg1, com.mojang.serialization.DynamicOps<O> arg2)
parseImpl(com.mojang.brigadier.StringReader reader, C_melyyado<HolderArgumentType$Resolver<T, O>> grammar, com.mojang.serialization.DynamicOps<O> ops)
m_387504_(com.mojang.brigadier.StringReader p_406421_, C_313590_<C_313558_$C_398369_<T, O>> p_406083_, com.mojang.serialization.DynamicOps<O> arg2)
public <S> CompletableFuture<com.mojang.brigadier.suggestion.Suggestions>
listSuggestions(com.mojang.brigadier.context.CommandContext<S> o, 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 suggestionsBuilder)
listSuggestions(com.mojang.brigadier.context.CommandContext<S> p_406812_, com.mojang.brigadier.suggestion.SuggestionsBuilder arg1)
public Collection<String>
getExamples()
getExamples()
getExamples()