Class SwizzleArgumentType

java.lang.Object
net.minecraft.command.argument.SwizzleArgumentType
All Implemented Interfaces:
com.mojang.brigadier.arguments.ArgumentType<EnumSet<Direction.Axis>>

public class SwizzleArgumentType extends Object implements com.mojang.brigadier.arguments.ArgumentType<EnumSet<Direction.Axis>>
Mappings:
Namespace Name
official fp
intermediary net/minecraft/class_2273
named net/minecraft/command/argument/SwizzleArgumentType
  • Field Details

    • EXAMPLES

      private static final Collection<String> EXAMPLES
      Mappings:
      Namespace Name Mixin selector
      official a Lfp;a:Ljava/util/Collection;
      intermediary field_10740 Lnet/minecraft/class_2273;field_10740:Ljava/util/Collection;
      named EXAMPLES Lnet/minecraft/command/argument/SwizzleArgumentType;EXAMPLES:Ljava/util/Collection;
    • INVALID_SWIZZLE_EXCEPTION

      private static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType INVALID_SWIZZLE_EXCEPTION
      Mappings:
      Namespace Name Mixin selector
      official b Lfp;b:Lcom/mojang/brigadier/exceptions/SimpleCommandExceptionType;
      intermediary field_10741 Lnet/minecraft/class_2273;field_10741:Lcom/mojang/brigadier/exceptions/SimpleCommandExceptionType;
      named INVALID_SWIZZLE_EXCEPTION Lnet/minecraft/command/argument/SwizzleArgumentType;INVALID_SWIZZLE_EXCEPTION:Lcom/mojang/brigadier/exceptions/SimpleCommandExceptionType;
  • Constructor Details

    • SwizzleArgumentType

      public SwizzleArgumentType()
  • Method Details

    • swizzle

      public static SwizzleArgumentType swizzle()
      Mappings:
      Namespace Name Mixin selector
      official a Lfp;a()Lfp;
      intermediary method_9721 Lnet/minecraft/class_2273;method_9721()Lnet/minecraft/class_2273;
      named swizzle Lnet/minecraft/command/argument/SwizzleArgumentType;swizzle()Lnet/minecraft/command/argument/SwizzleArgumentType;
    • getSwizzle

      public static EnumSet<Direction.Axis> getSwizzle(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String name)
      Mappings:
      Namespace Name Mixin selector
      official a Lfp;a(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)Ljava/util/EnumSet;
      intermediary method_9720 Lnet/minecraft/class_2273;method_9720(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)Ljava/util/EnumSet;
      named getSwizzle Lnet/minecraft/command/argument/SwizzleArgumentType;getSwizzle(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)Ljava/util/EnumSet;
    • parse

      public EnumSet<Direction.Axis> parse(com.mojang.brigadier.StringReader stringReader) throws com.mojang.brigadier.exceptions.CommandSyntaxException
      Specified by:
      parse in interface com.mojang.brigadier.arguments.ArgumentType<EnumSet<Direction.Axis>>
      Throws:
      com.mojang.brigadier.exceptions.CommandSyntaxException
      Mappings:
      Namespace Name Mixin selector
      official a Lfp;a(Lcom/mojang/brigadier/StringReader;)Ljava/util/EnumSet;
      intermediary method_9722 Lnet/minecraft/class_2273;method_9722(Lcom/mojang/brigadier/StringReader;)Ljava/util/EnumSet;
      named parse Lnet/minecraft/command/argument/SwizzleArgumentType;parse(Lcom/mojang/brigadier/StringReader;)Ljava/util/EnumSet;
    • getExamples

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