程序包 cn.nukkit.level
类 Position
java.lang.Object
cn.nukkit.math.Vector3
cn.nukkit.positiontracking.NamedPosition
cn.nukkit.level.Position
- 所有已实现的接口:
Cloneable
- 直接已知子类:
Block
,BlockEntity
,FakeBlockMenu
,Location
@PowerNukkitDifference(since="1.4.0.0-PN",
info="Overrides NamedPosition instead of Vector3")
public class Position
extends NamedPosition
- 作者:
- MagicDroidX (Nukkit Project)
-
字段概要
-
构造器概要
-
方法概要
修饰符和类型方法说明abs()
add
(double x) add
(double x, double y) add
(double x, double y, double z) ceil()
clone()
divide
(double number) floor()
static Position
fromObject
(Vector3 pos) static Position
fromObject
(Vector3 pos, Level level) getChunk()
getLevel()
getLevelBlockAtLayer
(int layer) getLevelBlockState
(int layer) final <T extends BlockEntity>
TgetTypedBlockEntity
(Class<T> type) final Level
boolean
isValid()
multiply
(double number) round()
setComponents
(double x, double y, double z) setComponents
(Vector3 pos) boolean
boolean
setWeak()
subtract()
subtract
(double x) subtract
(double x, double y) subtract
(double x, double y, double z) toString()
从类继承的方法 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
-
字段详细资料
-
level
-
-
构造器详细资料
-
Position
public Position() -
Position
public Position(double x) -
Position
public Position(double x, double y) -
Position
public Position(double x, double y, double z) -
Position
-
-
方法详细资料
-
fromObject
-
fromObject
-
getLevel
-
setLevel
-
isValid
public boolean isValid() -
setStrong
public boolean setStrong() -
setWeak
public boolean setWeak() -
getSide
-
getSide
-
toString
-
setComponents
- 覆盖:
setComponents
在类中Vector3
-
setComponents
- 覆盖:
setComponents
在类中Vector3
-
getLevelBlockEntity
-
getTypedBlockEntity
@PowerNukkitOnly @Since("1.4.0.0-PN") @Nullable public final <T extends BlockEntity> T getTypedBlockEntity(@Nonnull Class<T> type) -
getLevelBlockState
-
getLevelBlockState
-
getLevelBlock
-
getLevelBlockAround
-
getLevelBlockAtLayer
-
getLocation
-
getLevelName
- 指定者:
getLevelName
在类中NamedPosition
-
getValidLevel
-
add
-
add
-
add
-
add
-
subtract
-
subtract
-
subtract
-
subtract
-
subtract
-
multiply
-
divide
-
ceil
-
floor
-
round
-
abs
-
clone
- 覆盖:
clone
在类中NamedPosition
-
getChunk
-