Package net.minecraft.command.argument
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>>
-
Field Summary
Fields Modifier and Type Field Description private static Collection<String>EXAMPLESprivate static com.mojang.brigadier.exceptions.SimpleCommandExceptionTypeINVALID_SWIZZLE_EXCEPTION -
Constructor Summary
Constructors Constructor Description SwizzleArgumentType() -
Method Summary
Modifier and Type Method Description Collection<String>getExamples()static EnumSet<Direction.Axis>getSwizzle(com.mojang.brigadier.context.CommandContext<ServerCommandSource> commandContext, String string)EnumSet<Direction.Axis>parse(com.mojang.brigadier.StringReader stringReader)static SwizzleArgumentTypeswizzle()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.mojang.brigadier.arguments.ArgumentType
listSuggestions
-
Field Details
-
EXAMPLES
-
INVALID_SWIZZLE_EXCEPTION
private static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType INVALID_SWIZZLE_EXCEPTION
-
-
Constructor Details
-
SwizzleArgumentType
public SwizzleArgumentType()
-
-
Method Details
-
swizzle
-
getSwizzle
public static EnumSet<Direction.Axis> getSwizzle(com.mojang.brigadier.context.CommandContext<ServerCommandSource> commandContext, String string) -
parse
- Specified by:
parsein interfacecom.mojang.brigadier.arguments.ArgumentType<EnumSet<Direction.Axis>>
-
getExamples
- Specified by:
getExamplesin interfacecom.mojang.brigadier.arguments.ArgumentType<EnumSet<Direction.Axis>>
-