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, waitgetBlockPosprivate 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 ILocationArgumentpublic Vec2f getRotation(CommandSource source)
getRotation in interface ILocationArgumentpublic boolean isXRelative()
isXRelative in interface ILocationArgumentpublic boolean isYRelative()
isYRelative in interface ILocationArgumentpublic boolean isZRelative()
isZRelative in interface ILocationArgumentpublic static LocalLocationArgument parse(com.mojang.brigadier.StringReader reader) throws com.mojang.brigadier.exceptions.CommandSyntaxException
com.mojang.brigadier.exceptions.CommandSyntaxExceptionprivate static double parseCoord(com.mojang.brigadier.StringReader reader,
int start)
throws com.mojang.brigadier.exceptions.CommandSyntaxException
com.mojang.brigadier.exceptions.CommandSyntaxExceptionpublic boolean equals(java.lang.Object p_equals_1_)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Object