Skip to content

Commit 7aca683

Browse files
committed
Merge branch 'dev'
2 parents 97a5b5f + 831a5f1 commit 7aca683

File tree

5 files changed

+26
-2
lines changed

5 files changed

+26
-2
lines changed

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,9 @@
2424

2525
## ❓有疑问或者建议?
2626
- 请前往[Issues](https://github.com/LiteLScript-Dev/HelperLib/issues)提出
27+
28+
## ❗ 注意
29+
- 本存储库所包含的声明文件并非100%准确无误,请以LLSE的源码和文档为准。本存储库的更新历史亦不对应LLSE项目的有关更改发生情况,不可作为此类参考。
2730

2831
## 🏆 贡献
2932

src/GameAPI/BlockEntity/BlockEntity.d.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,10 @@
1414
* 因此,如果有长期操作某个方块实体的需要,请通过{@linkcode Block.getBlockEntity()}获取实时的方块实体对象
1515
*/
1616
declare class BlockEntity {
17+
18+
/** 方块实体的名称 */
19+
readonly name: string
20+
1721
/** 方块实体对应方块所在的坐标 */
1822
readonly pos: IntPos;
1923

src/GameAPI/Entity/Entity.d.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,8 @@ declare class Entity {
131131
/** 实体是否移动 */
132132
readonly isMoving: boolean;
133133

134+
readonly posDelta: FloatPos;
135+
134136
/**
135137
* ### 传送实体至指定位置
136138
*
@@ -516,6 +518,10 @@ declare class Entity {
516518
*/
517519
remove(): boolean
518520

521+
setPosDelta(arg1:FloatPos): boolean
522+
523+
setPosDelta(arg1:number,arg2:number,arg3:number): boolean
524+
519525
}
520526

521527
declare class LLSE_Entity extends Entity { }

src/GameAPI/Player.d.ts

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,9 @@ declare class Player {
9797
readonly inClouds: boolean;
9898

9999
/**玩家当前是否正在潜行 */
100+
readonly isSneaking: boolean;
101+
102+
/** @deprecated 玩家当前是否正在潜行*/
100103
readonly sneaking: boolean;
101104

102105
/**玩家当前速度 */
@@ -174,7 +177,7 @@ declare class Player {
174177
/** 玩家是否移动 */
175178
readonly isMoving: boolean;
176179

177-
/**玩家设备IP地址 */
180+
/** @deprecated 玩家设备IP地址 */
178181
readonly ip: string;
179182

180183
/**
@@ -913,8 +916,16 @@ declare class Player {
913916
* @param pos 目标位置
914917
*
915918
* @returns 到坐标的距离(方块)
919+
*
920+
* @deprecated
916921
*/
917922
distanceToPos(pos: IntPos | FloatPos): number;
923+
924+
getAllEffects():number[]
925+
926+
addEffect(arg1:number,arg2:number,arg3:number,arg4:boolean):boolean
927+
928+
removeEffect(arg1:number):boolean
918929
}
919930

920931
declare namespace mc {

tooth.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"format_version": 1,
33
"tooth": "github.com/LiteLScript-Dev/HelperLib",
4-
"version": "2.11.0",
4+
"version": "2.11.1",
55
"dependencies": {},
66
"information": {
77
"name": "HelperLib",

0 commit comments

Comments
 (0)