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, waitgetBlockPosprivate 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 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 boolean equals(java.lang.Object p_equals_1_)
equals in class java.lang.Objectpublic static LocationInput parseInt(com.mojang.brigadier.StringReader reader) throws com.mojang.brigadier.exceptions.CommandSyntaxException
com.mojang.brigadier.exceptions.CommandSyntaxExceptionpublic static LocationInput parseDouble(com.mojang.brigadier.StringReader reader, boolean centerIntegers) throws com.mojang.brigadier.exceptions.CommandSyntaxException
com.mojang.brigadier.exceptions.CommandSyntaxExceptionpublic static LocationInput current()
public int hashCode()
hashCode in class java.lang.Object