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, waittoAbsoluteBlockPosprivate 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 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 DefaultPosArgument parse(com.mojang.brigadier.StringReader reader) throws com.mojang.brigadier.exceptions.CommandSyntaxException
com.mojang.brigadier.exceptions.CommandSyntaxExceptionpublic static DefaultPosArgument parse(com.mojang.brigadier.StringReader reader, boolean centerIntegers) throws com.mojang.brigadier.exceptions.CommandSyntaxException
com.mojang.brigadier.exceptions.CommandSyntaxExceptionpublic static DefaultPosArgument zero()