Package net.minecraft.command.arguments
Class SwizzleArgument
java.lang.Object
net.minecraft.command.arguments.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<CommandSource> p_197291_0_, String p_197291_1_) parse
(com.mojang.brigadier.StringReader p_parse_1_) 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<CommandSource> p_197291_0_, String p_197291_1_) -
parse
public EnumSet<Direction.Axis> parse(com.mojang.brigadier.StringReader p_parse_1_) 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>>
-