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 booleanequals(Object o)inthashCode()booleanisXRelative()booleanisYRelative()booleanisZRelative()static LookingPosArgumentparse(com.mojang.brigadier.StringReader reader)private static doublereadCoordinate(com.mojang.brigadier.StringReader reader, int startingCursorPos)Vec3dtoAbsolutePos(ServerCommandSource source)Vec2ftoAbsoluteRotation(ServerCommandSource source)Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods 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:
toAbsolutePosin interfacePosArgument
-
toAbsoluteRotation
- Specified by:
toAbsoluteRotationin interfacePosArgument
-
isXRelative
public boolean isXRelative()- Specified by:
isXRelativein interfacePosArgument
-
isYRelative
public boolean isYRelative()- Specified by:
isYRelativein interfacePosArgument
-
isZRelative
public boolean isZRelative()- Specified by:
isZRelativein 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()
-