Class WorldCoordinates
java.lang.Object
net.minecraft.commands.arguments.coordinates.WorldCoordinates
- All Implemented Interfaces:
Coordinates
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final WorldCoordinateprivate final WorldCoordinateprivate final WorldCoordinate -
Constructor Summary
ConstructorsConstructorDescription -
Method Summary
Modifier and TypeMethodDescriptionstatic WorldCoordinatesabsolute(double pX, double pY, double pZ) static WorldCoordinatesbooleangetPosition(CommandSourceStack pSource) getRotation(CommandSourceStack pSource) inthashCode()booleanbooleanbooleanstatic WorldCoordinatesparseDouble(com.mojang.brigadier.StringReader pReader, boolean pCenterCorrect) static WorldCoordinatesparseInt(com.mojang.brigadier.StringReader pReader) Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.commands.arguments.coordinates.Coordinates
getBlockPos
-
Field Details
-
x
-
y
-
z
-
-
Constructor Details
-
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
-
equals
-
parseInt
public static WorldCoordinates parseInt(com.mojang.brigadier.StringReader pReader) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
parseDouble
public static WorldCoordinates parseDouble(com.mojang.brigadier.StringReader pReader, boolean pCenterCorrect) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
absolute
-
absolute
-
hashCode
public int hashCode()
-