adapt: adapt LeviLamina 1.0.0-rc.3
This commit is contained in:
@@ -252,8 +252,6 @@ const GMLIB_API = {
|
||||
itemCanDestroySpecial: ll.import("GMLIB_API", "itemCanDestroySpecial"),
|
||||
/** @type {function(Block):boolean} */
|
||||
blockCanDropWithAnyTool: ll.import("GMLIB_API", "blockCanDropWithAnyTool"),
|
||||
/** 方块是否不需要工具采集 @type {function(Block):boolean} */
|
||||
blockIsAlwaysDestroyable: ll.import("GMLIB_API", "blockIsAlwaysDestroyable"),
|
||||
/** @type {function(Block,Player,IntPos):boolean} */
|
||||
blockPlayerWillDestroy: ll.import("GMLIB_API", "blockPlayerWillDestroy"),
|
||||
/** 使玩家攻击实体 @type {function(Entity,Player):boolean} */
|
||||
@@ -268,8 +266,6 @@ const GMLIB_API = {
|
||||
getBlockLightEmission: ll.import("GMLIB_API", "getBlockLightEmission"),
|
||||
/** 获取游戏规则列表 @type {function():Array.<{Name:string,Value:string,Type:"Bool"|"Float"|"Int"}>} */
|
||||
getGameRules: ll.import("GMLIB_API", "getGameRules"),
|
||||
/** 获取物品可以拥有的附魔 @type {function(Item):Array.<string>} */
|
||||
getLegalEnchants: ll.import("GMLIB_API", "getLegalEnchants"),
|
||||
/** 给物品添加附魔 @type {function(Item,string,number,boolean):boolean} */
|
||||
applyEnchant: ll.import("GMLIB_API", "applyEnchant"),
|
||||
/** 删除物品所有附魔 @type {function(Item):void} */
|
||||
@@ -2719,15 +2715,6 @@ LLSE_Block.prototype.canDropWithAnyTool =
|
||||
return GMLIB_API.blockCanDropWithAnyTool(this);
|
||||
};
|
||||
|
||||
LLSE_Block.prototype.isAlwaysDestroyable =
|
||||
/**
|
||||
* 方块是否不需要工具采集
|
||||
* @returns {boolean} 方块是否不需要工具采集
|
||||
*/
|
||||
function () {
|
||||
return GMLIB_API.blockIsAlwaysDestroyable(this);
|
||||
};
|
||||
|
||||
LLSE_Block.prototype.playerWillDestroy =
|
||||
/**
|
||||
* 检测方块是否能被玩家挖掘(比如插件拦截)
|
||||
@@ -2758,15 +2745,6 @@ LLSE_Player.prototype.pullInEntity =
|
||||
return GMLIB_API.playerPullInEntity(this, entity);
|
||||
};
|
||||
|
||||
LLSE_Item.prototype.getLegalEnchants =
|
||||
/**
|
||||
* 获取物品可以拥有的合法附魔
|
||||
* @returns {Array.<string>} 附魔ID列表
|
||||
*/
|
||||
function () {
|
||||
return GMLIB_API.getLegalEnchants(this);
|
||||
};
|
||||
|
||||
LLSE_Item.prototype.applyEnchant =
|
||||
/**
|
||||
* 添加附魔
|
||||
|
||||
Reference in New Issue
Block a user