增加4个接口

- getItemCanDestroy
- setItemCanDestroy
- getItemCanPlaceOn
- setItemCanPlaceOn
This commit is contained in:
子沐呀
2024-07-12 03:20:37 +08:00
Unverified
parent 374e5a29e0
commit b9d0900407
3 changed files with 91 additions and 1 deletions
+18
View File
@@ -1211,4 +1211,22 @@ interface Item {
/** 要设置的惩罚等级 */
cost: number
): void;
/** (GMLIB)获取冒险模式下能破坏的方块 */
getCanDestroy(): string[];
/** (GMLIB)设置冒险模式下能破坏的方块 */
setCanDestroy(
/** 能破坏的方块 */
blocks: string[]
): void;
/** (GMLIB)获取冒险模式下能放置在什么方块上 */
getCanPlaceOn(): string[];
/** (GMLIB)设置冒险模式下能放置在什么方块上 */
getCanPlaceOn(
/** 能放置的方块 */
blocks: string[]
): void;
}