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 named net/minecraft/command/argument/RegistryEntryArgumentType
intermediary net/minecraft/class_9433
official fv
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
static class
static class
-
Field Summary
Modifier 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
ModifierConstructorDescriptionprotected
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 named EXAMPLES
Lnet/minecraft/command/argument/RegistryEntryArgumentType;EXAMPLES:Ljava/util/Collection;
intermediary field_50038
Lnet/minecraft/class_9433;field_50038:Ljava/util/Collection;
official b
Lfv;b:Ljava/util/Collection;
-
FAILED_TO_PARSE_EXCEPTION
public static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType FAILED_TO_PARSE_EXCEPTION- Mappings:
Namespace Name Mixin selector named FAILED_TO_PARSE_EXCEPTION
Lnet/minecraft/command/argument/RegistryEntryArgumentType;FAILED_TO_PARSE_EXCEPTION:Lcom/mojang/brigadier/exceptions/DynamicCommandExceptionType;
intermediary field_50037
Lnet/minecraft/class_9433;field_50037:Lcom/mojang/brigadier/exceptions/DynamicCommandExceptionType;
official a
Lfv;a:Lcom/mojang/brigadier/exceptions/DynamicCommandExceptionType;
-
INVALID_EXCEPTION
private static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType INVALID_EXCEPTION- Mappings:
Namespace Name Mixin selector named INVALID_EXCEPTION
Lnet/minecraft/command/argument/RegistryEntryArgumentType;INVALID_EXCEPTION:Lcom/mojang/brigadier/exceptions/SimpleCommandExceptionType;
intermediary field_50039
Lnet/minecraft/class_9433;field_50039:Lcom/mojang/brigadier/exceptions/SimpleCommandExceptionType;
official c
Lfv;c:Lcom/mojang/brigadier/exceptions/SimpleCommandExceptionType;
-
registryLookup
- Mappings:
Namespace Name Mixin selector named registryLookup
Lnet/minecraft/command/argument/RegistryEntryArgumentType;registryLookup:Lnet/minecraft/registry/RegistryWrapper$WrapperLookup;
intermediary field_50040
Lnet/minecraft/class_9433;field_50040:Lnet/minecraft/class_7225$class_7874;
official d
Lfv;d:Ljo$a;
-
canLookupRegistry
private final boolean canLookupRegistry- Mappings:
Namespace Name Mixin selector named canLookupRegistry
Lnet/minecraft/command/argument/RegistryEntryArgumentType;canLookupRegistry:Z
intermediary field_50041
Lnet/minecraft/class_9433;field_50041:Z
official e
Lfv;e:Z
-
entryCodec
- Mappings:
Namespace Name Mixin selector named entryCodec
Lnet/minecraft/command/argument/RegistryEntryArgumentType;entryCodec:Lcom/mojang/serialization/Codec;
intermediary field_50042
Lnet/minecraft/class_9433;field_50042:Lcom/mojang/serialization/Codec;
official f
Lfv;f: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 named <init>
Lnet/minecraft/command/argument/RegistryEntryArgumentType;<init>(Lnet/minecraft/command/CommandRegistryAccess;Lnet/minecraft/registry/RegistryKey;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
official <init>
Lfv;<init>(Lep;Lakp;Lcom/mojang/serialization/Codec;)V
-
-
Method Details
-
lootTable
public static RegistryEntryArgumentType.LootTableArgumentType lootTable(CommandRegistryAccess registryAccess) - Mappings:
Namespace Name Mixin selector named lootTable
Lnet/minecraft/command/argument/RegistryEntryArgumentType;lootTable(Lnet/minecraft/command/CommandRegistryAccess;)Lnet/minecraft/command/argument/RegistryEntryArgumentType$LootTableArgumentType;
intermediary method_58482
Lnet/minecraft/class_9433;method_58482(Lnet/minecraft/class_7157;)Lnet/minecraft/class_9433$class_9436;
official a
Lfv;a(Lep;)Lfv$c;
-
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 named getLootTable
Lnet/minecraft/command/argument/RegistryEntryArgumentType;getLootTable(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)Lnet/minecraft/registry/entry/RegistryEntry;
intermediary method_58481
Lnet/minecraft/class_9433;method_58481(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)Lnet/minecraft/class_6880;
official a
Lfv;a(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)Ljm;
-
lootFunction
public static RegistryEntryArgumentType.LootFunctionArgumentType lootFunction(CommandRegistryAccess registryAccess) - Mappings:
Namespace Name Mixin selector named lootFunction
Lnet/minecraft/command/argument/RegistryEntryArgumentType;lootFunction(Lnet/minecraft/command/CommandRegistryAccess;)Lnet/minecraft/command/argument/RegistryEntryArgumentType$LootFunctionArgumentType;
intermediary method_58486
Lnet/minecraft/class_9433;method_58486(Lnet/minecraft/class_7157;)Lnet/minecraft/class_9433$class_9434;
official b
Lfv;b(Lep;)Lfv$a;
-
getLootFunction
public static RegistryEntry<LootFunction> getLootFunction(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String argument) - Mappings:
Namespace Name Mixin selector named getLootFunction
Lnet/minecraft/command/argument/RegistryEntryArgumentType;getLootFunction(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)Lnet/minecraft/registry/entry/RegistryEntry;
intermediary method_58485
Lnet/minecraft/class_9433;method_58485(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)Lnet/minecraft/class_6880;
official b
Lfv;b(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)Ljm;
-
lootCondition
public static RegistryEntryArgumentType.LootConditionArgumentType lootCondition(CommandRegistryAccess registryAccess) - Mappings:
Namespace Name Mixin selector named lootCondition
Lnet/minecraft/command/argument/RegistryEntryArgumentType;lootCondition(Lnet/minecraft/command/CommandRegistryAccess;)Lnet/minecraft/command/argument/RegistryEntryArgumentType$LootConditionArgumentType;
intermediary method_58489
Lnet/minecraft/class_9433;method_58489(Lnet/minecraft/class_7157;)Lnet/minecraft/class_9433$class_9435;
official c
Lfv;c(Lep;)Lfv$b;
-
getLootCondition
public static RegistryEntry<LootCondition> getLootCondition(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String argument) - Mappings:
Namespace Name Mixin selector named getLootCondition
Lnet/minecraft/command/argument/RegistryEntryArgumentType;getLootCondition(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)Lnet/minecraft/registry/entry/RegistryEntry;
intermediary method_58488
Lnet/minecraft/class_9433;method_58488(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)Lnet/minecraft/class_6880;
official c
Lfv;c(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)Ljm;
-
getArgument
private static <T> RegistryEntry<T> getArgument(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String argument) - Mappings:
Namespace Name Mixin selector named getArgument
Lnet/minecraft/command/argument/RegistryEntryArgumentType;getArgument(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)Lnet/minecraft/registry/entry/RegistryEntry;
intermediary method_58490
Lnet/minecraft/class_9433;method_58490(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)Lnet/minecraft/class_6880;
official d
Lfv;d(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)Ljm;
-
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 named parse
Lnet/minecraft/command/argument/RegistryEntryArgumentType;parse(Lcom/mojang/brigadier/StringReader;)Lnet/minecraft/registry/entry/RegistryEntry;
intermediary method_58479
Lnet/minecraft/class_9433;method_58479(Lcom/mojang/brigadier/StringReader;)Lnet/minecraft/class_6880;
official a
Lfv;a(Lcom/mojang/brigadier/StringReader;)Ljm;
-
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 named parseAsNbt
Lnet/minecraft/command/argument/RegistryEntryArgumentType;parseAsNbt(Lcom/mojang/brigadier/StringReader;)Lnet/minecraft/nbt/NbtElement;
intermediary method_58484
Lnet/minecraft/class_9433;method_58484(Lcom/mojang/brigadier/StringReader;)Lnet/minecraft/class_2520;
official b
Lfv;b(Lcom/mojang/brigadier/StringReader;)Lux;
-
hasFinishedReading
private static boolean hasFinishedReading(com.mojang.brigadier.StringReader stringReader) - Mappings:
Namespace Name Mixin selector named hasFinishedReading
Lnet/minecraft/command/argument/RegistryEntryArgumentType;hasFinishedReading(Lcom/mojang/brigadier/StringReader;)Z
intermediary method_58487
Lnet/minecraft/class_9433;method_58487(Lcom/mojang/brigadier/StringReader;)Z
official c
Lfv;c(Lcom/mojang/brigadier/StringReader;)Z
-
getExamples
- Specified by:
getExamples
in interfacecom.mojang.brigadier.arguments.ArgumentType<T>
-