public final class Location extends Object
| Modifier and Type | Method and Description |
|---|---|
Location |
add(double x,
double y,
double z) |
Location |
add(float x,
float y,
float z) |
static Location |
from(float x,
float y,
float z,
float yaw,
float pitch,
Level level) |
static Location |
from(float x,
float y,
float z,
Level level) |
static Location |
from(Level level) |
static Location |
from(com.nukkitx.math.vector.Vector3f position,
float yaw,
float pitch,
Level level) |
static Location |
from(com.nukkitx.math.vector.Vector3f position,
Level level) |
static Location |
from(com.nukkitx.math.vector.Vector3i position,
Level level) |
Block |
getBlock() |
Chunk |
getChunk() |
int |
getChunkX() |
int |
getChunkZ() |
int |
getFloorX() |
int |
getFloorY() |
int |
getFloorZ() |
Level |
getLevel() |
float |
getPitch() |
com.nukkitx.math.vector.Vector3f |
getPosition() |
float |
getX() |
float |
getY() |
float |
getYaw() |
float |
getZ() |
public static Location from(com.nukkitx.math.vector.Vector3f position, float yaw, float pitch, Level level)
public float getX()
public float getY()
public float getZ()
public com.nukkitx.math.vector.Vector3f getPosition()
public float getYaw()
public float getPitch()
public Level getLevel()
public Chunk getChunk()
public Block getBlock()
public Location add(double x, double y, double z)
public Location add(float x, float y, float z)
public int getFloorX()
public int getFloorY()
public int getFloorZ()
public int getChunkX()
public int getChunkZ()
Copyright © 2020. All rights reserved.