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 fs
  • Field Details

    • EXAMPLES

      private static final Collection<String> 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 Lfs;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 Lfs;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 Lfs;c:Lcom/mojang/brigadier/exceptions/SimpleCommandExceptionType;
    • registryLookup

      private final RegistryWrapper.WrapperLookup 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 Lfs;d:Ljl$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 Lfs;e:Z
    • entryCodec

      private final com.mojang.serialization.Codec<RegistryEntry<T>> 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 Lfs;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> Lfs;<init>(Lem;Lakj;Lcom/mojang/serialization/Codec;)V
  • Method Details

    • lootTable

      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 Lfs;a(Lem;)Lfs$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 Lfs;a(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)Ljj;
    • lootFunction

      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 Lfs;b(Lem;)Lfs$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 Lfs;b(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)Ljj;
    • 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 Lfs;c(Lem;)Lfs$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 Lfs;c(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)Ljj;
    • 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 Lfs;d(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)Ljj;
    • parse

      @Nullable public @Nullable RegistryEntry<T> parse(com.mojang.brigadier.StringReader stringReader) throws com.mojang.brigadier.exceptions.CommandSyntaxException
      Specified by:
      parse in interface com.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 Lfs;a(Lcom/mojang/brigadier/StringReader;)Ljj;
    • 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 Lfs;b(Lcom/mojang/brigadier/StringReader;)Luu;
    • 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 Lfs;c(Lcom/mojang/brigadier/StringReader;)Z
    • getExamples

      public Collection<String> getExamples()
      Specified by:
      getExamples in interface com.mojang.brigadier.arguments.ArgumentType<T>