Class IdentifierArgumentType

java.lang.Object
net.minecraft.command.argument.IdentifierArgumentType
All Implemented Interfaces:
com.mojang.brigadier.arguments.ArgumentType<Identifier>

public class IdentifierArgumentType extends Object implements com.mojang.brigadier.arguments.ArgumentType<Identifier>
Mappings:
Namespace Name
named net/minecraft/command/argument/IdentifierArgumentType
intermediary net/minecraft/class_2232
official fx
  • Field Details

    • EXAMPLES

      private static final Collection<String> EXAMPLES
      Mappings:
      Namespace Name Mixin selector
      named EXAMPLES Lnet/minecraft/command/argument/IdentifierArgumentType;EXAMPLES:Ljava/util/Collection;
      intermediary field_9946 Lnet/minecraft/class_2232;field_9946:Ljava/util/Collection;
      official a Lfx;a:Ljava/util/Collection;
  • Constructor Details

    • IdentifierArgumentType

      public IdentifierArgumentType()
  • Method Details

    • identifier

      public static IdentifierArgumentType identifier()
      Mappings:
      Namespace Name Mixin selector
      named identifier Lnet/minecraft/command/argument/IdentifierArgumentType;identifier()Lnet/minecraft/command/argument/IdentifierArgumentType;
      intermediary method_9441 Lnet/minecraft/class_2232;method_9441()Lnet/minecraft/class_2232;
      official a Lfx;a()Lfx;
    • getIdentifier

      public static Identifier getIdentifier(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String name)
      Mappings:
      Namespace Name Mixin selector
      named getIdentifier Lnet/minecraft/command/argument/IdentifierArgumentType;getIdentifier(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)Lnet/minecraft/util/Identifier;
      intermediary method_9443 Lnet/minecraft/class_2232;method_9443(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)Lnet/minecraft/class_2960;
      official a Lfx;a(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)Lalz;
    • parse

      public Identifier parse(com.mojang.brigadier.StringReader stringReader) throws com.mojang.brigadier.exceptions.CommandSyntaxException
      Specified by:
      parse in interface com.mojang.brigadier.arguments.ArgumentType<Identifier>
      Throws:
      com.mojang.brigadier.exceptions.CommandSyntaxException
      Mappings:
      Namespace Name Mixin selector
      named parse Lnet/minecraft/command/argument/IdentifierArgumentType;parse(Lcom/mojang/brigadier/StringReader;)Lnet/minecraft/util/Identifier;
      intermediary method_9446 Lnet/minecraft/class_2232;method_9446(Lcom/mojang/brigadier/StringReader;)Lnet/minecraft/class_2960;
      official a Lfx;a(Lcom/mojang/brigadier/StringReader;)Lalz;
    • getExamples

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