@deafwave/osrs-botmaker-types 0.5.5 → 0.5.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -28,22 +28,24 @@ declare namespace net.runelite.api {
|
|
|
28
28
|
/**
|
|
29
29
|
* Represents the RuneScape client.
|
|
30
30
|
*/
|
|
31
|
-
export class Client
|
|
32
|
-
extends com.jagex.oldscape.pub.OAuthApi,
|
|
33
|
-
GameEngine {
|
|
31
|
+
export class Client extends com.jagex.oldscape.pub.OAuthApi, GameEngine {
|
|
34
32
|
/**
|
|
35
33
|
* The injected client invokes these callbacks to send events to us
|
|
36
34
|
*/
|
|
37
35
|
getCallbacks(): net.runelite.api.hooks.Callbacks;
|
|
36
|
+
|
|
38
37
|
/**
|
|
39
38
|
* The injected client invokes these callbacks for scene drawing, which is
|
|
40
39
|
* used by the gpu plugin to override the client's normal scene drawing code
|
|
41
40
|
*/
|
|
42
41
|
getDrawCallbacks(): net.runelite.api.hooks.DrawCallbacks;
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
42
|
+
|
|
43
|
+
setDrawCallbacks(drawCallbacks: net.runelite.api.hooks.DrawCallbacks): void;
|
|
44
|
+
|
|
46
45
|
getBuildID(): string;
|
|
46
|
+
|
|
47
|
+
getEnvironment(): number;
|
|
48
|
+
|
|
47
49
|
/**
|
|
48
50
|
* Gets the current modified level of a skill.
|
|
49
51
|
*
|
|
@@ -51,6 +53,7 @@ declare namespace net.runelite.api {
|
|
|
51
53
|
* @return the modified skill level
|
|
52
54
|
*/
|
|
53
55
|
getBoostedSkillLevel(skill: Skill): number;
|
|
56
|
+
|
|
54
57
|
/**
|
|
55
58
|
* Gets the real level of a skill.
|
|
56
59
|
*
|
|
@@ -58,12 +61,14 @@ declare namespace net.runelite.api {
|
|
|
58
61
|
* @return the skill level
|
|
59
62
|
*/
|
|
60
63
|
getRealSkillLevel(skill: Skill): number;
|
|
64
|
+
|
|
61
65
|
/**
|
|
62
66
|
* Calculates the total level from real skill levels.
|
|
63
67
|
*
|
|
64
68
|
* @return the total level
|
|
65
69
|
*/
|
|
66
70
|
getTotalLevel(): number;
|
|
71
|
+
|
|
67
72
|
/**
|
|
68
73
|
* Adds a new chat message to the chatbox.
|
|
69
74
|
*
|
|
@@ -73,12 +78,8 @@ declare namespace net.runelite.api {
|
|
|
73
78
|
* @param sender the sender/channel name
|
|
74
79
|
* @return the message node for the message
|
|
75
80
|
*/
|
|
76
|
-
addChatMessage(
|
|
77
|
-
|
|
78
|
-
name: string,
|
|
79
|
-
message: string,
|
|
80
|
-
sender: string | null,
|
|
81
|
-
): MessageNode;
|
|
81
|
+
addChatMessage(type: ChatMessageType, name: string, message: string, sender: string): MessageNode;
|
|
82
|
+
|
|
82
83
|
/**
|
|
83
84
|
* Adds a new chat message to the chatbox.
|
|
84
85
|
*
|
|
@@ -89,91 +90,98 @@ declare namespace net.runelite.api {
|
|
|
89
90
|
* @param postEvent whether to post the chat message event
|
|
90
91
|
* @return the message node for the message
|
|
91
92
|
*/
|
|
92
|
-
addChatMessage(
|
|
93
|
-
|
|
94
|
-
name: string,
|
|
95
|
-
message: string,
|
|
96
|
-
sender: string,
|
|
97
|
-
postEvent: boolean,
|
|
98
|
-
): MessageNode;
|
|
93
|
+
addChatMessage(type: ChatMessageType, name: string, message: string, sender: string, postEvent: boolean): MessageNode;
|
|
94
|
+
|
|
99
95
|
/**
|
|
100
96
|
* Gets the current game state.
|
|
101
97
|
*
|
|
102
98
|
* @return the game state
|
|
103
99
|
*/
|
|
104
100
|
getGameState(): GameState;
|
|
101
|
+
|
|
105
102
|
/**
|
|
106
103
|
* Sets the current game state
|
|
107
104
|
*
|
|
108
105
|
* @param gameState
|
|
109
106
|
*/
|
|
110
107
|
setGameState(gameState: GameState): void;
|
|
108
|
+
|
|
111
109
|
/**
|
|
112
110
|
* Causes the client to shutdown. It is faster than
|
|
113
111
|
* {@link java.applet.Applet#stop()} because it doesn't wait for 4000ms.
|
|
114
112
|
* This will call {@link System#exit} when it is done
|
|
115
113
|
*/
|
|
116
114
|
stopNow(): void;
|
|
115
|
+
|
|
117
116
|
/**
|
|
118
117
|
* Gets the display name of the active account when launched from the Jagex launcher.
|
|
119
118
|
*
|
|
120
119
|
* @return The active account's display name, or {@code null} if not launched from the Jagex launcher
|
|
121
120
|
*/
|
|
122
121
|
getLauncherDisplayName(): string | null;
|
|
122
|
+
|
|
123
123
|
/**
|
|
124
124
|
* DEPRECATED. See getAccountHash instead.
|
|
125
125
|
* Gets the current logged in username.
|
|
126
126
|
*
|
|
127
127
|
* @return the logged in username
|
|
128
128
|
* @see OAuthApi#getAccountHash()
|
|
129
|
+
* @deprecated
|
|
129
130
|
*/
|
|
130
|
-
/** @deprecated */
|
|
131
131
|
getUsername(): string;
|
|
132
|
+
|
|
132
133
|
/**
|
|
133
134
|
* Sets the current logged in username.
|
|
134
135
|
*
|
|
135
136
|
* @param name the logged in username
|
|
136
137
|
*/
|
|
137
138
|
setUsername(name: string): void;
|
|
139
|
+
|
|
138
140
|
/**
|
|
139
141
|
* Sets the password on login screen.
|
|
140
142
|
*
|
|
141
143
|
* @param password the login screen password
|
|
142
144
|
*/
|
|
143
145
|
setPassword(password: string): void;
|
|
146
|
+
|
|
144
147
|
/**
|
|
145
148
|
* Sets the 6 digit pin used for authenticator on login screen.
|
|
146
149
|
*
|
|
147
150
|
* @param otp one time password
|
|
148
151
|
*/
|
|
149
152
|
setOtp(otp: string): void;
|
|
153
|
+
|
|
150
154
|
/**
|
|
151
155
|
* Gets currently selected login field. 0 is username, and 1 is password.
|
|
152
156
|
*
|
|
153
157
|
* @return currently selected login field
|
|
154
158
|
*/
|
|
155
159
|
getCurrentLoginField(): number;
|
|
160
|
+
|
|
156
161
|
/**
|
|
157
162
|
* Gets index of current login state. 2 is username/password form, 4 is authenticator form
|
|
158
163
|
*
|
|
159
164
|
* @return current login state index
|
|
160
165
|
*/
|
|
161
166
|
getLoginIndex(): number;
|
|
167
|
+
|
|
162
168
|
/**
|
|
163
169
|
* Gets the account type of the logged in player.
|
|
164
170
|
*
|
|
165
171
|
* @return the account type
|
|
166
172
|
* @deprecated see Varbits#ACCOUNT_TYPE
|
|
167
173
|
*/
|
|
168
|
-
/** @deprecated */
|
|
169
174
|
getAccountType(): net.runelite.api.vars.AccountType;
|
|
175
|
+
|
|
170
176
|
getCanvas(): java.awt.Canvas;
|
|
177
|
+
|
|
171
178
|
/**
|
|
172
179
|
* Gets the current FPS (frames per second).
|
|
173
180
|
*
|
|
174
181
|
* @return the FPS
|
|
175
182
|
*/
|
|
176
183
|
getFPS(): number;
|
|
184
|
+
|
|
177
185
|
/**
|
|
178
186
|
* Gets the x-axis coordinate of the camera.
|
|
179
187
|
* <p>
|
|
@@ -183,12 +191,14 @@ declare namespace net.runelite.api {
|
|
|
183
191
|
* @return the camera x coordinate
|
|
184
192
|
*/
|
|
185
193
|
getCameraX(): number;
|
|
194
|
+
|
|
186
195
|
/**
|
|
187
196
|
* Floating point camera position, x-axis
|
|
188
197
|
* @see #getCameraX()
|
|
189
198
|
* @return
|
|
190
199
|
*/
|
|
191
200
|
getCameraFpX(): number;
|
|
201
|
+
|
|
192
202
|
/**
|
|
193
203
|
* Gets the y-axis coordinate of the camera.
|
|
194
204
|
* <p>
|
|
@@ -198,12 +208,14 @@ declare namespace net.runelite.api {
|
|
|
198
208
|
* @return the camera y coordinate
|
|
199
209
|
*/
|
|
200
210
|
getCameraY(): number;
|
|
211
|
+
|
|
201
212
|
/**
|
|
202
213
|
* Floating point camera position, y-axis
|
|
203
214
|
* @see #getCameraY()
|
|
204
215
|
* @return
|
|
205
216
|
*/
|
|
206
217
|
getCameraFpY(): number;
|
|
218
|
+
|
|
207
219
|
/**
|
|
208
220
|
* Gets the z-axis coordinate of the camera.
|
|
209
221
|
* <p>
|
|
@@ -213,12 +225,14 @@ declare namespace net.runelite.api {
|
|
|
213
225
|
* @return the camera z coordinate
|
|
214
226
|
*/
|
|
215
227
|
getCameraZ(): number;
|
|
228
|
+
|
|
216
229
|
/**
|
|
217
230
|
* Floating point camera position, z-axis
|
|
218
231
|
* @see #getCameraZ()
|
|
219
232
|
* @return
|
|
220
233
|
*/
|
|
221
234
|
getCameraFpZ(): number;
|
|
235
|
+
|
|
222
236
|
/**
|
|
223
237
|
* Gets the pitch of the camera.
|
|
224
238
|
* <p>
|
|
@@ -228,95 +242,111 @@ declare namespace net.runelite.api {
|
|
|
228
242
|
* @return the camera pitch
|
|
229
243
|
*/
|
|
230
244
|
getCameraPitch(): number;
|
|
245
|
+
|
|
231
246
|
/**
|
|
232
247
|
* Floating point camera pitch.
|
|
233
248
|
* @see #getCameraPitch()
|
|
234
249
|
* @return
|
|
235
250
|
*/
|
|
236
251
|
getCameraFpPitch(): number;
|
|
252
|
+
|
|
237
253
|
/**
|
|
238
254
|
* Gets the yaw of the camera.
|
|
239
255
|
*
|
|
240
256
|
* @return the camera yaw
|
|
241
257
|
*/
|
|
242
258
|
getCameraYaw(): number;
|
|
259
|
+
|
|
243
260
|
/**
|
|
244
261
|
* Floating point camera yaw
|
|
245
262
|
* @see #getCameraYaw()
|
|
246
263
|
* @return
|
|
247
264
|
*/
|
|
248
265
|
getCameraFpYaw(): number;
|
|
266
|
+
|
|
249
267
|
/**
|
|
250
268
|
* Gets the current world number of the logged in player.
|
|
251
269
|
*
|
|
252
270
|
* @return the logged in world number
|
|
253
271
|
*/
|
|
254
272
|
getWorld(): number;
|
|
273
|
+
|
|
255
274
|
/**
|
|
256
275
|
* Gets the canvas height
|
|
257
276
|
* @return
|
|
258
277
|
*/
|
|
259
278
|
getCanvasHeight(): number;
|
|
279
|
+
|
|
260
280
|
/**
|
|
261
281
|
* Gets the canvas width
|
|
262
282
|
* @return
|
|
263
283
|
*/
|
|
264
284
|
getCanvasWidth(): number;
|
|
285
|
+
|
|
265
286
|
/**
|
|
266
287
|
* Gets the height of the viewport.
|
|
267
288
|
*
|
|
268
289
|
* @return the viewport height
|
|
269
290
|
*/
|
|
270
291
|
getViewportHeight(): number;
|
|
292
|
+
|
|
271
293
|
/**
|
|
272
294
|
* Gets the width of the viewport.
|
|
273
295
|
*
|
|
274
296
|
* @return the viewport width
|
|
275
297
|
*/
|
|
276
298
|
getViewportWidth(): number;
|
|
299
|
+
|
|
277
300
|
/**
|
|
278
301
|
* Gets the x-axis offset of the viewport.
|
|
279
302
|
*
|
|
280
303
|
* @return the x-axis offset
|
|
281
304
|
*/
|
|
282
305
|
getViewportXOffset(): number;
|
|
306
|
+
|
|
283
307
|
/**
|
|
284
308
|
* Gets the y-axis offset of the viewport.
|
|
285
309
|
*
|
|
286
310
|
* @return the y-axis offset
|
|
287
311
|
*/
|
|
288
312
|
getViewportYOffset(): number;
|
|
313
|
+
|
|
289
314
|
/**
|
|
290
315
|
* Gets the scale of the world (zoom value).
|
|
291
316
|
*
|
|
292
317
|
* @return the world scale
|
|
293
318
|
*/
|
|
294
319
|
getScale(): number;
|
|
320
|
+
|
|
295
321
|
/**
|
|
296
322
|
* Gets the current position of the mouse on the canvas.
|
|
297
323
|
*
|
|
298
324
|
* @return the mouse canvas position
|
|
299
325
|
*/
|
|
300
326
|
getMouseCanvasPosition(): Point;
|
|
327
|
+
|
|
301
328
|
/**
|
|
302
329
|
* Gets the logged in player instance.
|
|
303
330
|
*
|
|
304
331
|
* @return the logged in player
|
|
305
332
|
*/
|
|
306
333
|
getLocalPlayer(): Player;
|
|
334
|
+
|
|
307
335
|
/**
|
|
308
336
|
* Get the local player's follower, such as a pet
|
|
309
337
|
* @return
|
|
310
338
|
*/
|
|
311
339
|
getFollower(): NPC | null;
|
|
340
|
+
|
|
312
341
|
/**
|
|
313
342
|
* Gets the item composition corresponding to an items ID.
|
|
314
343
|
*
|
|
315
344
|
* @param id the item ID
|
|
316
345
|
* @return the corresponding item composition
|
|
317
|
-
* @see ItemID
|
|
346
|
+
* @see net.runelite.api.gameval.ItemID
|
|
318
347
|
*/
|
|
319
348
|
getItemDefinition(id: number): ItemComposition;
|
|
349
|
+
|
|
320
350
|
/**
|
|
321
351
|
* Creates an item icon sprite with passed variables.
|
|
322
352
|
*
|
|
@@ -336,20 +366,23 @@ declare namespace net.runelite.api {
|
|
|
336
366
|
shadowColor: number,
|
|
337
367
|
stackable: number,
|
|
338
368
|
noted: boolean,
|
|
339
|
-
scale: number
|
|
369
|
+
scale: number
|
|
340
370
|
): SpritePixels | null;
|
|
371
|
+
|
|
341
372
|
/**
|
|
342
373
|
* Get the item model cache. These models are used for drawing widgets of type {@link net.runelite.api.widgets.WidgetType#MODEL}
|
|
343
374
|
* and inventory item icons
|
|
344
375
|
* @return
|
|
345
376
|
*/
|
|
346
377
|
getItemModelCache(): NodeCache;
|
|
378
|
+
|
|
347
379
|
/**
|
|
348
380
|
* Get the item sprite cache. These are 2d SpritePixels which are used to raster item images on the inventory and
|
|
349
381
|
* on widgets of type {@link net.runelite.api.widgets.WidgetType#GRAPHIC}
|
|
350
382
|
* @return
|
|
351
383
|
*/
|
|
352
384
|
getItemSpriteCache(): NodeCache;
|
|
385
|
+
|
|
353
386
|
/**
|
|
354
387
|
* Loads and creates the sprite images of the passed archive and file IDs.
|
|
355
388
|
*
|
|
@@ -358,45 +391,49 @@ declare namespace net.runelite.api {
|
|
|
358
391
|
* @param fileId the sprites file ID
|
|
359
392
|
* @return the sprite image of the file
|
|
360
393
|
*/
|
|
361
|
-
getSprites(
|
|
362
|
-
|
|
363
|
-
archiveId: number,
|
|
364
|
-
fileId: number,
|
|
365
|
-
): SpritePixels[] | null;
|
|
394
|
+
getSprites(source: IndexDataBase, archiveId: number, fileId: number): SpritePixels[] | null;
|
|
395
|
+
|
|
366
396
|
/**
|
|
367
397
|
* Gets the sprite index.
|
|
368
398
|
*/
|
|
369
399
|
getIndexSprites(): IndexDataBase;
|
|
400
|
+
|
|
370
401
|
/**
|
|
371
402
|
* Gets the script index.
|
|
372
403
|
*/
|
|
373
404
|
getIndexScripts(): IndexDataBase;
|
|
405
|
+
|
|
374
406
|
/**
|
|
375
407
|
* Gets the config index.
|
|
376
408
|
*/
|
|
377
409
|
getIndexConfig(): IndexDataBase;
|
|
410
|
+
|
|
378
411
|
/**
|
|
379
412
|
* Gets an index by id
|
|
380
413
|
*/
|
|
381
414
|
getIndex(id: number): IndexDataBase;
|
|
415
|
+
|
|
382
416
|
/**
|
|
383
417
|
* Gets the current mouse button that is pressed.
|
|
384
418
|
*
|
|
385
419
|
* @return the pressed mouse button
|
|
386
420
|
*/
|
|
387
421
|
getMouseCurrentButton(): number;
|
|
422
|
+
|
|
388
423
|
/**
|
|
389
424
|
* Checks whether a widget is currently being dragged.
|
|
390
425
|
*
|
|
391
426
|
* @return true if dragging a widget, false otherwise
|
|
392
427
|
*/
|
|
393
428
|
isDraggingWidget(): boolean;
|
|
429
|
+
|
|
394
430
|
/**
|
|
395
431
|
* Gets the widget currently being dragged.
|
|
396
432
|
*
|
|
397
433
|
* @return the dragged widget, null if not dragging any widget
|
|
398
434
|
*/
|
|
399
435
|
getDraggedWidget(): net.runelite.api.widgets.Widget | null;
|
|
436
|
+
|
|
400
437
|
/**
|
|
401
438
|
* Gets the widget that is being dragged on.
|
|
402
439
|
* <p>
|
|
@@ -406,12 +443,14 @@ declare namespace net.runelite.api {
|
|
|
406
443
|
* @return the dragged on widget, null if not dragging any widget
|
|
407
444
|
*/
|
|
408
445
|
getDraggedOnWidget(): net.runelite.api.widgets.Widget | null;
|
|
446
|
+
|
|
409
447
|
/**
|
|
410
448
|
* Sets the widget that is being dragged on.
|
|
411
449
|
*
|
|
412
450
|
* @param widget the new dragged on widget
|
|
413
451
|
*/
|
|
414
452
|
setDraggedOnWidget(widget: net.runelite.api.widgets.Widget): void;
|
|
453
|
+
|
|
415
454
|
/**
|
|
416
455
|
* Get the number of client cycles the current dragged widget
|
|
417
456
|
* has been dragged for.
|
|
@@ -419,26 +458,28 @@ declare namespace net.runelite.api {
|
|
|
419
458
|
* @return
|
|
420
459
|
*/
|
|
421
460
|
getDragTime(): number;
|
|
461
|
+
|
|
422
462
|
/**
|
|
423
463
|
* Gets Interface ID of the root widget
|
|
424
464
|
*/
|
|
425
465
|
getTopLevelInterfaceId(): number;
|
|
466
|
+
|
|
426
467
|
/**
|
|
427
468
|
* Gets the root widgets.
|
|
428
469
|
*
|
|
429
470
|
* @return the root widgets
|
|
430
471
|
*/
|
|
431
472
|
getWidgetRoots(): net.runelite.api.widgets.Widget[];
|
|
473
|
+
|
|
432
474
|
/**
|
|
433
475
|
* Gets a widget corresponding to the passed widget info.
|
|
434
476
|
*
|
|
435
477
|
* @param widget the widget info
|
|
436
478
|
* @return the widget
|
|
479
|
+
* @deprecated
|
|
437
480
|
*/
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
widget: net.runelite.api.widgets.WidgetInfo,
|
|
441
|
-
): net.runelite.api.widgets.Widget | null;
|
|
481
|
+
getWidget(widget: net.runelite.api.widgets.WidgetInfo): net.runelite.api.widgets.Widget | null;
|
|
482
|
+
|
|
442
483
|
/**
|
|
443
484
|
* Gets a widget by its raw group ID and child ID.
|
|
444
485
|
*
|
|
@@ -446,16 +487,15 @@ declare namespace net.runelite.api {
|
|
|
446
487
|
* @param childId the child widget ID
|
|
447
488
|
* @return the widget corresponding to the group and child pair
|
|
448
489
|
*/
|
|
449
|
-
getWidget(
|
|
450
|
-
|
|
451
|
-
childId: number,
|
|
452
|
-
): net.runelite.api.widgets.Widget | null;
|
|
490
|
+
getWidget(groupId: number, childId: number): net.runelite.api.widgets.Widget | null;
|
|
491
|
+
|
|
453
492
|
/**
|
|
454
493
|
* Gets a widget by its component id.
|
|
455
494
|
*
|
|
456
495
|
* @param componentId the component id
|
|
457
496
|
*/
|
|
458
497
|
getWidget(componentId: number): net.runelite.api.widgets.Widget | null;
|
|
498
|
+
|
|
459
499
|
/**
|
|
460
500
|
* Gets an array containing the x-axis canvas positions
|
|
461
501
|
* of all widgets.
|
|
@@ -463,6 +503,7 @@ declare namespace net.runelite.api {
|
|
|
463
503
|
* @return array of x-axis widget coordinates
|
|
464
504
|
*/
|
|
465
505
|
getWidgetPositionsX(): number[];
|
|
506
|
+
|
|
466
507
|
/**
|
|
467
508
|
* Gets an array containing the y-axis canvas positions
|
|
468
509
|
* of all widgets.
|
|
@@ -470,18 +511,21 @@ declare namespace net.runelite.api {
|
|
|
470
511
|
* @return array of y-axis widget coordinates
|
|
471
512
|
*/
|
|
472
513
|
getWidgetPositionsY(): number[];
|
|
514
|
+
|
|
473
515
|
/**
|
|
474
516
|
* Gets the current run energy of the logged in player.
|
|
475
517
|
*
|
|
476
|
-
* @return the run energy in units of 1/100th of an percentage
|
|
518
|
+
* @return the run energy in units of 1/100th of an percentage
|
|
477
519
|
*/
|
|
478
520
|
getEnergy(): number;
|
|
521
|
+
|
|
479
522
|
/**
|
|
480
523
|
* Gets the current weight of the logged in player.
|
|
481
524
|
*
|
|
482
525
|
* @return the weight
|
|
483
526
|
*/
|
|
484
527
|
getWeight(): number;
|
|
528
|
+
|
|
485
529
|
/**
|
|
486
530
|
* Gets an array of options that can currently be used on other players.
|
|
487
531
|
* <p>
|
|
@@ -491,37 +535,54 @@ declare namespace net.runelite.api {
|
|
|
491
535
|
* @return an array of options
|
|
492
536
|
*/
|
|
493
537
|
getPlayerOptions(): string[];
|
|
538
|
+
|
|
494
539
|
/**
|
|
495
540
|
* Gets an array of whether an option is enabled or not.
|
|
496
541
|
*
|
|
497
542
|
* @return the option priorities
|
|
498
543
|
*/
|
|
499
544
|
getPlayerOptionsPriorities(): boolean[];
|
|
545
|
+
|
|
500
546
|
/**
|
|
501
547
|
* Gets an array of player menu types.
|
|
502
548
|
*
|
|
503
549
|
* @return the player menu types
|
|
504
550
|
*/
|
|
505
551
|
getPlayerMenuTypes(): number[];
|
|
552
|
+
|
|
506
553
|
/**
|
|
507
554
|
* Gets a list of all RuneScape worlds.
|
|
508
555
|
*
|
|
509
556
|
* @return world list
|
|
510
557
|
*/
|
|
511
558
|
getWorldList(): World[];
|
|
559
|
+
|
|
560
|
+
/**
|
|
561
|
+
* Get the client menu.
|
|
562
|
+
*/
|
|
563
|
+
getMenu(): Menu;
|
|
564
|
+
|
|
512
565
|
/**
|
|
513
566
|
* Create a new menu entry
|
|
514
567
|
* @param idx the index to create the menu entry at. Accepts negative indexes eg. -1 inserts at the end.
|
|
515
568
|
* @return the newly created menu entry
|
|
569
|
+
* @see #getMenu()
|
|
570
|
+
* @see Menu#createMenuEntry(int)
|
|
571
|
+
* @deprecated
|
|
516
572
|
*/
|
|
517
573
|
createMenuEntry(idx: number): MenuEntry;
|
|
574
|
+
|
|
518
575
|
/**
|
|
519
576
|
* Gets an array of currently open right-click menu entries that can be
|
|
520
577
|
* clicked and activated.
|
|
521
578
|
*
|
|
522
579
|
* @return array of open menu entries
|
|
580
|
+
* @see #getMenu()
|
|
581
|
+
* @see Menu#getMenuEntries()
|
|
582
|
+
* @deprecated
|
|
523
583
|
*/
|
|
524
584
|
getMenuEntries(): MenuEntry[];
|
|
585
|
+
|
|
525
586
|
/**
|
|
526
587
|
* Sets the array of open menu entries.
|
|
527
588
|
* <p>
|
|
@@ -529,79 +590,103 @@ declare namespace net.runelite.api {
|
|
|
529
590
|
* event, since setting the menu entries will be overwritten the next frame
|
|
530
591
|
*
|
|
531
592
|
* @param entries new array of open menu entries
|
|
593
|
+
* @see #getMenu()
|
|
594
|
+
* @see Menu#setMenuEntries(MenuEntry[])
|
|
595
|
+
* @deprecated
|
|
532
596
|
*/
|
|
533
597
|
setMenuEntries(entries: MenuEntry[]): void;
|
|
598
|
+
|
|
534
599
|
/**
|
|
535
600
|
* Checks whether a right-click menu is currently open.
|
|
536
601
|
*
|
|
537
602
|
* @return true if a menu is open, false otherwise
|
|
538
603
|
*/
|
|
539
604
|
isMenuOpen(): boolean;
|
|
605
|
+
|
|
540
606
|
/**
|
|
541
607
|
* Returns whether the currently open menu is scrollable.
|
|
542
608
|
* @return
|
|
543
609
|
*/
|
|
544
610
|
isMenuScrollable(): boolean;
|
|
611
|
+
|
|
545
612
|
/**
|
|
546
613
|
* Get the number of entries the currently open menu has been scrolled down.
|
|
547
614
|
* @return
|
|
548
615
|
*/
|
|
549
616
|
getMenuScroll(): number;
|
|
617
|
+
|
|
550
618
|
/**
|
|
551
619
|
* Set the number of entries the currently open menu has been scrolled down.
|
|
552
620
|
* @param scroll
|
|
553
621
|
*/
|
|
554
622
|
setMenuScroll(scroll: number): void;
|
|
623
|
+
|
|
555
624
|
/**
|
|
556
625
|
* Get the menu x location. Only valid if the menu is open.
|
|
557
626
|
*
|
|
558
627
|
* @return the menu x location
|
|
628
|
+
* @see Menu#getMenuX()
|
|
629
|
+
* @deprecated
|
|
559
630
|
*/
|
|
560
631
|
getMenuX(): number;
|
|
632
|
+
|
|
561
633
|
/**
|
|
562
634
|
* Get the menu y location. Only valid if the menu is open.
|
|
563
635
|
*
|
|
564
636
|
* @return the menu y location
|
|
637
|
+
* @see Menu#getMenuY()
|
|
638
|
+
* @deprecated
|
|
565
639
|
*/
|
|
566
640
|
getMenuY(): number;
|
|
641
|
+
|
|
567
642
|
/**
|
|
568
643
|
* Get the menu height. Only valid if the menu is open.
|
|
569
644
|
*
|
|
570
645
|
* @return the menu height
|
|
646
|
+
* @see Menu#getMenuHeight()
|
|
647
|
+
* @deprecated
|
|
571
648
|
*/
|
|
572
649
|
getMenuHeight(): number;
|
|
650
|
+
|
|
573
651
|
/**
|
|
574
652
|
* Get the menu width. Only valid if the menu is open.
|
|
575
653
|
*
|
|
576
654
|
* @return the menu width
|
|
655
|
+
* @see Menu#getMenuWidth()
|
|
656
|
+
* @deprecated
|
|
577
657
|
*/
|
|
578
658
|
getMenuWidth(): number;
|
|
659
|
+
|
|
579
660
|
/**
|
|
580
661
|
* Gets the angle of the map, or target camera yaw.
|
|
581
662
|
*
|
|
582
663
|
* @return the map angle
|
|
583
664
|
* @see #getCameraYawTarget()
|
|
665
|
+
* @deprecated
|
|
584
666
|
*/
|
|
585
|
-
/** @deprecated */
|
|
586
667
|
getMapAngle(): number;
|
|
668
|
+
|
|
587
669
|
/**
|
|
588
670
|
* Checks whether the client window is currently resized.
|
|
589
671
|
*
|
|
590
672
|
* @return true if resized, false otherwise
|
|
591
673
|
*/
|
|
592
674
|
isResized(): boolean;
|
|
675
|
+
|
|
593
676
|
/**
|
|
594
677
|
* Gets the client revision number.
|
|
595
678
|
*
|
|
596
679
|
* @return the revision
|
|
597
680
|
*/
|
|
598
681
|
getRevision(): number;
|
|
682
|
+
|
|
599
683
|
/**
|
|
600
684
|
* Gets an array of all client varplayers.
|
|
601
685
|
*
|
|
602
686
|
* @return local player variables
|
|
603
687
|
*/
|
|
604
688
|
getVarps(): number[];
|
|
689
|
+
|
|
605
690
|
/**
|
|
606
691
|
* Get an array of all server varplayers. These vars are only
|
|
607
692
|
* modified by the server, and so represent the server's idea of
|
|
@@ -609,19 +694,22 @@ declare namespace net.runelite.api {
|
|
|
609
694
|
* @return the server varps
|
|
610
695
|
*/
|
|
611
696
|
getServerVarps(): number[];
|
|
697
|
+
|
|
612
698
|
/**
|
|
613
699
|
* Gets an array of all client variables.
|
|
614
700
|
*/
|
|
615
|
-
getVarcMap(): Record<number,
|
|
701
|
+
getVarcMap(): Record<number, any>;
|
|
702
|
+
|
|
616
703
|
/**
|
|
617
704
|
* Gets a value corresponding to the passed varbit.
|
|
618
705
|
*
|
|
619
706
|
* @param varbit the varbit id
|
|
620
707
|
* @return the value
|
|
621
708
|
* @see Client#getVarbitValue(int)
|
|
709
|
+
* @deprecated
|
|
622
710
|
*/
|
|
623
|
-
/** @deprecated */
|
|
624
711
|
getVar(varbit: number): number;
|
|
712
|
+
|
|
625
713
|
/**
|
|
626
714
|
* Gets the value of the given varbit.
|
|
627
715
|
*
|
|
@@ -629,6 +717,7 @@ declare namespace net.runelite.api {
|
|
|
629
717
|
* @return the value
|
|
630
718
|
*/
|
|
631
719
|
getVarbitValue(varbit: number): number;
|
|
720
|
+
|
|
632
721
|
/**
|
|
633
722
|
* Gets the value of the given varbit.
|
|
634
723
|
* This returns the server's idea of the value, not the client's. This is
|
|
@@ -638,6 +727,7 @@ declare namespace net.runelite.api {
|
|
|
638
727
|
* @return the value
|
|
639
728
|
*/
|
|
640
729
|
getServerVarbitValue(varbit: number): number;
|
|
730
|
+
|
|
641
731
|
/**
|
|
642
732
|
* Gets the value of a given VarPlayer.
|
|
643
733
|
*
|
|
@@ -645,6 +735,7 @@ declare namespace net.runelite.api {
|
|
|
645
735
|
* @return the value
|
|
646
736
|
*/
|
|
647
737
|
getVarpValue(varpId: number): number;
|
|
738
|
+
|
|
648
739
|
/**
|
|
649
740
|
* Gets the value of a given VarPlayer.
|
|
650
741
|
* This returns the server's idea of the value, not the client's. This is
|
|
@@ -655,34 +746,39 @@ declare namespace net.runelite.api {
|
|
|
655
746
|
* @return the value
|
|
656
747
|
*/
|
|
657
748
|
getServerVarpValue(varpId: number): number;
|
|
749
|
+
|
|
658
750
|
/**
|
|
659
751
|
* Gets the value of a given VarClientInt
|
|
660
752
|
*
|
|
661
|
-
* @param var the {@link
|
|
753
|
+
* @param var the {@link net.runelite.api.gameval.VarClientID}
|
|
662
754
|
* @return the value
|
|
663
755
|
*/
|
|
664
756
|
getVarcIntValue(variable: number): number;
|
|
757
|
+
|
|
665
758
|
/**
|
|
666
759
|
* Gets the value of a given VarClientStr
|
|
667
760
|
*
|
|
668
|
-
* @param var the {@link
|
|
761
|
+
* @param var the {@link net.runelite.api.gameval.VarClientID}
|
|
669
762
|
* @return the value
|
|
670
763
|
*/
|
|
671
764
|
getVarcStrValue(variable: number): string;
|
|
765
|
+
|
|
672
766
|
/**
|
|
673
767
|
* Sets a VarClientString to the passed value
|
|
674
768
|
*
|
|
675
|
-
* @param var the {@link
|
|
769
|
+
* @param var the {@link net.runelite.api.gameval.VarClientID}
|
|
676
770
|
* @param value the new value
|
|
677
771
|
*/
|
|
678
772
|
setVarcStrValue(variable: number, value: string): void;
|
|
773
|
+
|
|
679
774
|
/**
|
|
680
775
|
* Sets a VarClientInt to the passed value
|
|
681
776
|
*
|
|
682
|
-
* @param var the {@link
|
|
777
|
+
* @param var the {@link net.runelite.api.gameval.VarClientID}
|
|
683
778
|
* @param value the new value
|
|
684
779
|
*/
|
|
685
780
|
setVarcIntValue(variable: number, value: number): void;
|
|
781
|
+
|
|
686
782
|
/**
|
|
687
783
|
* Sets the value of a varbit
|
|
688
784
|
*
|
|
@@ -690,6 +786,7 @@ declare namespace net.runelite.api {
|
|
|
690
786
|
* @param value the new value
|
|
691
787
|
*/
|
|
692
788
|
setVarbit(varbit: number, value: number): void;
|
|
789
|
+
|
|
693
790
|
/**
|
|
694
791
|
* Gets the varbit composition for a given varbit id
|
|
695
792
|
*
|
|
@@ -697,30 +794,34 @@ declare namespace net.runelite.api {
|
|
|
697
794
|
* @return
|
|
698
795
|
*/
|
|
699
796
|
getVarbit(id: number): VarbitComposition | null;
|
|
797
|
+
|
|
700
798
|
/**
|
|
701
799
|
* Gets the value of a given variable.
|
|
702
800
|
*
|
|
703
801
|
* @param varps passed varbits
|
|
704
802
|
* @param varbitId the variable ID
|
|
705
803
|
* @return the value
|
|
706
|
-
* @see
|
|
804
|
+
* @see net.runelite.api.gameval.VarbitID
|
|
707
805
|
*/
|
|
708
806
|
getVarbitValue(varps: number[], varbitId: number): number;
|
|
807
|
+
|
|
709
808
|
/**
|
|
710
809
|
* Sets the value of a given variable.
|
|
711
810
|
*
|
|
712
811
|
* @param varps passed varbits
|
|
713
812
|
* @param varbit the variable
|
|
714
813
|
* @param value the value
|
|
715
|
-
* @see
|
|
814
|
+
* @see net.runelite.api.gameval.VarbitID
|
|
716
815
|
*/
|
|
717
816
|
setVarbitValue(varps: number[], varbit: number, value: number): void;
|
|
817
|
+
|
|
718
818
|
/**
|
|
719
819
|
* Mark the given varp as changed, causing var listeners to be
|
|
720
820
|
* triggered next tick
|
|
721
821
|
* @param varp
|
|
722
822
|
*/
|
|
723
823
|
queueChangedVarp(varp: number): void;
|
|
824
|
+
|
|
724
825
|
/**
|
|
725
826
|
* Open an interface.
|
|
726
827
|
* @param componentId component id to open the interface at
|
|
@@ -731,11 +832,8 @@ declare namespace net.runelite.api {
|
|
|
731
832
|
* @return the {@link WidgetNode} for the interface. This should be closed later by calling
|
|
732
833
|
* {{@link #closeInterface(WidgetNode, boolean)}.
|
|
733
834
|
*/
|
|
734
|
-
openInterface(
|
|
735
|
-
|
|
736
|
-
interfaceId: number,
|
|
737
|
-
modalMode: number,
|
|
738
|
-
): WidgetNode;
|
|
835
|
+
openInterface(componentId: number, interfaceId: number, modalMode: number): WidgetNode;
|
|
836
|
+
|
|
739
837
|
/**
|
|
740
838
|
* Close an interface
|
|
741
839
|
* @param interfaceNode the {@link WidgetNode} linking the interface into the component tree
|
|
@@ -743,12 +841,21 @@ declare namespace net.runelite.api {
|
|
|
743
841
|
* @throws IllegalArgumentException if the interfaceNode is not linked into the component tree
|
|
744
842
|
*/
|
|
745
843
|
closeInterface(interfaceNode: WidgetNode, unload: boolean): void;
|
|
844
|
+
|
|
746
845
|
/**
|
|
747
846
|
* Gets the widget flags table.
|
|
748
847
|
*
|
|
749
848
|
* @return the widget flags table
|
|
750
849
|
*/
|
|
751
|
-
getWidgetFlags(): HashTable<
|
|
850
|
+
getWidgetFlags(): HashTable<net.runelite.api.widgets.WidgetConfigNode>;
|
|
851
|
+
|
|
852
|
+
/**
|
|
853
|
+
* Get the widget config for a given widget
|
|
854
|
+
* @param w
|
|
855
|
+
* @return
|
|
856
|
+
*/
|
|
857
|
+
getWidgetConfig(w: net.runelite.api.widgets.Widget): net.runelite.api.widgets.WidgetConfigNode | null;
|
|
858
|
+
|
|
752
859
|
/**
|
|
753
860
|
* Gets the widget node component table.
|
|
754
861
|
*
|
|
@@ -756,19 +863,23 @@ declare namespace net.runelite.api {
|
|
|
756
863
|
* @see WidgetNode
|
|
757
864
|
*/
|
|
758
865
|
getComponentTable(): HashTable<WidgetNode>;
|
|
866
|
+
|
|
759
867
|
/**
|
|
760
868
|
* Gets an array of current grand exchange offers.
|
|
761
869
|
*
|
|
762
870
|
* @return all grand exchange offers
|
|
763
871
|
*/
|
|
764
872
|
getGrandExchangeOffers(): GrandExchangeOffer[];
|
|
873
|
+
|
|
765
874
|
/**
|
|
766
875
|
* Checks whether or not a prayer is currently active.
|
|
767
876
|
*
|
|
768
877
|
* @param prayer the prayer
|
|
769
878
|
* @return true if the prayer is active, false otherwise
|
|
879
|
+
* @deprecated this method does not properly handle deadeye/eagle eye or mystic vigour/might
|
|
770
880
|
*/
|
|
771
881
|
isPrayerActive(prayer: Prayer): boolean;
|
|
882
|
+
|
|
772
883
|
/**
|
|
773
884
|
* Gets the current experience towards a skill.
|
|
774
885
|
*
|
|
@@ -776,93 +887,102 @@ declare namespace net.runelite.api {
|
|
|
776
887
|
* @return the experience
|
|
777
888
|
*/
|
|
778
889
|
getSkillExperience(skill: Skill): number;
|
|
890
|
+
|
|
779
891
|
/**
|
|
780
892
|
* Get the total experience of the player
|
|
781
893
|
*
|
|
782
894
|
* @return
|
|
783
895
|
*/
|
|
784
896
|
getOverallExperience(): number;
|
|
897
|
+
|
|
785
898
|
/**
|
|
786
899
|
* Refreshes the chat.
|
|
787
900
|
*/
|
|
788
901
|
refreshChat(): void;
|
|
902
|
+
|
|
789
903
|
/**
|
|
790
904
|
* Gets the map of chat buffers.
|
|
791
905
|
*
|
|
792
906
|
* @return the chat buffers
|
|
793
907
|
*/
|
|
794
908
|
getChatLineMap(): Record<number, ChatLineBuffer>;
|
|
909
|
+
|
|
795
910
|
/**
|
|
796
911
|
* Map of message node id to message node
|
|
797
912
|
*
|
|
798
913
|
* @return the map
|
|
799
914
|
*/
|
|
800
915
|
getMessages(): IterableHashTable<MessageNode>;
|
|
916
|
+
|
|
801
917
|
/**
|
|
802
918
|
* Gets the object composition corresponding to an objects ID.
|
|
803
919
|
*
|
|
804
920
|
* @param objectId the object ID
|
|
805
921
|
* @return the corresponding object composition
|
|
806
|
-
* @see ObjectID
|
|
922
|
+
* @see net.runelite.api.gameval.ObjectID
|
|
807
923
|
*/
|
|
808
924
|
getObjectDefinition(objectId: number): ObjectComposition;
|
|
925
|
+
|
|
809
926
|
/**
|
|
810
927
|
* Gets the NPC composition corresponding to an NPCs ID.
|
|
811
928
|
*
|
|
812
929
|
* @param npcId the npc ID
|
|
813
930
|
* @return the corresponding NPC composition
|
|
814
|
-
* @see NpcID
|
|
931
|
+
* @see net.runelite.api.gameval.NpcID
|
|
815
932
|
*/
|
|
816
933
|
getNpcDefinition(npcId: number): NPCComposition;
|
|
934
|
+
|
|
817
935
|
/**
|
|
818
936
|
* Gets the {@link StructComposition} for a given struct ID
|
|
819
937
|
*
|
|
820
938
|
* @see StructID
|
|
821
939
|
*/
|
|
822
940
|
getStructComposition(structID: number): StructComposition;
|
|
941
|
+
|
|
823
942
|
/**
|
|
824
943
|
* Gets the client's cache of in memory struct compositions
|
|
825
944
|
*/
|
|
826
945
|
getStructCompositionCache(): NodeCache;
|
|
946
|
+
|
|
827
947
|
/**
|
|
828
948
|
* Gets a entry out of a DBTable Row
|
|
829
949
|
*/
|
|
830
|
-
getDBTableField(
|
|
831
|
-
|
|
832
|
-
column: number,
|
|
833
|
-
tupleIndex: number,
|
|
834
|
-
): Record<string, any>[];
|
|
950
|
+
getDBTableField(rowID: number, column: number, tupleIndex: number): any[];
|
|
951
|
+
|
|
835
952
|
getDBRowConfig(rowID: number): net.runelite.api.dbtable.DBRowConfig;
|
|
953
|
+
|
|
836
954
|
/**
|
|
837
955
|
* Uses an index to find rows containing a certain value in a column.
|
|
838
956
|
* An index must exist for this column.
|
|
839
957
|
*/
|
|
840
|
-
getDBRowsByValue(
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
):
|
|
958
|
+
getDBRowsByValue(table: number, column: number, tupleIndex: number, value: any): number[];
|
|
959
|
+
|
|
960
|
+
/**
|
|
961
|
+
* Gets all rows in a DBTable
|
|
962
|
+
*/
|
|
963
|
+
getDBTableRows(table: number): number[];
|
|
964
|
+
|
|
846
965
|
/**
|
|
847
966
|
* Get a map element config by id
|
|
848
967
|
*
|
|
849
968
|
* @param id the id
|
|
850
969
|
*/
|
|
851
|
-
getMapElementConfig(
|
|
852
|
-
|
|
853
|
-
): net.runelite.api.worldmap.MapElementConfig;
|
|
970
|
+
getMapElementConfig(id: number): net.runelite.api.worldmap.MapElementConfig;
|
|
971
|
+
|
|
854
972
|
/**
|
|
855
973
|
* Gets a sprite of the map scene
|
|
856
974
|
*
|
|
857
975
|
* @return the sprite
|
|
858
976
|
*/
|
|
859
977
|
getMapScene(): IndexedSprite[];
|
|
978
|
+
|
|
860
979
|
/**
|
|
861
980
|
* Gets an array of currently drawn mini-map dots.
|
|
862
981
|
*
|
|
863
982
|
* @return all mini-map dots
|
|
864
983
|
*/
|
|
865
984
|
getMapDots(): SpritePixels[];
|
|
985
|
+
|
|
866
986
|
/**
|
|
867
987
|
* Gets the local clients game cycle.
|
|
868
988
|
* <p>
|
|
@@ -871,30 +991,35 @@ declare namespace net.runelite.api {
|
|
|
871
991
|
* @return the game cycle
|
|
872
992
|
*/
|
|
873
993
|
getGameCycle(): number;
|
|
994
|
+
|
|
874
995
|
/**
|
|
875
996
|
* Gets an array of current map icon sprites.
|
|
876
997
|
*
|
|
877
998
|
* @return the map icons
|
|
878
999
|
*/
|
|
879
1000
|
getMapIcons(): SpritePixels[];
|
|
1001
|
+
|
|
880
1002
|
/**
|
|
881
1003
|
* Gets an array of mod icon sprites.
|
|
882
1004
|
*
|
|
883
1005
|
* @return the mod icons
|
|
884
1006
|
*/
|
|
885
1007
|
getModIcons(): IndexedSprite[];
|
|
1008
|
+
|
|
886
1009
|
/**
|
|
887
1010
|
* Replaces the current mod icons with a new array.
|
|
888
1011
|
*
|
|
889
1012
|
* @param modIcons the new mod icons
|
|
890
1013
|
*/
|
|
891
1014
|
setModIcons(modIcons: IndexedSprite[]): void;
|
|
1015
|
+
|
|
892
1016
|
/**
|
|
893
1017
|
* Creates an empty indexed sprite.
|
|
894
1018
|
*
|
|
895
1019
|
* @return the sprite
|
|
896
1020
|
*/
|
|
897
1021
|
createIndexedSprite(): IndexedSprite;
|
|
1022
|
+
|
|
898
1023
|
/**
|
|
899
1024
|
* Creates a sprite image with given width and height containing the
|
|
900
1025
|
* pixels.
|
|
@@ -904,21 +1029,35 @@ declare namespace net.runelite.api {
|
|
|
904
1029
|
* @param height the height
|
|
905
1030
|
* @return the sprite image
|
|
906
1031
|
*/
|
|
907
|
-
createSpritePixels(
|
|
908
|
-
|
|
909
|
-
width: number,
|
|
910
|
-
height: number,
|
|
911
|
-
): SpritePixels;
|
|
1032
|
+
createSpritePixels(pixels: number[], width: number, height: number): SpritePixels;
|
|
1033
|
+
|
|
912
1034
|
/**
|
|
913
1035
|
* Gets the location of the local player.
|
|
914
1036
|
*
|
|
915
1037
|
* @return the local player location
|
|
916
1038
|
*/
|
|
917
1039
|
getLocalDestinationLocation(): net.runelite.api.coords.LocalPoint | null;
|
|
1040
|
+
|
|
918
1041
|
/**
|
|
919
1042
|
* Creates a RuneLiteObject, which is a modified {@link GraphicsObject}
|
|
920
1043
|
*/
|
|
921
1044
|
createRuneLiteObject(): RuneLiteObject;
|
|
1045
|
+
|
|
1046
|
+
/**
|
|
1047
|
+
* Registers a new {@link RuneLiteObjectController} to its corresponding {@link WorldView}.
|
|
1048
|
+
*/
|
|
1049
|
+
registerRuneLiteObject(controller: RuneLiteObjectController): void;
|
|
1050
|
+
|
|
1051
|
+
/**
|
|
1052
|
+
* Removes a new {@link RuneLiteObjectController} from its corresponding {@link WorldView}.
|
|
1053
|
+
*/
|
|
1054
|
+
removeRuneLiteObject(controller: RuneLiteObjectController): void;
|
|
1055
|
+
|
|
1056
|
+
/**
|
|
1057
|
+
* Checks whether a {@link RuneLiteObjectController} is registered to any {@link WorldView}.
|
|
1058
|
+
*/
|
|
1059
|
+
isRuneLiteObjectRegistered(controller: RuneLiteObjectController): boolean;
|
|
1060
|
+
|
|
922
1061
|
/**
|
|
923
1062
|
* Loads an unlit model from the cache. The returned model shares
|
|
924
1063
|
* data such as faces, face colors, face transparencies, and vertex points with
|
|
@@ -931,8 +1070,13 @@ declare namespace net.runelite.api {
|
|
|
931
1070
|
* @return the model or null if it is loading or nonexistent
|
|
932
1071
|
*/
|
|
933
1072
|
loadModelData(id: number): ModelData | null;
|
|
1073
|
+
|
|
934
1074
|
mergeModels(models: ModelData[], length: number): ModelData;
|
|
935
1075
|
mergeModels(...models: ModelData[]): ModelData;
|
|
1076
|
+
|
|
1077
|
+
mergeModels(models: Model[], length: number): Model;
|
|
1078
|
+
mergeModels(...models: Model[]): Model;
|
|
1079
|
+
|
|
936
1080
|
/**
|
|
937
1081
|
* Loads and lights a model from the cache
|
|
938
1082
|
*
|
|
@@ -942,6 +1086,7 @@ declare namespace net.runelite.api {
|
|
|
942
1086
|
* @return the model or null if it is loading or nonexistent
|
|
943
1087
|
*/
|
|
944
1088
|
loadModel(id: number): Model | null;
|
|
1089
|
+
|
|
945
1090
|
/**
|
|
946
1091
|
* Loads a model from the cache and also recolors it
|
|
947
1092
|
*
|
|
@@ -950,28 +1095,28 @@ declare namespace net.runelite.api {
|
|
|
950
1095
|
* @param colorToReplace array of hsl color values to replace in the model
|
|
951
1096
|
* @return the model or null if it is loading or nonexistent
|
|
952
1097
|
*/
|
|
953
|
-
loadModel(
|
|
954
|
-
|
|
955
|
-
colorToFind: number[],
|
|
956
|
-
colorToReplace: number[],
|
|
957
|
-
): Model | null;
|
|
1098
|
+
loadModel(id: number, colorToFind: number[], colorToReplace: number[]): Model | null;
|
|
1099
|
+
|
|
958
1100
|
/**
|
|
959
1101
|
* Loads an animation from the cache
|
|
960
1102
|
*
|
|
961
1103
|
* @param id the ID of the animation. Any int is allowed, but implementations in the client
|
|
962
|
-
* should be defined in {@link AnimationID}
|
|
1104
|
+
* should be defined in {@link net.runelite.api.gameval.AnimationID}
|
|
963
1105
|
*/
|
|
964
1106
|
loadAnimation(id: number): Animation;
|
|
1107
|
+
|
|
965
1108
|
/**
|
|
966
1109
|
* Gets the music volume
|
|
967
1110
|
* @return volume 0-255 inclusive
|
|
968
1111
|
*/
|
|
969
1112
|
getMusicVolume(): number;
|
|
1113
|
+
|
|
970
1114
|
/**
|
|
971
1115
|
* Sets the music volume
|
|
972
1116
|
* @param volume 0-255 inclusive
|
|
973
1117
|
*/
|
|
974
1118
|
setMusicVolume(volume: number): void;
|
|
1119
|
+
|
|
975
1120
|
/**
|
|
976
1121
|
* Play a sound effect at the player's current location. This is how UI,
|
|
977
1122
|
* and player-generated (e.g. mining, woodcutting) sound effects are
|
|
@@ -981,6 +1126,7 @@ declare namespace net.runelite.api {
|
|
|
981
1126
|
* {@link SoundEffectID} for some common ones
|
|
982
1127
|
*/
|
|
983
1128
|
playSoundEffect(id: number): void;
|
|
1129
|
+
|
|
984
1130
|
/**
|
|
985
1131
|
* Play a sound effect from some point in the world.
|
|
986
1132
|
*
|
|
@@ -992,6 +1138,7 @@ declare namespace net.runelite.api {
|
|
|
992
1138
|
* from
|
|
993
1139
|
*/
|
|
994
1140
|
playSoundEffect(id: number, x: number, y: number, range: number): void;
|
|
1141
|
+
|
|
995
1142
|
/**
|
|
996
1143
|
* Play a sound effect from some point in the world.
|
|
997
1144
|
*
|
|
@@ -1003,13 +1150,8 @@ declare namespace net.runelite.api {
|
|
|
1003
1150
|
* from
|
|
1004
1151
|
* @param delay the amount of frames before the sound starts playing
|
|
1005
1152
|
*/
|
|
1006
|
-
playSoundEffect(
|
|
1007
|
-
|
|
1008
|
-
x: number,
|
|
1009
|
-
y: number,
|
|
1010
|
-
range: number,
|
|
1011
|
-
delay: number,
|
|
1012
|
-
): void;
|
|
1153
|
+
playSoundEffect(id: number, x: number, y: number, range: number, delay: number): void;
|
|
1154
|
+
|
|
1013
1155
|
/**
|
|
1014
1156
|
* Plays a sound effect, even if the player's sound effect volume is muted.
|
|
1015
1157
|
*
|
|
@@ -1018,12 +1160,20 @@ declare namespace net.runelite.api {
|
|
|
1018
1160
|
* in the settings interface. if the sound effect volume is not muted, uses the set volume
|
|
1019
1161
|
*/
|
|
1020
1162
|
playSoundEffect(id: number, volume: number): void;
|
|
1163
|
+
|
|
1164
|
+
/**
|
|
1165
|
+
* Get the currently playing midi requests.
|
|
1166
|
+
* @return
|
|
1167
|
+
*/
|
|
1168
|
+
getActiveMidiRequests(): MidiRequest[];
|
|
1169
|
+
|
|
1021
1170
|
/**
|
|
1022
1171
|
* Gets the clients graphic buffer provider.
|
|
1023
1172
|
*
|
|
1024
1173
|
* @return the buffer provider
|
|
1025
1174
|
*/
|
|
1026
1175
|
getBufferProvider(): BufferProvider;
|
|
1176
|
+
|
|
1027
1177
|
/**
|
|
1028
1178
|
* Gets the amount of client ticks since the last mouse movement occurred.
|
|
1029
1179
|
*
|
|
@@ -1031,11 +1181,13 @@ declare namespace net.runelite.api {
|
|
|
1031
1181
|
* @see Constants#CLIENT_TICK_LENGTH
|
|
1032
1182
|
*/
|
|
1033
1183
|
getMouseIdleTicks(): number;
|
|
1184
|
+
|
|
1034
1185
|
/**
|
|
1035
1186
|
* Gets the time at which the last mouse press occurred in milliseconds since
|
|
1036
1187
|
* the UNIX epoch.
|
|
1037
1188
|
*/
|
|
1038
1189
|
getMouseLastPressedMillis(): number;
|
|
1190
|
+
|
|
1039
1191
|
/**
|
|
1040
1192
|
* Gets the amount of client ticks since the last keyboard press occurred.
|
|
1041
1193
|
*
|
|
@@ -1043,6 +1195,7 @@ declare namespace net.runelite.api {
|
|
|
1043
1195
|
* @see Constants#CLIENT_TICK_LENGTH
|
|
1044
1196
|
*/
|
|
1045
1197
|
getKeyboardIdleTicks(): number;
|
|
1198
|
+
|
|
1046
1199
|
/**
|
|
1047
1200
|
* Changes how game behaves based on memory mode. Low memory mode skips
|
|
1048
1201
|
* drawing of all floors and renders ground textures in low quality.
|
|
@@ -1050,57 +1203,68 @@ declare namespace net.runelite.api {
|
|
|
1050
1203
|
* @param lowMemory if we are running in low memory mode or not
|
|
1051
1204
|
*/
|
|
1052
1205
|
changeMemoryMode(lowMemory: boolean): void;
|
|
1206
|
+
|
|
1053
1207
|
/**
|
|
1054
1208
|
* Get the item container for an inventory.
|
|
1055
1209
|
*
|
|
1056
1210
|
* @param inventory the inventory type
|
|
1057
1211
|
* @return the item container
|
|
1058
|
-
* @see InventoryID
|
|
1212
|
+
* @see net.runelite.api.gameval.InventoryID
|
|
1059
1213
|
*/
|
|
1060
1214
|
getItemContainer(inventory: InventoryID): ItemContainer | null;
|
|
1215
|
+
|
|
1061
1216
|
/**
|
|
1062
1217
|
* Get an item container by id
|
|
1063
1218
|
*
|
|
1064
1219
|
* @param id the inventory id
|
|
1065
1220
|
* @return the item container
|
|
1066
|
-
* @see InventoryID
|
|
1221
|
+
* @see net.runelite.api.gameval.InventoryID
|
|
1067
1222
|
*/
|
|
1068
1223
|
getItemContainer(id: number): ItemContainer | null;
|
|
1224
|
+
|
|
1069
1225
|
/**
|
|
1070
1226
|
* Get all item containers
|
|
1071
1227
|
* @return
|
|
1072
1228
|
*/
|
|
1073
1229
|
getItemContainers(): HashTable<ItemContainer>;
|
|
1230
|
+
|
|
1074
1231
|
/**
|
|
1075
1232
|
* Gets the length of the cs2 vm's int stack
|
|
1076
1233
|
*/
|
|
1077
1234
|
getIntStackSize(): number;
|
|
1235
|
+
|
|
1078
1236
|
/**
|
|
1079
1237
|
* Sets the length of the cs2 vm's int stack
|
|
1080
1238
|
*/
|
|
1081
1239
|
setIntStackSize(stackSize: number): void;
|
|
1240
|
+
|
|
1082
1241
|
/**
|
|
1083
1242
|
* Gets the cs2 vm's int stack
|
|
1084
1243
|
*/
|
|
1085
1244
|
getIntStack(): number[];
|
|
1245
|
+
|
|
1086
1246
|
/**
|
|
1087
|
-
* Gets the length of the cs2 vm's
|
|
1247
|
+
* Gets the length of the cs2 vm's object stack
|
|
1088
1248
|
*/
|
|
1089
|
-
|
|
1249
|
+
getObjectStackSize(): number;
|
|
1250
|
+
|
|
1090
1251
|
/**
|
|
1091
|
-
* Sets the length of the cs2 vm's
|
|
1252
|
+
* Sets the length of the cs2 vm's object stack
|
|
1092
1253
|
*/
|
|
1093
|
-
|
|
1254
|
+
setObjectStackSize(stackSize: number): void;
|
|
1255
|
+
|
|
1094
1256
|
/**
|
|
1095
|
-
* Gets the cs2 vm's
|
|
1257
|
+
* Gets the cs2 vm's object stack
|
|
1096
1258
|
*/
|
|
1097
|
-
|
|
1259
|
+
getObjectStack(): any[];
|
|
1260
|
+
|
|
1098
1261
|
/**
|
|
1099
1262
|
* Get the size of one of the cs2 vm's arrays.
|
|
1100
1263
|
* @param arrayId the array id
|
|
1101
1264
|
* @return
|
|
1102
1265
|
*/
|
|
1103
1266
|
getArraySizes(arrayId: number): number;
|
|
1267
|
+
|
|
1104
1268
|
/**
|
|
1105
1269
|
* Get one of the cs2 vm's arrays. Use {@link #getArraySizes(int)} to get
|
|
1106
1270
|
* the array length.
|
|
@@ -1108,18 +1272,21 @@ declare namespace net.runelite.api {
|
|
|
1108
1272
|
* @return
|
|
1109
1273
|
*/
|
|
1110
1274
|
getArray(arrayId: number): number[];
|
|
1275
|
+
|
|
1111
1276
|
/**
|
|
1112
1277
|
* Gets the cs2 vm's active widget
|
|
1113
1278
|
*
|
|
1114
1279
|
* This is used for all {@code cc_*} operations with a {@code 0} operand
|
|
1115
1280
|
*/
|
|
1116
1281
|
getScriptActiveWidget(): net.runelite.api.widgets.Widget;
|
|
1282
|
+
|
|
1117
1283
|
/**
|
|
1118
1284
|
* Gets the cs2 vm's "dot" widget
|
|
1119
1285
|
*
|
|
1120
1286
|
* This is used for all {@code .cc_*} operations with a {@code 1} operand
|
|
1121
1287
|
*/
|
|
1122
1288
|
getScriptDotWidget(): net.runelite.api.widgets.Widget;
|
|
1289
|
+
|
|
1123
1290
|
/**
|
|
1124
1291
|
* Checks whether a player is on the friends list.
|
|
1125
1292
|
*
|
|
@@ -1128,30 +1295,35 @@ declare namespace net.runelite.api {
|
|
|
1128
1295
|
* @return true if the player is friends
|
|
1129
1296
|
*/
|
|
1130
1297
|
isFriended(name: string, mustBeLoggedIn: boolean): boolean;
|
|
1298
|
+
|
|
1131
1299
|
/**
|
|
1132
1300
|
* Retrieve the friends chat manager
|
|
1133
1301
|
*
|
|
1134
1302
|
* @return
|
|
1135
1303
|
*/
|
|
1136
1304
|
getFriendsChatManager(): FriendsChatManager | null;
|
|
1305
|
+
|
|
1137
1306
|
/**
|
|
1138
1307
|
* Retrieve the nameable container containing friends
|
|
1139
1308
|
*
|
|
1140
1309
|
* @return
|
|
1141
1310
|
*/
|
|
1142
1311
|
getFriendContainer(): FriendContainer;
|
|
1312
|
+
|
|
1143
1313
|
/**
|
|
1144
1314
|
* Retrieve the nameable container containing ignores
|
|
1145
1315
|
*
|
|
1146
1316
|
* @return
|
|
1147
1317
|
*/
|
|
1148
1318
|
getIgnoreContainer(): NameableContainer<Ignore>;
|
|
1319
|
+
|
|
1149
1320
|
/**
|
|
1150
1321
|
* Gets the clients saved preferences.
|
|
1151
1322
|
*
|
|
1152
1323
|
* @return the client preferences
|
|
1153
1324
|
*/
|
|
1154
1325
|
getPreferences(): Preferences;
|
|
1326
|
+
|
|
1155
1327
|
/**
|
|
1156
1328
|
* Get the target camera yaw.
|
|
1157
1329
|
* The target yaw is the yaw the camera should use based on player input.
|
|
@@ -1161,6 +1333,7 @@ declare namespace net.runelite.api {
|
|
|
1161
1333
|
* @return the target camera yaw
|
|
1162
1334
|
*/
|
|
1163
1335
|
getCameraYawTarget(): number;
|
|
1336
|
+
|
|
1164
1337
|
/**
|
|
1165
1338
|
* Get the target camera pitch
|
|
1166
1339
|
* The target pitch is the pitch the camera should use based on player input.
|
|
@@ -1170,29 +1343,34 @@ declare namespace net.runelite.api {
|
|
|
1170
1343
|
* @return the target camera pitch
|
|
1171
1344
|
*/
|
|
1172
1345
|
getCameraPitchTarget(): number;
|
|
1346
|
+
|
|
1173
1347
|
/**
|
|
1174
1348
|
* Set the target camera yaw
|
|
1175
1349
|
*
|
|
1176
1350
|
* @param cameraYawTarget target camera yaw
|
|
1177
1351
|
*/
|
|
1178
1352
|
setCameraYawTarget(cameraYawTarget: number): void;
|
|
1353
|
+
|
|
1179
1354
|
/**
|
|
1180
1355
|
* Set the target camera pitch
|
|
1181
1356
|
*
|
|
1182
1357
|
* @param cameraPitchTarget target camera pitch
|
|
1183
1358
|
*/
|
|
1184
1359
|
setCameraPitchTarget(cameraPitchTarget: number): void;
|
|
1360
|
+
|
|
1185
1361
|
/**
|
|
1186
1362
|
* Sets the camera speed
|
|
1187
1363
|
* @param speed
|
|
1188
1364
|
*/
|
|
1189
1365
|
setCameraSpeed(speed: number): void;
|
|
1366
|
+
|
|
1190
1367
|
/**
|
|
1191
1368
|
* Sets the mask for which mouse buttons control the camera.
|
|
1192
1369
|
* Use 0 for the default behavior of mouse button 4 if "middle mouse moves camera" is on.
|
|
1193
1370
|
* @param mask
|
|
1194
1371
|
*/
|
|
1195
1372
|
setCameraMouseButtonMask(mask: number): void;
|
|
1373
|
+
|
|
1196
1374
|
/**
|
|
1197
1375
|
* Sets whether the camera pitch can exceed the normal limits set
|
|
1198
1376
|
* by the RuneScape client.
|
|
@@ -1200,38 +1378,45 @@ declare namespace net.runelite.api {
|
|
|
1200
1378
|
* @param enabled new camera pitch relaxer value
|
|
1201
1379
|
*/
|
|
1202
1380
|
setCameraPitchRelaxerEnabled(enabled: boolean): void;
|
|
1381
|
+
|
|
1203
1382
|
/**
|
|
1204
1383
|
* Sets if the moving the camera horizontally should be backwards
|
|
1205
1384
|
*/
|
|
1206
1385
|
setInvertYaw(invertYaw: boolean): void;
|
|
1386
|
+
|
|
1207
1387
|
/**
|
|
1208
1388
|
* Sets if the moving the camera vertically should be backwards
|
|
1209
1389
|
*/
|
|
1210
1390
|
setInvertPitch(invertPitch: boolean): void;
|
|
1391
|
+
|
|
1211
1392
|
/**
|
|
1212
1393
|
* Gets the world map overview.
|
|
1213
1394
|
*
|
|
1214
1395
|
* @return the world map overview
|
|
1215
1396
|
* @see #getWorldMap()
|
|
1397
|
+
* @deprecated
|
|
1216
1398
|
*/
|
|
1217
|
-
/** @deprecated */
|
|
1218
1399
|
getRenderOverview(): RenderOverview;
|
|
1400
|
+
|
|
1219
1401
|
/**
|
|
1220
1402
|
* Get the world map
|
|
1221
1403
|
*/
|
|
1222
1404
|
getWorldMap(): net.runelite.api.worldmap.WorldMap;
|
|
1405
|
+
|
|
1223
1406
|
/**
|
|
1224
1407
|
* Checks whether the client is in stretched mode.
|
|
1225
1408
|
*
|
|
1226
1409
|
* @return true if the client is in stretched mode, false otherwise
|
|
1227
1410
|
*/
|
|
1228
1411
|
isStretchedEnabled(): boolean;
|
|
1412
|
+
|
|
1229
1413
|
/**
|
|
1230
1414
|
* Sets the client stretched mode state.
|
|
1231
1415
|
*
|
|
1232
1416
|
* @param state new stretched mode state
|
|
1233
1417
|
*/
|
|
1234
1418
|
setStretchedEnabled(state: boolean): void;
|
|
1419
|
+
|
|
1235
1420
|
/**
|
|
1236
1421
|
* Checks whether the client is using fast
|
|
1237
1422
|
* rendering techniques when stretching the canvas.
|
|
@@ -1239,6 +1424,7 @@ declare namespace net.runelite.api {
|
|
|
1239
1424
|
* @return true if stretching is fast rendering, false otherwise
|
|
1240
1425
|
*/
|
|
1241
1426
|
isStretchedFast(): boolean;
|
|
1427
|
+
|
|
1242
1428
|
/**
|
|
1243
1429
|
* Sets whether to use fast rendering techniques
|
|
1244
1430
|
* when stretching the canvas.
|
|
@@ -1246,6 +1432,7 @@ declare namespace net.runelite.api {
|
|
|
1246
1432
|
* @param state new fast rendering state
|
|
1247
1433
|
*/
|
|
1248
1434
|
setStretchedFast(state: boolean): void;
|
|
1435
|
+
|
|
1249
1436
|
/**
|
|
1250
1437
|
* Sets whether to force integer scale factor by rounding scale
|
|
1251
1438
|
* factors towards {@code zero} when stretching.
|
|
@@ -1253,18 +1440,21 @@ declare namespace net.runelite.api {
|
|
|
1253
1440
|
* @param state new integer scaling state
|
|
1254
1441
|
*/
|
|
1255
1442
|
setStretchedIntegerScaling(state: boolean): void;
|
|
1443
|
+
|
|
1256
1444
|
/**
|
|
1257
1445
|
* Sets whether to keep aspect ratio when stretching.
|
|
1258
1446
|
*
|
|
1259
1447
|
* @param state new keep aspect ratio state
|
|
1260
1448
|
*/
|
|
1261
1449
|
setStretchedKeepAspectRatio(state: boolean): void;
|
|
1450
|
+
|
|
1262
1451
|
/**
|
|
1263
1452
|
* Sets the scaling factor when scaling resizable mode.
|
|
1264
1453
|
*
|
|
1265
1454
|
* @param factor new scaling factor
|
|
1266
1455
|
*/
|
|
1267
1456
|
setScalingFactor(factor: number): void;
|
|
1457
|
+
|
|
1268
1458
|
/**
|
|
1269
1459
|
* Invalidates cached dimensions that are
|
|
1270
1460
|
* used for stretching and scaling.
|
|
@@ -1274,18 +1464,21 @@ declare namespace net.runelite.api {
|
|
|
1274
1464
|
* false otherwise.
|
|
1275
1465
|
*/
|
|
1276
1466
|
invalidateStretching(resize: boolean): void;
|
|
1467
|
+
|
|
1277
1468
|
/**
|
|
1278
1469
|
* Gets the current stretched dimensions of the client.
|
|
1279
1470
|
*
|
|
1280
1471
|
* @return the stretched dimensions
|
|
1281
1472
|
*/
|
|
1282
1473
|
getStretchedDimensions(): java.awt.Dimension;
|
|
1474
|
+
|
|
1283
1475
|
/**
|
|
1284
1476
|
* Gets the real dimensions of the client before being stretched.
|
|
1285
1477
|
*
|
|
1286
1478
|
* @return the real dimensions
|
|
1287
1479
|
*/
|
|
1288
1480
|
getRealDimensions(): java.awt.Dimension;
|
|
1481
|
+
|
|
1289
1482
|
/**
|
|
1290
1483
|
* Changes the selected world to log in to.
|
|
1291
1484
|
* <p>
|
|
@@ -1295,10 +1488,12 @@ declare namespace net.runelite.api {
|
|
|
1295
1488
|
* @param world the world to switch to
|
|
1296
1489
|
*/
|
|
1297
1490
|
changeWorld(world: World): void;
|
|
1491
|
+
|
|
1298
1492
|
/**
|
|
1299
1493
|
* Creates a new instance of a world.
|
|
1300
1494
|
*/
|
|
1301
1495
|
createWorld(): World;
|
|
1496
|
+
|
|
1302
1497
|
/**
|
|
1303
1498
|
* Draws an instance map for the current viewed plane.
|
|
1304
1499
|
*
|
|
@@ -1306,6 +1501,7 @@ declare namespace net.runelite.api {
|
|
|
1306
1501
|
* @return the map sprite
|
|
1307
1502
|
*/
|
|
1308
1503
|
drawInstanceMap(z: number): SpritePixels;
|
|
1504
|
+
|
|
1309
1505
|
/**
|
|
1310
1506
|
* Executes a client script from the cache
|
|
1311
1507
|
*
|
|
@@ -1316,112 +1512,95 @@ declare namespace net.runelite.api {
|
|
|
1316
1512
|
* @param args the script id, then any additional arguments to execute the script with
|
|
1317
1513
|
* @see ScriptID
|
|
1318
1514
|
*/
|
|
1319
|
-
runScript(...args:
|
|
1515
|
+
runScript(...args: any[]): void;
|
|
1516
|
+
|
|
1320
1517
|
/**
|
|
1321
1518
|
* Creates a blank ScriptEvent for executing a ClientScript2 script
|
|
1322
1519
|
*
|
|
1323
1520
|
* @param args the script id, then any additional arguments to execute the script with
|
|
1324
1521
|
* @see ScriptID
|
|
1325
1522
|
*/
|
|
1326
|
-
createScriptEvent(...args:
|
|
1523
|
+
createScriptEvent(...args: any[]): ScriptEvent;
|
|
1524
|
+
|
|
1327
1525
|
/**
|
|
1328
1526
|
* Checks whether or not there is any active hint arrow.
|
|
1329
1527
|
*
|
|
1330
1528
|
* @return true if there is a hint arrow, false otherwise
|
|
1331
1529
|
*/
|
|
1332
1530
|
hasHintArrow(): boolean;
|
|
1531
|
+
|
|
1333
1532
|
/**
|
|
1334
1533
|
* Gets the type of hint arrow currently displayed.
|
|
1335
1534
|
*
|
|
1336
1535
|
* @return the hint arrow type
|
|
1337
1536
|
*/
|
|
1338
1537
|
getHintArrowType(): number;
|
|
1538
|
+
|
|
1339
1539
|
/**
|
|
1340
1540
|
* Clears the current hint arrow.
|
|
1341
1541
|
*/
|
|
1342
1542
|
clearHintArrow(): void;
|
|
1543
|
+
|
|
1343
1544
|
/**
|
|
1344
1545
|
* Sets a hint arrow to point to the passed location.
|
|
1345
1546
|
*
|
|
1346
1547
|
* @param point the location
|
|
1347
1548
|
*/
|
|
1348
1549
|
setHintArrow(point: net.runelite.api.coords.WorldPoint): void;
|
|
1550
|
+
|
|
1349
1551
|
/**
|
|
1350
1552
|
* Sets the hint arrow to the passsed point
|
|
1351
1553
|
*
|
|
1352
1554
|
* @param point
|
|
1353
1555
|
*/
|
|
1354
1556
|
setHintArrow(point: net.runelite.api.coords.LocalPoint): void;
|
|
1557
|
+
|
|
1355
1558
|
/**
|
|
1356
1559
|
* Sets a hint arrow to point to the passed player.
|
|
1357
1560
|
*
|
|
1358
1561
|
* @param player the player
|
|
1359
1562
|
*/
|
|
1360
1563
|
setHintArrow(player: Player): void;
|
|
1564
|
+
|
|
1361
1565
|
/**
|
|
1362
1566
|
* Sets a hint arrow to point to the passed NPC.
|
|
1363
1567
|
*
|
|
1364
1568
|
* @param npc the NPC
|
|
1365
1569
|
*/
|
|
1366
1570
|
setHintArrow(npc: NPC): void;
|
|
1571
|
+
|
|
1367
1572
|
/**
|
|
1368
1573
|
* Gets the world point that the hint arrow is directed at.
|
|
1369
1574
|
*
|
|
1370
1575
|
* @return hint arrow target
|
|
1371
1576
|
*/
|
|
1372
1577
|
getHintArrowPoint(): net.runelite.api.coords.WorldPoint;
|
|
1578
|
+
|
|
1373
1579
|
/**
|
|
1374
1580
|
* Gets the player that the hint arrow is directed at.
|
|
1375
1581
|
*
|
|
1376
1582
|
* @return hint arrow target
|
|
1377
1583
|
*/
|
|
1378
1584
|
getHintArrowPlayer(): Player;
|
|
1585
|
+
|
|
1379
1586
|
/**
|
|
1380
1587
|
* Gets the NPC that the hint arrow is directed at.
|
|
1381
1588
|
*
|
|
1382
1589
|
* @return hint arrow target
|
|
1383
1590
|
*/
|
|
1384
1591
|
getHintArrowNpc(): NPC;
|
|
1385
|
-
|
|
1386
|
-
|
|
1387
|
-
|
|
1388
|
-
|
|
1389
|
-
*/
|
|
1390
|
-
isInterpolatePlayerAnimations(): boolean;
|
|
1391
|
-
/**
|
|
1392
|
-
* Sets the animation smoothing state for players.
|
|
1393
|
-
*
|
|
1394
|
-
* @param interpolate the new smoothing state
|
|
1395
|
-
*/
|
|
1396
|
-
setInterpolatePlayerAnimations(interpolate: boolean): void;
|
|
1397
|
-
/**
|
|
1398
|
-
* Checks whether animation smoothing is enabled for NPC.
|
|
1399
|
-
*
|
|
1400
|
-
* @return true if NPC animation smoothing is enabled, false otherwise
|
|
1401
|
-
*/
|
|
1402
|
-
isInterpolateNpcAnimations(): boolean;
|
|
1403
|
-
/**
|
|
1404
|
-
* Sets the animation smoothing state for NPCs.
|
|
1405
|
-
*
|
|
1406
|
-
* @param interpolate the new smoothing state
|
|
1407
|
-
*/
|
|
1408
|
-
setInterpolateNpcAnimations(interpolate: boolean): void;
|
|
1409
|
-
/**
|
|
1410
|
-
* Checks whether animation smoothing is enabled for objects.
|
|
1411
|
-
*
|
|
1412
|
-
* @return true if object animation smoothing is enabled, false otherwise
|
|
1413
|
-
*/
|
|
1414
|
-
isInterpolateObjectAnimations(): boolean;
|
|
1415
|
-
/**
|
|
1416
|
-
* Sets the animation smoothing state for objects.
|
|
1417
|
-
*
|
|
1418
|
-
* @param interpolate the new smoothing state
|
|
1419
|
-
*/
|
|
1420
|
-
setInterpolateObjectAnimations(interpolate: boolean): void;
|
|
1592
|
+
|
|
1593
|
+
getAnimationInterpolationFilter(): (id: number) => boolean;
|
|
1594
|
+
setAnimationInterpolationFilter(filter: (id: number) => boolean): void;
|
|
1595
|
+
|
|
1421
1596
|
getBoostedSkillLevels(): number[];
|
|
1597
|
+
|
|
1422
1598
|
getRealSkillLevels(): number[];
|
|
1599
|
+
|
|
1423
1600
|
getSkillExperiences(): number[];
|
|
1601
|
+
|
|
1424
1602
|
queueChangedSkill(skill: Skill): void;
|
|
1603
|
+
|
|
1425
1604
|
/**
|
|
1426
1605
|
* Gets a mapping of sprites to override.
|
|
1427
1606
|
* <p>
|
|
@@ -1429,6 +1608,7 @@ declare namespace net.runelite.api {
|
|
|
1429
1608
|
* and the value the sprite to replace it with.
|
|
1430
1609
|
*/
|
|
1431
1610
|
getSpriteOverrides(): Record<number, SpritePixels>;
|
|
1611
|
+
|
|
1432
1612
|
/**
|
|
1433
1613
|
* Gets a mapping of widget sprites to override.
|
|
1434
1614
|
* <p>
|
|
@@ -1436,146 +1616,182 @@ declare namespace net.runelite.api {
|
|
|
1436
1616
|
* and the value the sprite to replace the widgets sprite with.
|
|
1437
1617
|
*/
|
|
1438
1618
|
getWidgetSpriteOverrides(): Record<number, SpritePixels>;
|
|
1619
|
+
|
|
1439
1620
|
/**
|
|
1440
1621
|
* Sets the compass sprite.
|
|
1441
1622
|
*
|
|
1442
1623
|
* @param spritePixels the new sprite
|
|
1443
1624
|
*/
|
|
1444
1625
|
setCompass(spritePixels: SpritePixels): void;
|
|
1626
|
+
|
|
1445
1627
|
/**
|
|
1446
1628
|
* Returns widget sprite cache, to be used with {@link Client#getSpriteOverrides()}
|
|
1447
1629
|
*
|
|
1448
1630
|
* @return the cache
|
|
1449
1631
|
*/
|
|
1450
1632
|
getWidgetSpriteCache(): NodeCache;
|
|
1633
|
+
|
|
1451
1634
|
/**
|
|
1452
1635
|
* Gets the current server tick count.
|
|
1453
1636
|
*
|
|
1454
1637
|
* @return the tick count
|
|
1455
1638
|
*/
|
|
1456
1639
|
getTickCount(): number;
|
|
1640
|
+
|
|
1457
1641
|
/**
|
|
1458
1642
|
* Sets the current server tick count.
|
|
1459
1643
|
*
|
|
1460
1644
|
* @param tickCount the new tick count
|
|
1461
1645
|
*/
|
|
1462
1646
|
setTickCount(tickCount: number): void;
|
|
1647
|
+
|
|
1463
1648
|
/**
|
|
1464
1649
|
* Sets the inventory drag delay in client game cycles (20ms).
|
|
1465
1650
|
*
|
|
1466
1651
|
* @param delay the number of game cycles to delay dragging
|
|
1652
|
+
* @deprecated
|
|
1467
1653
|
*/
|
|
1468
|
-
/** @deprecated */
|
|
1469
1654
|
setInventoryDragDelay(delay: number): void;
|
|
1655
|
+
|
|
1656
|
+
/**
|
|
1657
|
+
* Get the hostname of the current world
|
|
1658
|
+
* @return
|
|
1659
|
+
*/
|
|
1660
|
+
getWorldHost(): string;
|
|
1661
|
+
|
|
1470
1662
|
/**
|
|
1471
1663
|
* Gets a set of current world types that apply to the logged in world.
|
|
1472
1664
|
*
|
|
1473
1665
|
* @return the types for current world
|
|
1474
1666
|
*/
|
|
1475
|
-
getWorldType():
|
|
1667
|
+
getWorldType(): Set<WorldType>;
|
|
1668
|
+
|
|
1476
1669
|
/**
|
|
1477
1670
|
* Get the camera mode
|
|
1478
1671
|
* @return 0 for normal, 1 for free camera
|
|
1479
1672
|
*/
|
|
1480
1673
|
getCameraMode(): number;
|
|
1674
|
+
|
|
1481
1675
|
/**
|
|
1482
1676
|
* Set the camera mode
|
|
1483
1677
|
* @param mode 0 for normal, 1 for free camera
|
|
1484
1678
|
*/
|
|
1485
1679
|
setCameraMode(mode: number): void;
|
|
1680
|
+
|
|
1486
1681
|
/**
|
|
1487
1682
|
* Get the camera focus point x
|
|
1488
1683
|
* Typically this is the player position, but can be other points in cutscenes or in free camera mode.
|
|
1489
1684
|
* @return
|
|
1490
1685
|
*/
|
|
1491
1686
|
getCameraFocalPointX(): number;
|
|
1687
|
+
|
|
1492
1688
|
/**
|
|
1493
1689
|
* Sets the camera focus point x. Requires the {@link #getCameraMode()} to be free camera.
|
|
1494
1690
|
* @param x
|
|
1495
1691
|
*/
|
|
1496
1692
|
setCameraFocalPointX(x: number): void;
|
|
1693
|
+
|
|
1497
1694
|
/**
|
|
1498
1695
|
* Get the camera focus point y
|
|
1499
1696
|
* Typically this is the player position, but can be other points in cutscenes or in free camera mode.
|
|
1500
1697
|
* @return
|
|
1501
1698
|
*/
|
|
1502
1699
|
getCameraFocalPointY(): number;
|
|
1700
|
+
|
|
1503
1701
|
/**
|
|
1504
1702
|
* Sets the camera focus point y. Requires the {@link #getCameraMode()} to be free camera.
|
|
1505
1703
|
* @param y
|
|
1506
1704
|
*/
|
|
1507
1705
|
setCameraFocalPointY(y: number): void;
|
|
1706
|
+
|
|
1508
1707
|
/**
|
|
1509
1708
|
* Get the camera focus point z
|
|
1510
1709
|
* Typically this is the player position, but can be other points in cutscenes or in free camera mode.
|
|
1511
1710
|
* @return
|
|
1512
1711
|
*/
|
|
1513
1712
|
getCameraFocalPointZ(): number;
|
|
1713
|
+
|
|
1514
1714
|
/**
|
|
1515
1715
|
* Sets the camera focus point z. Requires the {@link #getCameraMode()} to be free camera.
|
|
1516
1716
|
* @param z
|
|
1517
1717
|
*/
|
|
1518
1718
|
setCameraFocalPointZ(z: number): void;
|
|
1719
|
+
|
|
1519
1720
|
/**
|
|
1520
1721
|
* Sets the normal moving speed when using oculus orb (default value is 12)
|
|
1521
1722
|
*/
|
|
1522
1723
|
setFreeCameraSpeed(speed: number): void;
|
|
1724
|
+
|
|
1523
1725
|
/**
|
|
1524
1726
|
* Gets the enabled state for the Oculus orb mode
|
|
1727
|
+
* @deprecated
|
|
1525
1728
|
*/
|
|
1526
|
-
/** @deprecated */
|
|
1527
1729
|
getOculusOrbState(): number;
|
|
1730
|
+
|
|
1528
1731
|
/**
|
|
1529
1732
|
* Sets the enabled state for the Oculus orb state
|
|
1530
1733
|
*
|
|
1531
1734
|
* @param state boolean enabled value
|
|
1735
|
+
* @deprecated
|
|
1532
1736
|
*/
|
|
1533
|
-
/** @deprecated */
|
|
1534
1737
|
setOculusOrbState(state: number): void;
|
|
1738
|
+
|
|
1535
1739
|
/**
|
|
1536
1740
|
* Sets the normal moving speed when using oculus orb (default value is 12)
|
|
1741
|
+
* @deprecated
|
|
1537
1742
|
*/
|
|
1538
|
-
/** @deprecated */
|
|
1539
1743
|
setOculusOrbNormalSpeed(speed: number): void;
|
|
1744
|
+
|
|
1540
1745
|
/**
|
|
1541
1746
|
* Gets local X coord where the camera is pointing when the Oculus orb is active
|
|
1747
|
+
* @deprecated
|
|
1542
1748
|
*/
|
|
1543
|
-
/** @deprecated */
|
|
1544
1749
|
getOculusOrbFocalPointX(): number;
|
|
1750
|
+
|
|
1545
1751
|
/**
|
|
1546
1752
|
* Gets local Y coord where the camera is pointing when the Oculus orb is active
|
|
1753
|
+
* @deprecated
|
|
1547
1754
|
*/
|
|
1548
|
-
/** @deprecated */
|
|
1549
1755
|
getOculusOrbFocalPointY(): number;
|
|
1756
|
+
|
|
1550
1757
|
/**
|
|
1551
1758
|
* Opens in-game world hopper interface
|
|
1552
1759
|
*/
|
|
1553
1760
|
openWorldHopper(): void;
|
|
1761
|
+
|
|
1554
1762
|
/**
|
|
1555
1763
|
* Hops using in-game world hopper widget to another world
|
|
1556
1764
|
* @param world target world to hop to
|
|
1557
1765
|
*/
|
|
1558
1766
|
hopToWorld(world: World): void;
|
|
1767
|
+
|
|
1559
1768
|
/**
|
|
1560
1769
|
* Sets the RGB color of the skybox
|
|
1561
1770
|
*/
|
|
1562
1771
|
setSkyboxColor(skyboxColor: number): void;
|
|
1772
|
+
|
|
1563
1773
|
/**
|
|
1564
1774
|
* Gets the RGB color of the skybox
|
|
1565
1775
|
*/
|
|
1566
1776
|
getSkyboxColor(): number;
|
|
1777
|
+
|
|
1567
1778
|
isGpu(): boolean;
|
|
1568
1779
|
setGpuFlags(gpuflags: number): void;
|
|
1780
|
+
|
|
1569
1781
|
setExpandedMapLoading(chunks: number): void;
|
|
1570
1782
|
getExpandedMapLoading(): number;
|
|
1783
|
+
|
|
1571
1784
|
get3dZoom(): number;
|
|
1572
1785
|
getCenterX(): number;
|
|
1573
1786
|
getCenterY(): number;
|
|
1787
|
+
|
|
1574
1788
|
getTextureProvider(): TextureProvider;
|
|
1789
|
+
|
|
1575
1790
|
getRasterizer3D_clipMidX2(): number;
|
|
1576
1791
|
getRasterizer3D_clipNegativeMidX(): number;
|
|
1577
1792
|
getRasterizer3D_clipNegativeMidY(): number;
|
|
1578
1793
|
getRasterizer3D_clipMidY2(): number;
|
|
1794
|
+
|
|
1579
1795
|
checkClickbox(
|
|
1580
1796
|
projection: Projection,
|
|
1581
1797
|
model: Model,
|
|
@@ -1583,82 +1799,101 @@ declare namespace net.runelite.api {
|
|
|
1583
1799
|
x: number,
|
|
1584
1800
|
y: number,
|
|
1585
1801
|
z: number,
|
|
1586
|
-
hash: number
|
|
1802
|
+
hash: number
|
|
1587
1803
|
): void;
|
|
1804
|
+
|
|
1588
1805
|
/**
|
|
1589
1806
|
* Is a widget is in target mode?
|
|
1590
1807
|
*/
|
|
1591
1808
|
isWidgetSelected(): boolean;
|
|
1809
|
+
|
|
1592
1810
|
/**
|
|
1593
1811
|
* Sets if a widget is in target mode
|
|
1594
1812
|
*/
|
|
1595
1813
|
setWidgetSelected(selected: boolean): void;
|
|
1814
|
+
|
|
1596
1815
|
/**
|
|
1597
1816
|
* Get the selected widget, such as a selected spell or selected item (eg. "Use")
|
|
1598
1817
|
* @return the selected widget
|
|
1599
1818
|
*/
|
|
1600
1819
|
getSelectedWidget(): net.runelite.api.widgets.Widget | null;
|
|
1820
|
+
|
|
1601
1821
|
/**
|
|
1602
1822
|
* Returns client item composition cache
|
|
1603
1823
|
*/
|
|
1604
1824
|
getItemCompositionCache(): NodeCache;
|
|
1825
|
+
|
|
1605
1826
|
/**
|
|
1606
1827
|
* Returns client object composition cache
|
|
1607
1828
|
* @return
|
|
1608
1829
|
*/
|
|
1609
1830
|
getObjectCompositionCache(): NodeCache;
|
|
1831
|
+
|
|
1610
1832
|
/**
|
|
1611
1833
|
* Returns the client {@link Animation} cache
|
|
1612
1834
|
*/
|
|
1613
1835
|
getAnimationCache(): NodeCache;
|
|
1836
|
+
|
|
1614
1837
|
/**
|
|
1615
1838
|
* Returns the array of cross sprites that appear and animate when left-clicking
|
|
1616
1839
|
*/
|
|
1617
1840
|
getCrossSprites(): SpritePixels[];
|
|
1841
|
+
|
|
1618
1842
|
getEnum(id: number): EnumComposition;
|
|
1843
|
+
|
|
1619
1844
|
/**
|
|
1620
1845
|
* Draws a menu in the 2010 interface style.
|
|
1621
1846
|
*
|
|
1622
1847
|
* @param alpha background transparency of the menu
|
|
1623
1848
|
*/
|
|
1624
1849
|
draw2010Menu(alpha: number): void;
|
|
1850
|
+
|
|
1625
1851
|
/**
|
|
1626
1852
|
* Draws a menu in the OSRS interface style.
|
|
1627
1853
|
*
|
|
1628
1854
|
* @param alpha background transparency of the menu
|
|
1629
1855
|
*/
|
|
1630
1856
|
drawOriginalMenu(alpha: number): void;
|
|
1857
|
+
|
|
1631
1858
|
resetHealthBarCaches(): void;
|
|
1859
|
+
|
|
1632
1860
|
/**
|
|
1633
1861
|
* Returns the max item index + 1 from cache
|
|
1634
1862
|
*/
|
|
1635
1863
|
getItemCount(): number;
|
|
1864
|
+
|
|
1636
1865
|
/**
|
|
1637
1866
|
* Makes all widgets behave as if they are {@link WidgetConfig#WIDGET_USE_TARGET}
|
|
1638
1867
|
*/
|
|
1639
1868
|
setAllWidgetsAreOpTargetable(value: boolean): void;
|
|
1869
|
+
|
|
1640
1870
|
/**
|
|
1641
1871
|
* Sets the result count for GE search
|
|
1642
1872
|
*/
|
|
1643
1873
|
setGeSearchResultCount(count: number): void;
|
|
1874
|
+
|
|
1644
1875
|
/**
|
|
1645
1876
|
* Sets the array of item ids for GE search
|
|
1646
1877
|
*/
|
|
1647
1878
|
setGeSearchResultIds(ids: number[]): void;
|
|
1879
|
+
|
|
1648
1880
|
/**
|
|
1649
1881
|
* Sets the starting index in the item id array for GE search
|
|
1650
1882
|
*/
|
|
1651
1883
|
setGeSearchResultIndex(index: number): void;
|
|
1884
|
+
|
|
1652
1885
|
/**
|
|
1653
1886
|
* Sets the image to be used for the login screen, provided as SpritePixels
|
|
1654
1887
|
* If the image is larger than half the width of fixed mode,
|
|
1655
1888
|
* it won't get mirrored to the other side of the screen
|
|
1656
1889
|
*/
|
|
1657
1890
|
setLoginScreen(pixels: SpritePixels): void;
|
|
1891
|
+
|
|
1658
1892
|
/**
|
|
1659
1893
|
* Sets whether the flames on the login screen should be rendered
|
|
1660
1894
|
*/
|
|
1661
1895
|
setShouldRenderLoginScreenFire(val: boolean): void;
|
|
1896
|
+
|
|
1662
1897
|
/**
|
|
1663
1898
|
* Test if a key is pressed
|
|
1664
1899
|
* @param keycode the keycode
|
|
@@ -1666,6 +1901,7 @@ declare namespace net.runelite.api {
|
|
|
1666
1901
|
* @see KeyCode
|
|
1667
1902
|
*/
|
|
1668
1903
|
isKeyPressed(keycode: number): boolean;
|
|
1904
|
+
|
|
1669
1905
|
/**
|
|
1670
1906
|
* Get the list of message ids for the recently received cross-world messages. The upper 32 bits of the
|
|
1671
1907
|
* id is the world id, the lower is a sequence number per-world.
|
|
@@ -1673,93 +1909,108 @@ declare namespace net.runelite.api {
|
|
|
1673
1909
|
* @return
|
|
1674
1910
|
*/
|
|
1675
1911
|
getCrossWorldMessageIds(): number[];
|
|
1912
|
+
|
|
1676
1913
|
/**
|
|
1677
1914
|
* Get the index of the next message to be inserted in the cross world message id list
|
|
1678
1915
|
*
|
|
1679
1916
|
* @return
|
|
1680
1917
|
*/
|
|
1681
1918
|
getCrossWorldMessageIdsIndex(): number;
|
|
1919
|
+
|
|
1682
1920
|
/**
|
|
1683
1921
|
* Get the primary clan channel the player is in.
|
|
1684
1922
|
* @return
|
|
1685
1923
|
*/
|
|
1686
1924
|
getClanChannel(): net.runelite.api.clan.ClanChannel | null;
|
|
1925
|
+
|
|
1687
1926
|
/**
|
|
1688
1927
|
* Get the guest clan channel the player is in.
|
|
1689
1928
|
* @return
|
|
1690
1929
|
*/
|
|
1691
1930
|
getGuestClanChannel(): net.runelite.api.clan.ClanChannel | null;
|
|
1931
|
+
|
|
1692
1932
|
/**
|
|
1693
1933
|
* Get clan settings for the clan the user is in.
|
|
1694
1934
|
* @return
|
|
1695
1935
|
*/
|
|
1696
1936
|
getClanSettings(): net.runelite.api.clan.ClanSettings | null;
|
|
1937
|
+
|
|
1697
1938
|
/**
|
|
1698
1939
|
* Get the guest clan's settings.
|
|
1699
1940
|
* @return
|
|
1700
1941
|
*/
|
|
1701
1942
|
getGuestClanSettings(): net.runelite.api.clan.ClanSettings | null;
|
|
1943
|
+
|
|
1702
1944
|
/**
|
|
1703
1945
|
* Get clan channel by id.
|
|
1704
1946
|
* @param clanId the clan id
|
|
1705
1947
|
* @return
|
|
1706
1948
|
* @see net.runelite.api.clan.ClanID
|
|
1707
1949
|
*/
|
|
1708
|
-
getClanChannel(
|
|
1709
|
-
|
|
1710
|
-
): net.runelite.api.clan.ClanChannel | null;
|
|
1950
|
+
getClanChannel(clanId: number): net.runelite.api.clan.ClanChannel | null;
|
|
1951
|
+
|
|
1711
1952
|
/**
|
|
1712
1953
|
* Get clan settings by id
|
|
1713
1954
|
* @param clanId the clan id
|
|
1714
1955
|
* @return
|
|
1715
1956
|
* @see net.runelite.api.clan.ClanID
|
|
1716
1957
|
*/
|
|
1717
|
-
getClanSettings(
|
|
1718
|
-
|
|
1719
|
-
): net.runelite.api.clan.ClanSettings | null;
|
|
1958
|
+
getClanSettings(clanId: number): net.runelite.api.clan.ClanSettings | null;
|
|
1959
|
+
|
|
1720
1960
|
setUnlockedFps(unlock: boolean): void;
|
|
1721
1961
|
setUnlockedFpsTarget(fps: number): void;
|
|
1962
|
+
|
|
1722
1963
|
/**
|
|
1723
1964
|
* Gets the ambient sound effects
|
|
1724
1965
|
* @return
|
|
1966
|
+
* @deprecated
|
|
1725
1967
|
*/
|
|
1726
1968
|
getAmbientSoundEffects(): java.util.Deque<AmbientSoundEffect>;
|
|
1969
|
+
|
|
1727
1970
|
/**
|
|
1728
1971
|
* Set the amount of time until the client automatically logs out due to idle input.
|
|
1729
1972
|
* @param ticks client ticks
|
|
1730
1973
|
*/
|
|
1731
1974
|
setIdleTimeout(ticks: number): void;
|
|
1975
|
+
|
|
1732
1976
|
/**
|
|
1733
1977
|
* Get the amount of time until the client automatically logs out due to idle input.
|
|
1734
1978
|
* @return client ticks
|
|
1735
1979
|
*/
|
|
1736
1980
|
getIdleTimeout(): number;
|
|
1981
|
+
|
|
1737
1982
|
/**
|
|
1738
1983
|
* Get whether minimap zoom is enabled
|
|
1739
1984
|
* @return
|
|
1740
1985
|
*/
|
|
1741
1986
|
isMinimapZoom(): boolean;
|
|
1987
|
+
|
|
1742
1988
|
/**
|
|
1743
1989
|
* Set whether minimap zoom is enabled
|
|
1744
1990
|
* @param minimapZoom
|
|
1745
1991
|
*/
|
|
1746
1992
|
setMinimapZoom(minimapZoom: boolean): void;
|
|
1993
|
+
|
|
1747
1994
|
/**
|
|
1748
1995
|
* Gets the number of pixels per tile on the minimap. The default is 4.
|
|
1749
1996
|
* @return
|
|
1750
1997
|
*/
|
|
1751
1998
|
getMinimapZoom(): number;
|
|
1999
|
+
|
|
1752
2000
|
/**
|
|
1753
2001
|
* Set the number of pixels per tile on the minimap. The default is 4.
|
|
1754
2002
|
* @param zoom
|
|
1755
2003
|
*/
|
|
1756
2004
|
setMinimapZoom(zoom: number): void;
|
|
2005
|
+
|
|
1757
2006
|
/**
|
|
1758
2007
|
* Sets a callback to override the drawing of tiles on the minimap.
|
|
1759
2008
|
* Will be called per tile per frame.
|
|
1760
2009
|
*/
|
|
1761
|
-
setMinimapTileDrawer(drawTile:
|
|
2010
|
+
setMinimapTileDrawer(drawTile: TileFunction): void;
|
|
2011
|
+
|
|
1762
2012
|
getRasterizer(): Rasterizer;
|
|
2013
|
+
|
|
1763
2014
|
menuAction(
|
|
1764
2015
|
p0: number,
|
|
1765
2016
|
p1: number,
|
|
@@ -1767,19 +2018,48 @@ declare namespace net.runelite.api {
|
|
|
1767
2018
|
id: number,
|
|
1768
2019
|
itemId: number,
|
|
1769
2020
|
option: string,
|
|
1770
|
-
target: string
|
|
2021
|
+
target: string
|
|
1771
2022
|
): void;
|
|
2023
|
+
|
|
1772
2024
|
/**
|
|
1773
2025
|
* Get worldview by id
|
|
1774
2026
|
* @param id id, or -1 for top level worldview
|
|
1775
2027
|
* @return
|
|
1776
2028
|
*/
|
|
1777
2029
|
getWorldView(id: number): WorldView;
|
|
2030
|
+
|
|
1778
2031
|
/**
|
|
1779
2032
|
* Get the top level world view
|
|
1780
2033
|
* @return
|
|
1781
2034
|
*/
|
|
1782
2035
|
getTopLevelWorldView(): WorldView;
|
|
2036
|
+
|
|
2037
|
+
/**
|
|
2038
|
+
* Whether camera shaking effects are disabled at e.g. Barrows, ToA
|
|
2039
|
+
* @return
|
|
2040
|
+
*/
|
|
2041
|
+
isCameraShakeDisabled(): boolean;
|
|
2042
|
+
|
|
2043
|
+
/**
|
|
2044
|
+
* Set whether to disable camera shaking effects at e.g. Barrows, ToA
|
|
2045
|
+
* @param disabled
|
|
2046
|
+
*/
|
|
2047
|
+
setCameraShakeDisabled(disabled: boolean): void;
|
|
2048
|
+
|
|
2049
|
+
/**
|
|
2050
|
+
* Gets the current draw2D mask.
|
|
2051
|
+
* @return the current mask
|
|
2052
|
+
* @see Client#setDraw2DMask(int)
|
|
2053
|
+
*/
|
|
2054
|
+
getDraw2DMask(): number;
|
|
2055
|
+
|
|
2056
|
+
/**
|
|
2057
|
+
* Sets the current draw2D mask.
|
|
2058
|
+
* Use bit operations on the value returned by {@link Client#getDraw2DMask()} to modify specific features.
|
|
2059
|
+
* @param mask The new mask.
|
|
2060
|
+
*/
|
|
2061
|
+
setDraw2DMask(mask: number): void;
|
|
2062
|
+
|
|
1783
2063
|
/**
|
|
1784
2064
|
* Contains a 3D array of template chunks for instanced areas.
|
|
1785
2065
|
* <p>
|
|
@@ -1799,9 +2079,11 @@ declare namespace net.runelite.api {
|
|
|
1799
2079
|
* @return the array of instance template chunks
|
|
1800
2080
|
* @see Constants#CHUNK_SIZE
|
|
1801
2081
|
* @see InstanceTemplates
|
|
2082
|
+
* @see WorldView#getInstanceTemplateChunks()
|
|
2083
|
+
* @deprecated
|
|
1802
2084
|
*/
|
|
1803
|
-
/** @deprecated */
|
|
1804
2085
|
getInstanceTemplateChunks(): number[][][];
|
|
2086
|
+
|
|
1805
2087
|
/**
|
|
1806
2088
|
* Returns a 2D array containing XTEA encryption keys used to decrypt
|
|
1807
2089
|
* map region files.
|
|
@@ -1813,63 +2095,61 @@ declare namespace net.runelite.api {
|
|
|
1813
2095
|
* spread across 4 integers.
|
|
1814
2096
|
*
|
|
1815
2097
|
* @return the XTEA encryption keys
|
|
2098
|
+
* @deprecated
|
|
1816
2099
|
*/
|
|
1817
|
-
/** @deprecated */
|
|
1818
2100
|
getXteaKeys(): number[][];
|
|
2101
|
+
|
|
1819
2102
|
/**
|
|
1820
2103
|
* Checks whether the scene is in an instanced region.
|
|
2104
|
+
* @see WorldView#isInstance()
|
|
2105
|
+
* @deprecated
|
|
1821
2106
|
*/
|
|
1822
|
-
/** @deprecated */
|
|
1823
2107
|
isInInstancedRegion(): boolean;
|
|
2108
|
+
|
|
1824
2109
|
/**
|
|
1825
2110
|
* Gets an array of map region IDs that are currently loaded.
|
|
1826
2111
|
*
|
|
1827
2112
|
* @return the map regions
|
|
2113
|
+
* @deprecated
|
|
1828
2114
|
*/
|
|
1829
|
-
/** @deprecated */
|
|
1830
2115
|
getMapRegions(): number[];
|
|
2116
|
+
|
|
1831
2117
|
/**
|
|
1832
2118
|
* Gets the current scene
|
|
2119
|
+
* @see WorldView#getScene()
|
|
2120
|
+
* @deprecated
|
|
1833
2121
|
*/
|
|
1834
|
-
|
|
1835
|
-
|
|
2122
|
+
getScene(): Scene | null;
|
|
2123
|
+
|
|
1836
2124
|
/**
|
|
1837
2125
|
* Gets a list of all valid players from the player cache.
|
|
1838
2126
|
*
|
|
1839
2127
|
* @return a list of all players
|
|
2128
|
+
* @see WorldView#players()
|
|
2129
|
+
* @deprecated
|
|
1840
2130
|
*/
|
|
1841
|
-
|
|
1842
|
-
|
|
2131
|
+
getPlayers(): Player[];
|
|
2132
|
+
|
|
1843
2133
|
/**
|
|
1844
2134
|
* Gets a list of all valid NPCs from the NPC cache.
|
|
1845
2135
|
*
|
|
1846
2136
|
* @return a list of all NPCs
|
|
2137
|
+
* @see WorldView#npcs()
|
|
2138
|
+
* @deprecated
|
|
1847
2139
|
*/
|
|
1848
|
-
|
|
1849
|
-
|
|
1850
|
-
/**
|
|
1851
|
-
* Gets an array of all cached NPCs.
|
|
1852
|
-
*
|
|
1853
|
-
* @return cached NPCs
|
|
1854
|
-
*/
|
|
1855
|
-
/** @deprecated */
|
|
1856
|
-
getCachedNPCs(): NPC[];
|
|
1857
|
-
/**
|
|
1858
|
-
* Gets an array of all cached players.
|
|
1859
|
-
*
|
|
1860
|
-
* @return cached players
|
|
1861
|
-
*/
|
|
1862
|
-
/** @deprecated */
|
|
1863
|
-
getCachedPlayers(): Player[];
|
|
2140
|
+
getNpcs(): NPC[];
|
|
2141
|
+
|
|
1864
2142
|
/**
|
|
1865
2143
|
* Gets an array of tile collision data.
|
|
1866
2144
|
* <p>
|
|
1867
2145
|
* The index into the array is the plane/z-axis coordinate.
|
|
1868
2146
|
*
|
|
1869
2147
|
* @return the collision data
|
|
2148
|
+
* @see WorldView#getCollisionMaps()
|
|
2149
|
+
* @deprecated
|
|
1870
2150
|
*/
|
|
1871
|
-
/** @deprecated */
|
|
1872
2151
|
getCollisionMaps(): CollisionData[] | null;
|
|
2152
|
+
|
|
1873
2153
|
/**
|
|
1874
2154
|
* Gets the current plane the player is on.
|
|
1875
2155
|
* <p>
|
|
@@ -1881,25 +2161,31 @@ declare namespace net.runelite.api {
|
|
|
1881
2161
|
* level use a tile offset and are still considered plane 0 by the game.
|
|
1882
2162
|
*
|
|
1883
2163
|
* @return the plane
|
|
2164
|
+
* @see WorldView#getPlane()
|
|
2165
|
+
* @deprecated
|
|
1884
2166
|
*/
|
|
1885
|
-
/** @deprecated */
|
|
1886
2167
|
getPlane(): number;
|
|
2168
|
+
|
|
1887
2169
|
/**
|
|
1888
2170
|
* Gets a 3D array containing the heights of tiles in the
|
|
1889
2171
|
* current scene.
|
|
1890
2172
|
*
|
|
1891
2173
|
* @return the tile heights
|
|
2174
|
+
* @see WorldView#getTileHeights()
|
|
2175
|
+
* @deprecated
|
|
1892
2176
|
*/
|
|
1893
|
-
/** @deprecated */
|
|
1894
2177
|
getTileHeights(): number[][][];
|
|
2178
|
+
|
|
1895
2179
|
/**
|
|
1896
2180
|
* Gets a 3D array containing the settings of tiles in the
|
|
1897
2181
|
* current scene.
|
|
1898
2182
|
*
|
|
1899
2183
|
* @return the tile settings
|
|
2184
|
+
* @see WorldView#getTileSettings()
|
|
2185
|
+
* @deprecated
|
|
1900
2186
|
*/
|
|
1901
|
-
/** @deprecated */
|
|
1902
2187
|
getTileSettings(): number[][][];
|
|
2188
|
+
|
|
1903
2189
|
/**
|
|
1904
2190
|
* Returns the x-axis base coordinate.
|
|
1905
2191
|
* <p>
|
|
@@ -1907,9 +2193,11 @@ declare namespace net.runelite.api {
|
|
|
1907
2193
|
* the current scene (ie. the bottom-left most coordinates in the scene).
|
|
1908
2194
|
*
|
|
1909
2195
|
* @return the base x-axis coordinate
|
|
2196
|
+
* @see WorldView#getBaseX()
|
|
2197
|
+
* @deprecated
|
|
1910
2198
|
*/
|
|
1911
|
-
/** @deprecated */
|
|
1912
2199
|
getBaseX(): number;
|
|
2200
|
+
|
|
1913
2201
|
/**
|
|
1914
2202
|
* Returns the y-axis base coordinate.
|
|
1915
2203
|
* <p>
|
|
@@ -1917,9 +2205,11 @@ declare namespace net.runelite.api {
|
|
|
1917
2205
|
* the current scene (ie. the bottom-left most coordinates in the scene).
|
|
1918
2206
|
*
|
|
1919
2207
|
* @return the base y-axis coordinate
|
|
2208
|
+
* @see WorldView#getBaseY()
|
|
2209
|
+
* @deprecated
|
|
1920
2210
|
*/
|
|
1921
|
-
/** @deprecated */
|
|
1922
2211
|
getBaseY(): number;
|
|
2212
|
+
|
|
1923
2213
|
/**
|
|
1924
2214
|
* Create a projectile.
|
|
1925
2215
|
* @param id projectile/spotanim id
|
|
@@ -1936,8 +2226,8 @@ declare namespace net.runelite.api {
|
|
|
1936
2226
|
* @param targetX target x - if an actor target is supplied should be the target x
|
|
1937
2227
|
* @param targetY target y - if an actor target is supplied should be the target y
|
|
1938
2228
|
* @return the new projectile
|
|
2229
|
+
* @deprecated
|
|
1939
2230
|
*/
|
|
1940
|
-
/** @deprecated */
|
|
1941
2231
|
createProjectile(
|
|
1942
2232
|
id: number,
|
|
1943
2233
|
plane: number,
|
|
@@ -1949,30 +2239,78 @@ declare namespace net.runelite.api {
|
|
|
1949
2239
|
slope: number,
|
|
1950
2240
|
startHeight: number,
|
|
1951
2241
|
endHeight: number,
|
|
1952
|
-
target: Actor,
|
|
2242
|
+
target: Actor | null,
|
|
1953
2243
|
targetX: number,
|
|
1954
|
-
targetY: number
|
|
2244
|
+
targetY: number
|
|
1955
2245
|
): Projectile;
|
|
2246
|
+
|
|
2247
|
+
/**
|
|
2248
|
+
* Create a projectile.
|
|
2249
|
+
* @param spotanimId spotanim id
|
|
2250
|
+
* @param source source position
|
|
2251
|
+
* @param sourceHeightOffset source height offset
|
|
2252
|
+
* @param sourceActor source actor
|
|
2253
|
+
* @param target target position
|
|
2254
|
+
* @param targetHeightOffset target height offset
|
|
2255
|
+
* @param targetActor target actor
|
|
2256
|
+
* @param startCycle start time
|
|
2257
|
+
* @param endCycle end time
|
|
2258
|
+
* @param slope slope
|
|
2259
|
+
* @param startPos offset from the start where the projectile starts
|
|
2260
|
+
* @see net.runelite.api.gameval.SpotanimID
|
|
2261
|
+
* @return the new projectile
|
|
2262
|
+
*/
|
|
2263
|
+
createProjectile(
|
|
2264
|
+
spotanimId: number,
|
|
2265
|
+
source: net.runelite.api.coords.WorldPoint,
|
|
2266
|
+
sourceHeightOffset: number,
|
|
2267
|
+
sourceActor: Actor | null,
|
|
2268
|
+
target: net.runelite.api.coords.WorldPoint,
|
|
2269
|
+
targetHeightOffset: number,
|
|
2270
|
+
targetActor: Actor | null,
|
|
2271
|
+
startCycle: number,
|
|
2272
|
+
endCycle: number,
|
|
2273
|
+
slope: number,
|
|
2274
|
+
startPos: number
|
|
2275
|
+
): Projectile;
|
|
2276
|
+
|
|
1956
2277
|
/**
|
|
1957
2278
|
* Gets a list of all projectiles currently spawned.
|
|
1958
2279
|
*
|
|
1959
2280
|
* @return all projectiles
|
|
1960
2281
|
*/
|
|
1961
|
-
/** @deprecated */
|
|
1962
2282
|
getProjectiles(): java.util.Deque<Projectile>;
|
|
2283
|
+
|
|
1963
2284
|
/**
|
|
1964
2285
|
* Gets a list of all graphics objects currently drawn.
|
|
1965
2286
|
*
|
|
1966
2287
|
* @return all graphics objects
|
|
2288
|
+
* @see WorldView#getGraphicsObjects()
|
|
2289
|
+
* @deprecated
|
|
1967
2290
|
*/
|
|
1968
|
-
/** @deprecated */
|
|
1969
2291
|
getGraphicsObjects(): java.util.Deque<GraphicsObject>;
|
|
2292
|
+
|
|
1970
2293
|
/**
|
|
1971
2294
|
* Gets the currently selected tile. (ie. last right clicked tile)
|
|
1972
2295
|
*
|
|
1973
2296
|
* @return the selected tile
|
|
2297
|
+
* @see WorldView#getSelectedSceneTile()
|
|
2298
|
+
* @deprecated
|
|
1974
2299
|
*/
|
|
1975
|
-
/** @deprecated */
|
|
1976
2300
|
getSelectedSceneTile(): Tile | null;
|
|
2301
|
+
|
|
2302
|
+
/**
|
|
2303
|
+
* Applies an animation to a Model. The returned model is shared and shouldn't be used
|
|
2304
|
+
* after any other call to applyTransformations, including calls made by the client internally.
|
|
2305
|
+
* Vertices are cloned from the source model. Face transparencies are copied if either animation
|
|
2306
|
+
* animates transparency, otherwise it will share a reference. All other fields share a reference.
|
|
2307
|
+
*/
|
|
2308
|
+
applyTransformations(
|
|
2309
|
+
model: Model,
|
|
2310
|
+
animA: Animation | null,
|
|
2311
|
+
frameA: number,
|
|
2312
|
+
animB: Animation | null,
|
|
2313
|
+
frameB: number
|
|
2314
|
+
): Model;
|
|
1977
2315
|
}
|
|
1978
|
-
}
|
|
2316
|
+
}
|