Class WorldCoordinates
java.lang.Object
net.minecraft.commands.arguments.coordinates.WorldCoordinates
- All Implemented Interfaces:
Coordinates
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final WorldCoordinate
private final WorldCoordinate
private final WorldCoordinate
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic WorldCoordinates
absolute
(double x, double y, double z) static WorldCoordinates
static WorldCoordinates
current()
boolean
getPosition
(CommandSourceStack source) getRotation
(CommandSourceStack source) int
hashCode()
boolean
boolean
boolean
static WorldCoordinates
parseDouble
(com.mojang.brigadier.StringReader reader, boolean centerCorrect) static WorldCoordinates
parseInt
(com.mojang.brigadier.StringReader reader) 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
-
x
-
y
-
z
-
-
Constructor Details
-
WorldCoordinates
-
-
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
-
equals
-
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
-
hashCode
public int hashCode()
-