Class Location
java.lang.Object
fr.hytale.loader.api.Location
Represents a 3D location in a Hytale world.
- Since:
- 1.0.4
- Version:
- 1.0.4
- Author:
- HytaleLoader
-
Constructor Summary
ConstructorsConstructorDescriptionLocation(com.hypixel.hytale.server.core.universe.world.World nativeWorld, double x, double y, double z) Constructs from native world.Location(com.hypixel.hytale.server.core.universe.world.World nativeWorld, double x, double y, double z, float yaw, float pitch) Constructs from native world with rotation.Constructs a new Location.Constructs a new Location with rotation. -
Method Summary
Modifier and TypeMethodDescriptionadd(double x, double y, double z) clone()doubledoubledistanceSquared(Location other) booleanintintintfloatgetPitch()getWorld()doublegetX()doublegetY()floatgetYaw()doublegetZ()inthashCode()voidsetPitch(float pitch) voidvoidsetX(double x) voidsetY(double y) voidsetYaw(float yaw) voidsetZ(double z) subtract(double x, double y, double z) toString()
-
Constructor Details
-
Location
Constructs a new Location.- Parameters:
world- the worldx- the X coordinatey- the Y coordinatez- the Z coordinate
-
Location
Constructs a new Location with rotation.- Parameters:
world- the worldx- the X coordinatey- the Y coordinatez- the Z coordinateyaw- the yaw rotationpitch- the pitch rotation
-
Location
public Location(com.hypixel.hytale.server.core.universe.world.World nativeWorld, double x, double y, double z) Constructs from native world.- Parameters:
nativeWorld- the native worldx- the X coordinatey- the Y coordinatez- the Z coordinate
-
Location
public Location(com.hypixel.hytale.server.core.universe.world.World nativeWorld, double x, double y, double z, float yaw, float pitch) Constructs from native world with rotation.- Parameters:
nativeWorld- the native worldx- the X coordinatey- the Y coordinatez- the Z coordinateyaw- the yaw rotationpitch- the pitch rotation
-
-
Method Details
-
getX
public double getX() -
setX
public void setX(double x) -
getY
public double getY() -
setY
public void setY(double y) -
getZ
public double getZ() -
setZ
public void setZ(double z) -
getYaw
public float getYaw() -
setYaw
public void setYaw(float yaw) -
getPitch
public float getPitch() -
setPitch
public void setPitch(float pitch) -
getWorld
-
setWorld
-
getBlockX
public int getBlockX() -
getBlockY
public int getBlockY() -
getBlockZ
public int getBlockZ() -
add
-
subtract
-
distance
-
distanceSquared
-
clone
-
toString
-
equals
-
hashCode
-