public class LocalLocationArgument extends java.lang.Object implements ILocationArgument
Modifier and Type | Field and Description |
---|---|
private double |
forwards |
private double |
left |
private double |
up |
Constructor and Description |
---|
LocalLocationArgument(double leftIn,
double upIn,
double forwardsIn) |
Modifier and Type | Method and Description |
---|---|
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 LocalLocationArgument |
parse(com.mojang.brigadier.StringReader reader) |
private static double |
parseCoord(com.mojang.brigadier.StringReader reader,
int start) |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
getBlockPos
private final double left
private final double up
private final double forwards
public LocalLocationArgument(double leftIn, double upIn, double forwardsIn)
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 static LocalLocationArgument parse(com.mojang.brigadier.StringReader reader) throws com.mojang.brigadier.exceptions.CommandSyntaxException
com.mojang.brigadier.exceptions.CommandSyntaxException
private static double parseCoord(com.mojang.brigadier.StringReader reader, int start) throws com.mojang.brigadier.exceptions.CommandSyntaxException
com.mojang.brigadier.exceptions.CommandSyntaxException
public boolean equals(java.lang.Object p_equals_1_)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object