public class LocationInput extends java.lang.Object implements ILocationArgument
Modifier and Type | Field and Description |
---|---|
private LocationPart |
x |
private LocationPart |
y |
private LocationPart |
z |
Constructor and Description |
---|
LocationInput(LocationPart x,
LocationPart y,
LocationPart z) |
Modifier and Type | Method and Description |
---|---|
static LocationInput |
current() |
boolean |
equals(java.lang.Object p_equals_1_) |
Vec3d |
getPosition(CommandSource source) |
Vec2f |
getRotation(CommandSource source) |
int |
hashCode() |
boolean |
isXRelative() |
boolean |
isYRelative() |
boolean |
isZRelative() |
static LocationInput |
parseDouble(com.mojang.brigadier.StringReader reader,
boolean centerIntegers) |
static LocationInput |
parseInt(com.mojang.brigadier.StringReader reader) |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
getBlockPos
private final LocationPart x
private final LocationPart y
private final LocationPart z
public LocationInput(LocationPart x, LocationPart y, LocationPart z)
public Vec3d getPosition(CommandSource source)
getPosition
in interface ILocationArgument
public Vec2f getRotation(CommandSource source)
getRotation
in interface ILocationArgument
public boolean isXRelative()
isXRelative
in interface ILocationArgument
public boolean isYRelative()
isYRelative
in interface ILocationArgument
public boolean isZRelative()
isZRelative
in interface ILocationArgument
public boolean equals(java.lang.Object p_equals_1_)
equals
in class java.lang.Object
public static LocationInput parseInt(com.mojang.brigadier.StringReader reader) throws com.mojang.brigadier.exceptions.CommandSyntaxException
com.mojang.brigadier.exceptions.CommandSyntaxException
public static LocationInput parseDouble(com.mojang.brigadier.StringReader reader, boolean centerIntegers) throws com.mojang.brigadier.exceptions.CommandSyntaxException
com.mojang.brigadier.exceptions.CommandSyntaxException
public static LocationInput current()
public int hashCode()
hashCode
in class java.lang.Object