Class WorldCoordinates
java.lang.Object
com.zenith.command.brigadier.WorldCoordinates
- All Implemented Interfaces:
Coordinates
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic WorldCoordinatesabsolute(double x, double y, double z) static WorldCoordinatesabsolute(org.cloudburstmc.math.vector.Vector2d vec2) static WorldCoordinatescurrent()org.cloudburstmc.math.vector.Vector3dgetPosition(CommandContext source) org.cloudburstmc.math.vector.Vector2dgetRotation(CommandContext source) booleanbooleanbooleanstatic WorldCoordinatesparseDouble(com.mojang.brigadier.StringReader reader, boolean centerCorrect) static WorldCoordinatesparseInt(com.mojang.brigadier.StringReader reader) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.zenith.command.brigadier.Coordinates
getBlockPos
-
Constructor Details
-
WorldCoordinates
public WorldCoordinates()
-
-
Method Details
-
getPosition
- Specified by:
getPositionin interfaceCoordinates
-
getRotation
- Specified by:
getRotationin interfaceCoordinates
-
isXRelative
public boolean isXRelative()- Specified by:
isXRelativein interfaceCoordinates
-
isYRelative
public boolean isYRelative()- Specified by:
isYRelativein interfaceCoordinates
-
isZRelative
public boolean isZRelative()- Specified by:
isZRelativein interfaceCoordinates
-
parseInt
public static WorldCoordinates parseInt(com.mojang.brigadier.StringReader reader) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
parseDouble
public static WorldCoordinates parseDouble(com.mojang.brigadier.StringReader reader, boolean centerCorrect) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
absolute
-
absolute
-
current
-