Package net.minecraft.command.argument
Class LookingPosArgument
java.lang.Object
net.minecraft.command.argument.LookingPosArgument
- All Implemented Interfaces:
PosArgument
public class LookingPosArgument extends Object implements PosArgument
-
Field Summary
-
Constructor Summary
Constructors Constructor Description LookingPosArgument(double x, double y, double z)
-
Method Summary
Modifier and Type Method Description boolean
equals(Object o)
int
hashCode()
boolean
isXRelative()
boolean
isYRelative()
boolean
isZRelative()
static LookingPosArgument
parse(com.mojang.brigadier.StringReader reader)
private static double
readCoordinate(com.mojang.brigadier.StringReader reader, int startingCursorPos)
Vec3d
toAbsolutePos(ServerCommandSource source)
Vec2f
toAbsoluteRotation(ServerCommandSource source)
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.minecraft.command.argument.PosArgument
toAbsoluteBlockPos
-
Field Details
-
x
private final double x -
y
private final double y -
z
private final double z
-
-
Constructor Details
-
LookingPosArgument
public LookingPosArgument(double x, double y, double z)
-
-
Method Details
-
toAbsolutePos
- Specified by:
toAbsolutePos
in interfacePosArgument
-
toAbsoluteRotation
- Specified by:
toAbsoluteRotation
in interfacePosArgument
-
isXRelative
public boolean isXRelative()- Specified by:
isXRelative
in interfacePosArgument
-
isYRelative
public boolean isYRelative()- Specified by:
isYRelative
in interfacePosArgument
-
isZRelative
public boolean isZRelative()- Specified by:
isZRelative
in interfacePosArgument
-
parse
public static LookingPosArgument parse(com.mojang.brigadier.StringReader reader) throws com.mojang.brigadier.exceptions.CommandSyntaxException- Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
readCoordinate
private static double readCoordinate(com.mojang.brigadier.StringReader reader, int startingCursorPos) throws com.mojang.brigadier.exceptions.CommandSyntaxException- Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
equals
-
hashCode
public int hashCode()
-