Class SwizzleArgument

java.lang.Object
net.minecraft.commands.arguments.coordinates.SwizzleArgument
All Implemented Interfaces:
com.mojang.brigadier.arguments.ArgumentType<EnumSet<Direction.Axis>>

public class SwizzleArgument extends Object implements com.mojang.brigadier.arguments.ArgumentType<EnumSet<Direction.Axis>>
  • Field Details

    • EXAMPLES

      private static final Collection<String> EXAMPLES
    • ERROR_INVALID

      private static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType ERROR_INVALID
  • Constructor Details

    • SwizzleArgument

      public SwizzleArgument()
  • Method Details

    • swizzle

      public static SwizzleArgument swizzle()
    • getSwizzle

      public static EnumSet<Direction.Axis> getSwizzle(com.mojang.brigadier.context.CommandContext<CommandSourceStack> p_120811_, String p_120812_)
    • parse

      public EnumSet<Direction.Axis> parse(com.mojang.brigadier.StringReader p_120809_) 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
    • getExamples

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