Class LocalCoordinates
java.lang.Object
net.minecraft.commands.arguments.coordinates.LocalCoordinates
- All Implemented Interfaces:
Coordinates
-
Field Summary
Modifier and TypeFieldDescriptionprivate double
private double
static char
private double
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
getPosition(CommandSourceStack p_119912_)
getRotation(CommandSourceStack p_119915_)
int
hashCode()
boolean
boolean
boolean
static LocalCoordinates
parse(com.mojang.brigadier.StringReader p_119907_)
private static double
readDouble(com.mojang.brigadier.StringReader p_119909_, int p_119910_)
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:
- Constant Field Values
-
left
private final double left -
up
private final double up -
forwards
private final double forwards
-
-
Constructor Details
-
LocalCoordinates
public LocalCoordinates(double p_119902_, double p_119903_, double p_119904_)
-
-
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 p_119907_) throws com.mojang.brigadier.exceptions.CommandSyntaxException- Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
readDouble
private static double readDouble(com.mojang.brigadier.StringReader p_119909_, int p_119910_) throws com.mojang.brigadier.exceptions.CommandSyntaxException- Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
equals
-
hashCode
public int hashCode()
-