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, waittoAbsoluteBlockPospublic Vec3d toAbsolutePos(ServerCommandSource source)
toAbsolutePos in interface PosArgumentpublic Vec2f toAbsoluteRotation(ServerCommandSource source)
toAbsoluteRotation in interface PosArgumentpublic boolean isXRelative()
isXRelative in interface PosArgumentpublic boolean isYRelative()
isYRelative in interface PosArgumentpublic boolean isZRelative()
isZRelative in interface PosArgumentpublic static LookingPosArgument parse(com.mojang.brigadier.StringReader reader) throws com.mojang.brigadier.exceptions.CommandSyntaxException
com.mojang.brigadier.exceptions.CommandSyntaxExceptionprivate static double readCoordinate(com.mojang.brigadier.StringReader reader,
int startingCursorPos)
throws com.mojang.brigadier.exceptions.CommandSyntaxException
com.mojang.brigadier.exceptions.CommandSyntaxException