public class LocationPart
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static com.mojang.brigadier.exceptions.SimpleCommandExceptionType |
EXPECTED_DOUBLE |
static com.mojang.brigadier.exceptions.SimpleCommandExceptionType |
EXPECTED_INT |
private boolean |
relative |
private double |
value |
Constructor and Description |
---|
LocationPart(boolean relativeIn,
double valueIn) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object p_equals_1_) |
double |
get(double coord) |
int |
hashCode() |
boolean |
isRelative() |
private static boolean |
isRelative(com.mojang.brigadier.StringReader reader) |
static LocationPart |
parseDouble(com.mojang.brigadier.StringReader reader,
boolean centerIntegers) |
static LocationPart |
parseInt(com.mojang.brigadier.StringReader reader) |
public static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType EXPECTED_DOUBLE
public static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType EXPECTED_INT
private final boolean relative
private final double value
public double get(double coord)
public static LocationPart parseDouble(com.mojang.brigadier.StringReader reader, boolean centerIntegers) throws com.mojang.brigadier.exceptions.CommandSyntaxException
com.mojang.brigadier.exceptions.CommandSyntaxException
public static LocationPart parseInt(com.mojang.brigadier.StringReader reader) throws com.mojang.brigadier.exceptions.CommandSyntaxException
com.mojang.brigadier.exceptions.CommandSyntaxException
private static boolean isRelative(com.mojang.brigadier.StringReader reader)
public boolean equals(java.lang.Object p_equals_1_)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public boolean isRelative()