Class WorldCoordinate
java.lang.Object
net.minecraft.commands.arguments.coordinates.WorldCoordinate
-
Field Summary
Modifier and TypeFieldDescriptionstatic com.mojang.brigadier.exceptions.SimpleCommandExceptionType
static com.mojang.brigadier.exceptions.SimpleCommandExceptionType
private static char
private boolean
private double
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
double
get(double p_120868_)
int
hashCode()
boolean
static boolean
isRelative(com.mojang.brigadier.StringReader p_120875_)
static WorldCoordinate
parseDouble(com.mojang.brigadier.StringReader p_120872_, boolean p_120873_)
static WorldCoordinate
parseInt(com.mojang.brigadier.StringReader p_120870_)
-
Field Details
-
PREFIX_RELATIVE
private static final char PREFIX_RELATIVE- See Also:
- Constant Field Values
-
ERROR_EXPECTED_DOUBLE
public static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType ERROR_EXPECTED_DOUBLE -
ERROR_EXPECTED_INT
public static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType ERROR_EXPECTED_INT -
relative
private final boolean relative -
value
private final double value
-
-
Constructor Details
-
WorldCoordinate
public WorldCoordinate(boolean p_120864_, double p_120865_)
-
-
Method Details
-
get
public double get(double p_120868_) -
parseDouble
public static WorldCoordinate parseDouble(com.mojang.brigadier.StringReader p_120872_, boolean p_120873_) throws com.mojang.brigadier.exceptions.CommandSyntaxException- Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
parseInt
public static WorldCoordinate parseInt(com.mojang.brigadier.StringReader p_120870_) throws com.mojang.brigadier.exceptions.CommandSyntaxException- Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
isRelative
public static boolean isRelative(com.mojang.brigadier.StringReader p_120875_) -
equals
-
hashCode
public int hashCode() -
isRelative
public boolean isRelative()
-