Class LocalCoordinates
java.lang.Object
net.minecraft.commands.arguments.coordinates.LocalCoordinates
- All Implemented Interfaces:
Coordinates
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final double
private final double
static final char
private final double
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
getPosition
(CommandSourceStack pSource) getRotation
(CommandSourceStack pSource) int
hashCode()
boolean
boolean
boolean
static LocalCoordinates
parse
(com.mojang.brigadier.StringReader pReader) private static double
readDouble
(com.mojang.brigadier.StringReader pReader, int pStart) Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.minecraft.commands.arguments.coordinates.Coordinates
getBlockPos
-
Field Details
-
PREFIX_LOCAL_COORDINATE
public static final char PREFIX_LOCAL_COORDINATE- See Also:
-
left
private final double left -
up
private final double up -
forwards
private final double forwards
-
-
Constructor Details
-
LocalCoordinates
public LocalCoordinates(double pLeft, double pUp, double pForwards)
-
-
Method Details
-
getPosition
- Specified by:
getPosition
in interfaceCoordinates
-
getRotation
- Specified by:
getRotation
in interfaceCoordinates
-
isXRelative
public boolean isXRelative()- Specified by:
isXRelative
in interfaceCoordinates
-
isYRelative
public boolean isYRelative()- Specified by:
isYRelative
in interfaceCoordinates
-
isZRelative
public boolean isZRelative()- Specified by:
isZRelative
in interfaceCoordinates
-
parse
public static LocalCoordinates parse(com.mojang.brigadier.StringReader pReader) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
readDouble
private static double readDouble(com.mojang.brigadier.StringReader pReader, int pStart) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
equals
-
hashCode
public int hashCode()
-