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 Summary
Modifier and TypeFieldDescriptionprivate static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType
private static final Collection
<String> -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic EnumSet
<Direction.Axis> getSwizzle
(com.mojang.brigadier.context.CommandContext<CommandSourceStack> p_120811_, String p_120812_) parse
(com.mojang.brigadier.StringReader p_120809_) static SwizzleArgument
swizzle()
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
-
ERROR_INVALID
private static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType ERROR_INVALID
-
-
Constructor Details
-
SwizzleArgument
public SwizzleArgument()
-
-
Method Details
-
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 interfacecom.mojang.brigadier.arguments.ArgumentType<EnumSet<Direction.Axis>>
- Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
getExamples
- Specified by:
getExamples
in interfacecom.mojang.brigadier.arguments.ArgumentType<EnumSet<Direction.Axis>>
-