public class DefaultPosArgument extends Object implements PosArgument
Modifier and Type | Field and Description |
---|---|
private CoordinateArgument |
x |
private CoordinateArgument |
y |
private CoordinateArgument |
z |
Constructor and Description |
---|
DefaultPosArgument(CoordinateArgument x,
CoordinateArgument y,
CoordinateArgument z) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
int |
hashCode() |
boolean |
isXRelative() |
boolean |
isYRelative() |
boolean |
isZRelative() |
static DefaultPosArgument |
parse(com.mojang.brigadier.StringReader reader) |
static DefaultPosArgument |
parse(com.mojang.brigadier.StringReader reader,
boolean centerIntegers) |
Vec3d |
toAbsolutePos(ServerCommandSource source) |
Vec2f |
toAbsoluteRotation(ServerCommandSource source) |
static DefaultPosArgument |
zero() |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
toAbsoluteBlockPos
private final CoordinateArgument x
private final CoordinateArgument y
private final CoordinateArgument z
public DefaultPosArgument(CoordinateArgument x, CoordinateArgument y, CoordinateArgument z)
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 DefaultPosArgument parse(com.mojang.brigadier.StringReader reader) throws com.mojang.brigadier.exceptions.CommandSyntaxException
com.mojang.brigadier.exceptions.CommandSyntaxException
public static DefaultPosArgument parse(com.mojang.brigadier.StringReader reader, boolean centerIntegers) throws com.mojang.brigadier.exceptions.CommandSyntaxException
com.mojang.brigadier.exceptions.CommandSyntaxException
public static DefaultPosArgument zero()