7月31日同步更新

This commit is contained in:
MCNeteaseDevs
2025-07-31 17:53:14 +08:00
parent f5c6bdba2e
commit cf061270d3
799 changed files with 27437 additions and 494 deletions

View File

@@ -0,0 +1,15 @@
---
front:
hard: 进阶
time: 3分钟
---
# Title与ActionBar的显示
>
> *主观上在1.12.2后我们发送ActionBar和Title.*
> *Title只需要通过Player中的sendTitle方法.*
> *而ActionBar发送方式则是 Player 对象封装了内部对象 spigot(),其中里面则有静态方法 sendMessage 通过传入ChatMessageType枚举参数便可以发送ActionBar*
> *用Spigot的sendMessage得将内容转换成TextComponent*
但是Bukkit就没有能够直接发送ActionBar的发送方法.
所以我们就要通过NMS底层去自行封装一个方法.