删除和修改
删除新增的handleRequestTryAction事件和handleRequestAction事件 有关附魔接口均改采用命名空间 新增id转命名空间接口 修正获取最大玩家数代码
This commit is contained in:
Vendored
-34
@@ -191,38 +191,4 @@ declare class Event {
|
||||
entity: Entity
|
||||
) => void
|
||||
): boolean;
|
||||
|
||||
/** 尝试物品物品请求 */
|
||||
static listen(
|
||||
/** 事件名 */
|
||||
event: "handleRequestTryAction",
|
||||
/** 回调函数 */
|
||||
listener: (
|
||||
/** 请求的玩家对象 */
|
||||
Player: Player,
|
||||
/** 请求的操作 */
|
||||
actionType: number,
|
||||
/** 请求的槽位 */
|
||||
slot: number,
|
||||
/** 容器的ID */
|
||||
containerNetId: number
|
||||
) => boolean | void
|
||||
): boolean;
|
||||
|
||||
/** 处理物品请求后(不可拦截) */
|
||||
static listen(
|
||||
/** 事件名 */
|
||||
event: "handleRequestAction",
|
||||
/** 回调函数 */
|
||||
listener: (
|
||||
/** 请求的玩家对象 */
|
||||
Player: Player,
|
||||
/** 请求的操作 */
|
||||
actionType: number,
|
||||
/** 请求的槽位 */
|
||||
slot: number,
|
||||
/** 容器的ID */
|
||||
containerNetId: number
|
||||
) => void
|
||||
): boolean;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user