Package net.minecraft.command.arguments
Class LocationPart
java.lang.Object
net.minecraft.command.arguments.LocationPart
-
Field Summary
Modifier and TypeFieldDescriptionstatic final com.mojang.brigadier.exceptions.SimpleCommandExceptionType
static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType
private final boolean
private final double
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
double
get
(double p_197306_1_) int
hashCode()
boolean
static boolean
isRelative
(com.mojang.brigadier.StringReader p_197309_0_) static LocationPart
parseDouble
(com.mojang.brigadier.StringReader p_197308_0_, boolean p_197308_1_) static LocationPart
parseInt
(com.mojang.brigadier.StringReader p_197307_0_)
-
Field Details
-
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
-
LocationPart
public LocationPart(boolean p_i47963_1_, double p_i47963_2_)
-
-
Method Details
-
get
public double get(double p_197306_1_) -
parseDouble
public static LocationPart parseDouble(com.mojang.brigadier.StringReader p_197308_0_, boolean p_197308_1_) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
parseInt
public static LocationPart parseInt(com.mojang.brigadier.StringReader p_197307_0_) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
isRelative
public static boolean isRelative(com.mojang.brigadier.StringReader p_197309_0_) -
equals
-
hashCode
public int hashCode() -
isRelative
public boolean isRelative()
-