TagPlayerPosition

23 个坐标 / 速度 / 朝向 tag

基本信息

属性 值
路径 com.github.lunatrius.ingameinfo.tag.TagPlayerPosition
行数 254
分类 playerposition
注册 tag 数 23

全部 23 个 tag

区块(4)

tag 名 内部类
chunkx ChunkX
chunkz ChunkZ
chunkoffsetx ChunkOffsetX
chunkoffsetz ChunkOffsetZ

区块内偏移量 = 全局坐标 mod 16。

坐标(8)

tag 名 内部类 说明
x X 全局 X
y Y 眼高 Y
yfeet YFeet 脚部 Y
z Z 全局 Z
xi Xi 区块内 X
yi Yi 区块内 Y
yfeeti YFeeti 区块内脚部 Y
zi Zi 区块内 Z

⚠️ y 与 yfeet 相差眼高(默认 1.62)。 注意 Tag 基类的静态字段 playerPosition 缓存的是某一个 Y, 两个 tag 各自计算时以哪个为准需看各自实现。

速度(5)

tag 名 内部类
speed Speed
speedx SpeedX
speedy SpeedY
speedz SpeedZ
speedxz SpeedXZ

SpeedXZ 是水平速度合成(sqrt(x² + z²)), 取自基类共享的 playerMotion(Vector3f)。

朝向(6)

tag 名 内部类 精度
direction Direction 完整方向名
roughdirection RoughDirection 粗略(8 向或 4 向)
finedirection FineDirection 精细
abrroughdirection AbbreviatedRoughDirection 粗略 + 缩写
abrfinedirection AbbreviatedFineDirection 精细 + 缩写
directionhud DirectionHud 特殊:HUD 样式(箭字符)

⚠️ 四个朝向 tag 用 abr 前缀(如 abrroughdirection), 与 abbreviated 的完整拼写不一致 —— 是源码里的实际字符串。

directionhud 名字虽带 hud,但它是一个朝向 tag, 与本 mod 的 HUD 无关,别与 Ticker 混淆。

相关

  • Tag - playerPosition / playerMotion 的定义处
  • TagPlayerGeneral - 同维度的其他玩家状态