Package net.minecraft.command.argument
Class RegistryEntryArgumentType<T>
java.lang.Object
net.minecraft.command.argument.RegistryEntryArgumentType<T>
- All Implemented Interfaces:
com.mojang.brigadier.arguments.ArgumentType<RegistryEntry<T>>
- Direct Known Subclasses:
RegistryEntryArgumentType.LootConditionArgumentType
,RegistryEntryArgumentType.LootFunctionArgumentType
,RegistryEntryArgumentType.LootTableArgumentType
public class RegistryEntryArgumentType<T>
extends Object
implements com.mojang.brigadier.arguments.ArgumentType<RegistryEntry<T>>
- Mappings:
Namespace Name official ff
intermediary net/minecraft/class_9433
named net/minecraft/command/argument/RegistryEntryArgumentType
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
static class
static class
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final boolean
private final com.mojang.serialization.Codec
<RegistryEntry<T>> private static final Collection
<String> static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType
private static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType
private final RegistryWrapper.WrapperLookup
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
RegistryEntryArgumentType
(CommandRegistryAccess registryAccess, RegistryKey<Registry<T>> registry, com.mojang.serialization.Codec<RegistryEntry<T>> entryCodec) -
Method Summary
Modifier and TypeMethodDescriptionprivate static <T> RegistryEntry
<T> getArgument
(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String argument) static RegistryEntry
<LootCondition> getLootCondition
(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String argument) static RegistryEntry
<LootFunction> getLootFunction
(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String argument) static RegistryEntry
<LootTable> getLootTable
(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String argument) private static boolean
hasFinishedReading
(com.mojang.brigadier.StringReader stringReader) lootCondition
(CommandRegistryAccess registryAccess) lootFunction
(CommandRegistryAccess registryAccess) lootTable
(CommandRegistryAccess registryAccess) parse
(com.mojang.brigadier.StringReader stringReader) (package private) static NbtElement
parseAsNbt
(com.mojang.brigadier.StringReader stringReader) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.mojang.brigadier.arguments.ArgumentType
listSuggestions
-
Field Details
-
EXAMPLES
- Mappings:
Namespace Name Mixin selector official b
Lff;b:Ljava/util/Collection;
intermediary field_50038
Lnet/minecraft/class_9433;field_50038:Ljava/util/Collection;
named EXAMPLES
Lnet/minecraft/command/argument/RegistryEntryArgumentType;EXAMPLES:Ljava/util/Collection;
-
FAILED_TO_PARSE_EXCEPTION
public static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType FAILED_TO_PARSE_EXCEPTION- Mappings:
Namespace Name Mixin selector official a
Lff;a:Lcom/mojang/brigadier/exceptions/DynamicCommandExceptionType;
intermediary field_50037
Lnet/minecraft/class_9433;field_50037:Lcom/mojang/brigadier/exceptions/DynamicCommandExceptionType;
named FAILED_TO_PARSE_EXCEPTION
Lnet/minecraft/command/argument/RegistryEntryArgumentType;FAILED_TO_PARSE_EXCEPTION:Lcom/mojang/brigadier/exceptions/DynamicCommandExceptionType;
-
INVALID_EXCEPTION
private static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType INVALID_EXCEPTION- Mappings:
Namespace Name Mixin selector official c
Lff;c:Lcom/mojang/brigadier/exceptions/SimpleCommandExceptionType;
intermediary field_50039
Lnet/minecraft/class_9433;field_50039:Lcom/mojang/brigadier/exceptions/SimpleCommandExceptionType;
named INVALID_EXCEPTION
Lnet/minecraft/command/argument/RegistryEntryArgumentType;INVALID_EXCEPTION:Lcom/mojang/brigadier/exceptions/SimpleCommandExceptionType;
-
registryLookup
- Mappings:
Namespace Name Mixin selector official d
Lff;d:Liy$a;
intermediary field_50040
Lnet/minecraft/class_9433;field_50040:Lnet/minecraft/class_7225$class_7874;
named registryLookup
Lnet/minecraft/command/argument/RegistryEntryArgumentType;registryLookup:Lnet/minecraft/registry/RegistryWrapper$WrapperLookup;
-
canLookupRegistry
private final boolean canLookupRegistry- Mappings:
Namespace Name Mixin selector official e
Lff;e:Z
intermediary field_50041
Lnet/minecraft/class_9433;field_50041:Z
named canLookupRegistry
Lnet/minecraft/command/argument/RegistryEntryArgumentType;canLookupRegistry:Z
-
entryCodec
- Mappings:
Namespace Name Mixin selector official f
Lff;f:Lcom/mojang/serialization/Codec;
intermediary field_50042
Lnet/minecraft/class_9433;field_50042:Lcom/mojang/serialization/Codec;
named entryCodec
Lnet/minecraft/command/argument/RegistryEntryArgumentType;entryCodec:Lcom/mojang/serialization/Codec;
-
-
Constructor Details
-
RegistryEntryArgumentType
protected RegistryEntryArgumentType(CommandRegistryAccess registryAccess, RegistryKey<Registry<T>> registry, com.mojang.serialization.Codec<RegistryEntry<T>> entryCodec) - Mappings:
Namespace Name Mixin selector official <init>
Lff;<init>(Ldz;Lakg;Lcom/mojang/serialization/Codec;)V
intermediary <init>
Lnet/minecraft/class_9433;<init>(Lnet/minecraft/class_7157;Lnet/minecraft/class_5321;Lcom/mojang/serialization/Codec;)V
named <init>
Lnet/minecraft/command/argument/RegistryEntryArgumentType;<init>(Lnet/minecraft/command/CommandRegistryAccess;Lnet/minecraft/registry/RegistryKey;Lcom/mojang/serialization/Codec;)V
-
-
Method Details
-
lootTable
public static RegistryEntryArgumentType.LootTableArgumentType lootTable(CommandRegistryAccess registryAccess) - Mappings:
Namespace Name Mixin selector official a
Lff;a(Ldz;)Lff$c;
intermediary method_58482
Lnet/minecraft/class_9433;method_58482(Lnet/minecraft/class_7157;)Lnet/minecraft/class_9433$class_9436;
named lootTable
Lnet/minecraft/command/argument/RegistryEntryArgumentType;lootTable(Lnet/minecraft/command/CommandRegistryAccess;)Lnet/minecraft/command/argument/RegistryEntryArgumentType$LootTableArgumentType;
-
getLootTable
public static RegistryEntry<LootTable> getLootTable(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String argument) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
- Mappings:
Namespace Name Mixin selector official a
Lff;a(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)Liw;
intermediary method_58481
Lnet/minecraft/class_9433;method_58481(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)Lnet/minecraft/class_6880;
named getLootTable
Lnet/minecraft/command/argument/RegistryEntryArgumentType;getLootTable(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)Lnet/minecraft/registry/entry/RegistryEntry;
-
lootFunction
public static RegistryEntryArgumentType.LootFunctionArgumentType lootFunction(CommandRegistryAccess registryAccess) - Mappings:
Namespace Name Mixin selector official b
Lff;b(Ldz;)Lff$a;
intermediary method_58486
Lnet/minecraft/class_9433;method_58486(Lnet/minecraft/class_7157;)Lnet/minecraft/class_9433$class_9434;
named lootFunction
Lnet/minecraft/command/argument/RegistryEntryArgumentType;lootFunction(Lnet/minecraft/command/CommandRegistryAccess;)Lnet/minecraft/command/argument/RegistryEntryArgumentType$LootFunctionArgumentType;
-
getLootFunction
public static RegistryEntry<LootFunction> getLootFunction(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String argument) - Mappings:
Namespace Name Mixin selector official b
Lff;b(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)Liw;
intermediary method_58485
Lnet/minecraft/class_9433;method_58485(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)Lnet/minecraft/class_6880;
named getLootFunction
Lnet/minecraft/command/argument/RegistryEntryArgumentType;getLootFunction(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)Lnet/minecraft/registry/entry/RegistryEntry;
-
lootCondition
public static RegistryEntryArgumentType.LootConditionArgumentType lootCondition(CommandRegistryAccess registryAccess) - Mappings:
Namespace Name Mixin selector official c
Lff;c(Ldz;)Lff$b;
intermediary method_58489
Lnet/minecraft/class_9433;method_58489(Lnet/minecraft/class_7157;)Lnet/minecraft/class_9433$class_9435;
named lootCondition
Lnet/minecraft/command/argument/RegistryEntryArgumentType;lootCondition(Lnet/minecraft/command/CommandRegistryAccess;)Lnet/minecraft/command/argument/RegistryEntryArgumentType$LootConditionArgumentType;
-
getLootCondition
public static RegistryEntry<LootCondition> getLootCondition(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String argument) - Mappings:
Namespace Name Mixin selector official c
Lff;c(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)Liw;
intermediary method_58488
Lnet/minecraft/class_9433;method_58488(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)Lnet/minecraft/class_6880;
named getLootCondition
Lnet/minecraft/command/argument/RegistryEntryArgumentType;getLootCondition(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)Lnet/minecraft/registry/entry/RegistryEntry;
-
getArgument
private static <T> RegistryEntry<T> getArgument(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String argument) - Mappings:
Namespace Name Mixin selector official d
Lff;d(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)Liw;
intermediary method_58490
Lnet/minecraft/class_9433;method_58490(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)Lnet/minecraft/class_6880;
named getArgument
Lnet/minecraft/command/argument/RegistryEntryArgumentType;getArgument(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)Lnet/minecraft/registry/entry/RegistryEntry;
-
parse
@Nullable public @Nullable RegistryEntry<T> parse(com.mojang.brigadier.StringReader stringReader) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Specified by:
parse
in interfacecom.mojang.brigadier.arguments.ArgumentType<T>
- Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
- Mappings:
Namespace Name Mixin selector official a
Lff;a(Lcom/mojang/brigadier/StringReader;)Liw;
intermediary method_58479
Lnet/minecraft/class_9433;method_58479(Lcom/mojang/brigadier/StringReader;)Lnet/minecraft/class_6880;
named parse
Lnet/minecraft/command/argument/RegistryEntryArgumentType;parse(Lcom/mojang/brigadier/StringReader;)Lnet/minecraft/registry/entry/RegistryEntry;
-
parseAsNbt
static NbtElement parseAsNbt(com.mojang.brigadier.StringReader stringReader) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
- Mappings:
Namespace Name Mixin selector official b
Lff;b(Lcom/mojang/brigadier/StringReader;)Lux;
intermediary method_58484
Lnet/minecraft/class_9433;method_58484(Lcom/mojang/brigadier/StringReader;)Lnet/minecraft/class_2520;
named parseAsNbt
Lnet/minecraft/command/argument/RegistryEntryArgumentType;parseAsNbt(Lcom/mojang/brigadier/StringReader;)Lnet/minecraft/nbt/NbtElement;
-
hasFinishedReading
private static boolean hasFinishedReading(com.mojang.brigadier.StringReader stringReader) - Mappings:
Namespace Name Mixin selector official c
Lff;c(Lcom/mojang/brigadier/StringReader;)Z
intermediary method_58487
Lnet/minecraft/class_9433;method_58487(Lcom/mojang/brigadier/StringReader;)Z
named hasFinishedReading
Lnet/minecraft/command/argument/RegistryEntryArgumentType;hasFinishedReading(Lcom/mojang/brigadier/StringReader;)Z
-
getExamples
- Specified by:
getExamples
in interfacecom.mojang.brigadier.arguments.ArgumentType<T>
-