public class LookingPosArgument extends Object implements PosArgument
Modifier and Type | Field and Description |
---|---|
private double |
x |
private double |
y |
private double |
z |
Constructor and Description |
---|
LookingPosArgument(double x,
double y,
double z) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
int |
hashCode() |
boolean |
isXRelative() |
boolean |
isYRelative() |
boolean |
isZRelative() |
static LookingPosArgument |
parse(com.mojang.brigadier.StringReader reader) |
private static double |
readCoordinate(com.mojang.brigadier.StringReader reader,
int startingCursorPos) |
Vec3d |
toAbsolutePos(ServerCommandSource source) |
Vec2f |
toAbsoluteRotation(ServerCommandSource source) |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
toAbsoluteBlockPos
public Vec3d toAbsolutePos(ServerCommandSource source)
toAbsolutePos
in interface PosArgument
public Vec2f toAbsoluteRotation(ServerCommandSource source)
toAbsoluteRotation
in interface PosArgument
public boolean isXRelative()
isXRelative
in interface PosArgument
public boolean isYRelative()
isYRelative
in interface PosArgument
public boolean isZRelative()
isZRelative
in interface PosArgument
public static LookingPosArgument parse(com.mojang.brigadier.StringReader reader) throws com.mojang.brigadier.exceptions.CommandSyntaxException
com.mojang.brigadier.exceptions.CommandSyntaxException
private static double readCoordinate(com.mojang.brigadier.StringReader reader, int startingCursorPos) throws com.mojang.brigadier.exceptions.CommandSyntaxException
com.mojang.brigadier.exceptions.CommandSyntaxException