程序包 cn.nukkit.level
类 Location
java.lang.Object
cn.nukkit.math.Vector3
cn.nukkit.positiontracking.NamedPosition
cn.nukkit.level.Position
cn.nukkit.level.Location
- 所有已实现的接口:
Cloneable
- 直接已知子类:
Entity
- 作者:
- MagicDroidX (Nukkit Project)
-
字段概要
-
构造器概要
构造器说明Location()
Location
(double x) Location
(double x, double y) Location
(double x, double y, double z) Location
(double x, double y, double z, double yaw) Location
(double x, double y, double z, double yaw, double pitch) Location
(double x, double y, double z, double yaw, double pitch, double headYaw) -
方法概要
修饰符和类型方法说明abs()
add
(double x) add
(double x, double y) add
(double x, double y, double z) ceil()
clone()
divide
(double number) floor()
static Location
fromObject
(Vector3 pos) static Location
fromObject
(Vector3 pos, Level level) static Location
fromObject
(Vector3 pos, Level level, double yaw) static Location
fromObject
(Vector3 pos, Level level, double yaw, double pitch) static Location
fromObject
(Vector3 pos, Level level, double yaw, double pitch, double headYaw) double
double
getPitch()
double
getYaw()
multiply
(double number) round()
setPitch
(double pitch) setYaw
(double yaw) subtract()
subtract
(double x) subtract
(double x, double y) subtract
(double x, double y, double z) toString()
从类继承的方法 cn.nukkit.level.Position
getChunk, getLevel, getLevelBlock, getLevelBlockAround, getLevelBlockAtLayer, getLevelBlockEntity, getLevelBlockState, getLevelBlockState, getLevelName, getSide, getSide, getTypedBlockEntity, getValidLevel, isValid, setComponents, setComponents, setLevel, setStrong, setWeak
从类继承的方法 cn.nukkit.positiontracking.NamedPosition
matchesNamedPosition
从类继承的方法 cn.nukkit.math.Vector3
asBlockVector3, asVector3f, cross, distance, distance, distanceManhattan, distanceSquared, distanceSquared, dot, down, down, east, east, equals, getAxis, getChunkSectionY, getChunkVector, getChunkX, getChunkZ, getFloorX, getFloorY, getFloorZ, getForward, getIntermediateWithXValue, getIntermediateWithYValue, getIntermediateWithZValue, getRight, getSideVec, getSouth, getUp, getWest, getX, getY, getZ, hashCode, length, lengthSquared, maxPlainDistance, maxPlainDistance, maxPlainDistance, maxPlainDistance, maxPlainDistance, normalize, north, north, rawHashCode, setComponentsAdding, setComponentsAdding, setX, setY, setZ, south, south, up, up, west, west
-
字段详细资料
-
yaw
public double yaw -
pitch
public double pitch -
headYaw
-
-
构造器详细资料
-
Location
public Location() -
Location
public Location(double x) -
Location
public Location(double x, double y) -
Location
public Location(double x, double y, double z) -
Location
-
Location
public Location(double x, double y, double z, double yaw) -
Location
public Location(double x, double y, double z, double yaw, double pitch) -
Location
-
Location
@Since("FUTURE") public Location(double x, double y, double z, double yaw, double pitch, double headYaw) -
Location
-
-
方法详细资料
-
fromObject
-
fromObject
-
fromObject
-
fromObject
-
fromObject
-
getYaw
public double getYaw() -
getPitch
public double getPitch() -
getHeadYaw
-
setYaw
-
setPitch
-
toString
-
getLocation
- 覆盖:
getLocation
在类中Position
-
add
-
add
-
add
-
add
-
subtract
-
subtract
-
subtract
-
subtract
-
subtract
-
multiply
-
divide
-
ceil
-
floor
-
round
-
abs
-
getDirectionVector
-
clone
-