新增hasPlayerNbt接口

This commit is contained in:
子沐呀
2024-07-23 08:45:43 +08:00
Unverified
parent f427f2f5e1
commit a5eb2e855a
3 changed files with 28 additions and 11 deletions
+7 -1
View File
@@ -151,7 +151,7 @@ declare class Minecraft {
/** 要设置的NBT数据 */
nbt: NbtCompound,
/** 要覆盖的NBT标签 */
tags: string
tags: string[]
): boolean;
/** 删除玩家NBT */
@@ -366,6 +366,12 @@ declare class Minecraft {
/** 获取最大玩家数 */
static getMaxPlayers(): number;
/** 玩家是否拥有NBT */
static hasPlayerNbt(
/** 玩家的uuid */
uuid: string
): boolean;
}
/** 合成表类 */