feat: adapt to GMLIB v1.0.2
This commit is contained in:
Vendored
+3
@@ -1556,6 +1556,9 @@ interface Player {
|
||||
slot: number
|
||||
): Item;
|
||||
|
||||
/** (GMLIB & Glacie)获取客户端版本协议*/
|
||||
getNetworkProtocolVersion(): number
|
||||
|
||||
/** (GMLIB)发送更新更新物品数据包 */
|
||||
sendInventorySlotPacket(
|
||||
/** 容器ID */
|
||||
|
||||
@@ -376,6 +376,8 @@ const GMLIB_API = {
|
||||
entityHasType: ll.import("GMLIB_API", "entityHasType"),
|
||||
/** 获取实体类型ID @type {function(Entity):number} */
|
||||
getEntityTypeId: ll.import("GMLIB_API", "getEntityTypeId"),
|
||||
/** 获取实体类型ID @type {function(Entity):number} */
|
||||
getPlayerProtocolVersion: ll.import("GMLIB_API", "getPlayerProtocolVersion"),
|
||||
};
|
||||
|
||||
/** LRCA的二进制流数据包导出接口 */
|
||||
@@ -3034,6 +3036,15 @@ LLSE_Player.prototype.sendInventorySlotPacket =
|
||||
GMLIB_API.sendInventorySlotPacket(this, containerId, slot, item);
|
||||
};
|
||||
|
||||
LLSE_Player.prototype.getNetworkProtocolVersion =
|
||||
/**
|
||||
* 获取客户端版本协议
|
||||
* @returns {number}
|
||||
*/
|
||||
function (containerId, slot, item) {
|
||||
GMLIB_API.getPlayerProtocolVersion(this);
|
||||
};
|
||||
|
||||
LLSE_Container.prototype.getContainerType =
|
||||
/**
|
||||
* 获取容器类型
|
||||
|
||||
Reference in New Issue
Block a user