TabooLib / taboolib

Powerful framework for creating multi-platform Minecraft plugin
https://tabooproject.org
MIT License
307 stars 101 forks source link

[6.2.0][dev] 恢复 bukkit-navigation 并进行升级与修复 #455

Closed Micalhl closed 2 months ago

Micalhl commented 2 months ago

恢复 bukkit-navigation 模块,升级至 1.21 并对其所存在的问题进行修复,主要表现为:

已在以下环境中通过测试:

测试代码如下:

@SubscribeEvent
private fun e(e: PlayerInteractEvent) {
    e.player.sendMessage(
        NMS.instance.getBlockHeight(e.clickedBlock ?: return).toString(),
        kotlin.runCatching { NMS.instance.isDoorOpened(e.clickedBlock ?: return).toString() }.getOrThrow(),
        NMS.instance.getBoundingBox(e.clickedBlock ?: return).toString(),
        NMS.instance.getBoundingBox(e.player).toString()
    )
}
Bkm016 commented 2 months ago

你真是我爹