public class SwizzleArgumentType extends Object implements com.mojang.brigadier.arguments.ArgumentType<EnumSet<Direction.Axis>>
Modifier and Type | Field and Description |
---|---|
private static Collection<String> |
EXAMPLES |
private static com.mojang.brigadier.exceptions.SimpleCommandExceptionType |
INVALID_SWIZZLE_EXCEPTION |
Constructor and Description |
---|
SwizzleArgumentType() |
Modifier and Type | Method and 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 SwizzleArgumentType |
swizzle() |
private static final Collection<String> EXAMPLES
private static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType INVALID_SWIZZLE_EXCEPTION
public static SwizzleArgumentType swizzle()
public static EnumSet<Direction.Axis> getSwizzle(com.mojang.brigadier.context.CommandContext<ServerCommandSource> commandContext, String string)
public EnumSet<Direction.Axis> parse(com.mojang.brigadier.StringReader stringReader)
parse
in interface com.mojang.brigadier.arguments.ArgumentType<EnumSet<Direction.Axis>>
public Collection<String> getExamples()
getExamples
in interface com.mojang.brigadier.arguments.ArgumentType<EnumSet<Direction.Axis>>