public class CoordinateArgument extends Object
Modifier and Type | Field and Description |
---|---|
static com.mojang.brigadier.exceptions.SimpleCommandExceptionType |
MISSING_BLOCK_POSITION |
static com.mojang.brigadier.exceptions.SimpleCommandExceptionType |
MISSING_COORDINATE |
private boolean |
relative |
private double |
value |
Constructor and Description |
---|
CoordinateArgument(boolean relative,
double value) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
int |
hashCode() |
boolean |
isRelative() |
static boolean |
isRelative(com.mojang.brigadier.StringReader reader) |
static CoordinateArgument |
parse(com.mojang.brigadier.StringReader reader) |
static CoordinateArgument |
parse(com.mojang.brigadier.StringReader reader,
boolean centerIntegers) |
double |
toAbsoluteCoordinate(double offset) |
public static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType MISSING_COORDINATE
public static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType MISSING_BLOCK_POSITION
private final boolean relative
private final double value
public double toAbsoluteCoordinate(double offset)
public static CoordinateArgument parse(com.mojang.brigadier.StringReader reader, boolean centerIntegers) throws com.mojang.brigadier.exceptions.CommandSyntaxException
com.mojang.brigadier.exceptions.CommandSyntaxException
public static CoordinateArgument parse(com.mojang.brigadier.StringReader reader) throws com.mojang.brigadier.exceptions.CommandSyntaxException
com.mojang.brigadier.exceptions.CommandSyntaxException
public static boolean isRelative(com.mojang.brigadier.StringReader reader)
public boolean isRelative()