@deafwave/osrs-botmaker-types 0.3.1 → 0.4.0

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.
Files changed (117) hide show
  1. package/dist/src/types/java/Java.d.ts +8 -0
  2. package/dist/src/types/java/JavaImporter.d.ts +6 -0
  3. package/dist/src/types/java/awt/BorderLayout.d.ts +16 -0
  4. package/dist/src/types/java/awt/Color.d.ts +2 -0
  5. package/dist/src/types/java/awt/Component.d.ts +5 -0
  6. package/dist/src/types/java/awt/Container.d.ts +12 -0
  7. package/dist/src/types/java/awt/FlowLayout.d.ts +16 -0
  8. package/dist/src/types/java/awt/Font.d.ts +24 -0
  9. package/dist/src/types/java/awt/GradientPaint.d.ts +5 -0
  10. package/dist/src/types/java/awt/Graphics2D.d.ts +3 -1
  11. package/dist/src/types/java/awt/GridBagConstraints.d.ts +56 -0
  12. package/dist/src/types/java/awt/GridBagLayout.d.ts +13 -0
  13. package/dist/src/types/java/awt/Insets.d.ts +28 -0
  14. package/dist/src/types/java/awt/Polygon.d.ts +14 -0
  15. package/dist/src/types/java/awt/Rectangle.d.ts +18 -0
  16. package/dist/src/types/java/awt/ToolKit.d.ts +15 -0
  17. package/dist/src/types/java/awt/datatransfer/Clipboard.d.ts +40 -0
  18. package/dist/src/types/java/awt/datatransfer/ClipboardOwner.d.ts +14 -0
  19. package/dist/src/types/java/awt/datatransfer/DataFlavor.d.ts +33 -0
  20. package/dist/src/types/java/awt/datatransfer/StringSelection.d.ts +34 -0
  21. package/dist/src/types/java/awt/datatransfer/Transferable.d.ts +24 -0
  22. package/dist/src/types/java/awt/event/ActionListener.d.ts +6 -0
  23. package/dist/src/types/java/awt/event/ChangeListener.d.ts +6 -0
  24. package/dist/src/types/java/awt/event/DocumentListener.d.ts +28 -0
  25. package/dist/src/types/java/awt/event/FocusListener.d.ts +15 -0
  26. package/dist/src/types/java/awt/event/ItemListener.d.ts +11 -0
  27. package/dist/src/types/java/awt/event/KeyAdapter.d.ts +9 -0
  28. package/dist/src/types/java/awt/event/KeyEvent.d.ts +72 -8
  29. package/dist/src/types/java/awt/event/KeyListener.d.ts +7 -0
  30. package/dist/src/types/java/awt/event/MouseAdapter.d.ts +11 -0
  31. package/dist/src/types/java/awt/event/MouseListener.d.ts +11 -0
  32. package/dist/src/types/java/awt/event/WindowListener.d.ts +25 -0
  33. package/dist/src/types/java/awt/geom/AffineTransform.d.ts +47 -0
  34. package/dist/src/types/java/index.d.ts +65 -0
  35. package/dist/src/types/java/lang/Object.d.ts +18 -0
  36. package/dist/src/types/java/swing/Border.d.ts +7 -0
  37. package/dist/src/types/java/swing/BorderFactory.d.ts +18 -0
  38. package/dist/src/types/java/swing/BoxLayout.d.ts +11 -0
  39. package/dist/src/types/java/swing/CustomPanel.d.ts +5 -0
  40. package/dist/src/types/java/swing/DefaultListModel.d.ts +15 -0
  41. package/dist/src/types/java/swing/DefaultTableModel.d.ts +17 -0
  42. package/dist/src/types/java/swing/Icon.d.ts +11 -0
  43. package/dist/src/types/java/swing/JButton.d.ts +36 -0
  44. package/dist/src/types/java/swing/JCheckBox.d.ts +17 -0
  45. package/dist/src/types/java/swing/JComboBox.d.ts +25 -0
  46. package/dist/src/types/java/swing/JComponent.d.ts +20 -0
  47. package/dist/src/types/java/swing/JFrame.d.ts +31 -0
  48. package/dist/src/types/java/swing/JLabel.d.ts +27 -0
  49. package/dist/src/types/java/swing/JList.d.ts +22 -0
  50. package/dist/src/types/java/swing/JMenu.d.ts +13 -0
  51. package/dist/src/types/java/swing/JMenuBar.d.ts +11 -0
  52. package/dist/src/types/java/swing/JMenuItem.d.ts +12 -0
  53. package/dist/src/types/java/swing/JPanel.d.ts +33 -0
  54. package/dist/src/types/java/swing/JProgressBar.d.ts +18 -0
  55. package/dist/src/types/java/swing/JScrollPane.d.ts +28 -0
  56. package/dist/src/types/java/swing/JSlider.d.ts +24 -0
  57. package/dist/src/types/java/swing/JSplitPane.d.ts +22 -0
  58. package/dist/src/types/java/swing/JTabbedPane.d.ts +16 -0
  59. package/dist/src/types/java/swing/JTable.d.ts +27 -0
  60. package/dist/src/types/java/swing/JTextArea.d.ts +29 -0
  61. package/dist/src/types/java/swing/JTextField.d.ts +24 -0
  62. package/dist/src/types/java/swing/JToggleButton.d.ts +8 -0
  63. package/dist/src/types/java/swing/JToolBar.d.ts +14 -0
  64. package/dist/src/types/java/swing/ListSelectionModel.d.ts +18 -0
  65. package/dist/src/types/java/swing/TableModel.d.ts +34 -0
  66. package/dist/src/types/java/swing/createToggleboxDropdownPanel.d.ts +10 -0
  67. package/dist/src/types/java/swing/event/ListSelectionEvent.d.ts +10 -0
  68. package/dist/src/types/java/swing/event/ListSelectionListener.d.ts +5 -0
  69. package/dist/src/types/java/swing/table/DefaultTableCellRenderer.d.ts +18 -0
  70. package/dist/src/types/java/swing/table/TableColumn.d.ts +5 -0
  71. package/dist/src/types/java/swing/table/TableColumnModel.d.ts +5 -0
  72. package/dist/src/types/java/util/index.d.ts +90 -53
  73. package/dist/src/types/runelite/net/runelite/api/AnimationID.d.ts +90 -22
  74. package/dist/src/types/runelite/net/runelite/api/EnumID.d.ts +21 -0
  75. package/dist/src/types/runelite/net/runelite/api/ItemID.d.ts +730 -22
  76. package/dist/src/types/runelite/net/runelite/api/KeyCode.d.ts +99 -6
  77. package/dist/src/types/runelite/net/runelite/api/NpcID.d.ts +1222 -45
  78. package/dist/src/types/runelite/net/runelite/api/ObjectID.d.ts +2500 -208
  79. package/dist/src/types/runelite/net/runelite/api/ParamID.d.ts +163 -0
  80. package/dist/src/types/runelite/net/runelite/api/ScriptID.d.ts +96 -7
  81. package/dist/src/types/runelite/net/runelite/api/SpriteID.d.ts +139 -9
  82. package/dist/src/types/runelite/net/runelite/api/coords/WorldPoint.d.ts +16 -72
  83. package/dist/src/types/runelite/net/runelite/api/widgets/ComponentID.d.ts +80 -1789
  84. package/dist/src/types/runelite/net/runelite/api/widgets/WidgetID.d.ts +155 -157
  85. package/dist/src/types/runelite/net/runelite/client/config/ConfigManager.d.ts +101 -112
  86. package/dist/src/types/sox/api/bot/attackStyle.d.ts +12 -0
  87. package/dist/src/types/sox/api/bot/bank.d.ts +144 -0
  88. package/dist/src/types/sox/api/bot/bmCache.d.ts +54 -0
  89. package/dist/src/types/sox/api/bot/bmGlobalCache.d.ts +54 -0
  90. package/dist/src/types/sox/api/bot/breakHandler.d.ts +15 -0
  91. package/dist/src/types/sox/api/bot/counters.d.ts +23 -0
  92. package/dist/src/types/sox/api/bot/equipment.d.ts +62 -0
  93. package/dist/src/types/sox/api/bot/events.d.ts +37 -0
  94. package/dist/src/types/sox/api/bot/grandExchange.d.ts +67 -0
  95. package/dist/src/types/sox/api/bot/graphicsObjects.d.ts +16 -0
  96. package/dist/src/types/sox/api/bot/index.d.ts +128 -0
  97. package/dist/src/types/sox/api/bot/inventory.d.ts +153 -0
  98. package/dist/src/types/sox/api/bot/magic.d.ts +122 -0
  99. package/dist/src/types/sox/api/bot/net.d.ts +24 -0
  100. package/dist/src/types/sox/api/bot/notifier.d.ts +16 -0
  101. package/dist/src/types/sox/api/bot/npcs.d.ts +89 -0
  102. package/dist/src/types/sox/api/bot/objects.d.ts +89 -0
  103. package/dist/src/types/sox/api/bot/players.d.ts +35 -0
  104. package/dist/src/types/sox/api/bot/plugins.d.ts +81 -0
  105. package/dist/src/types/sox/api/bot/prayer.d.ts +16 -0
  106. package/dist/src/types/sox/api/bot/projectiles.d.ts +16 -0
  107. package/dist/src/types/sox/api/bot/task.d.ts +30 -0
  108. package/dist/src/types/sox/api/bot/tileItems.d.ts +65 -0
  109. package/dist/src/types/sox/api/bot/variables.d.ts +51 -0
  110. package/dist/src/types/sox/api/bot/walking.d.ts +65 -0
  111. package/dist/src/types/sox/api/bot/widgets.d.ts +32 -0
  112. package/dist/src/types/sox/api/bot.d.ts +2 -115
  113. package/dist/src/types/sox/api/client.d.ts +1 -1
  114. package/dist/src/types/sox/api/clientThread.d.ts +24 -0
  115. package/dist/src/types/sox/api/configManager.d.ts +239 -0
  116. package/dist/src/types/sox/index.d.ts +2 -5
  117. package/package.json +53 -53
@@ -0,0 +1,29 @@
1
+ declare namespace javax.swing {
2
+ export class JTextArea extends javax.swing.JComponent {
3
+ constructor(rows?: number, columns?: number);
4
+ constructor(text?: string, rows?: number, columns?: number);
5
+ setText(text: string): void;
6
+ getText(): string;
7
+ setEditable(editable: boolean): void;
8
+ isEditable(): boolean;
9
+ setLineWrap(wrap: boolean): void;
10
+ getLineWrap(): boolean;
11
+ setWrapStyleWord(word: boolean): void;
12
+ getWrapStyleWord(): boolean;
13
+ insert(text: string, position: number): void;
14
+ append(text: string): void;
15
+ replaceRange(text: string, start: number, end: number): void;
16
+ setRows(rows: number): void;
17
+ getRows(): number;
18
+ setColumns(columns: number): void;
19
+ getColumns(): number;
20
+ setMinimumSize(dimension: java.awt.Dimension): void;
21
+ setMaximumSize(dimension: java.awt.Dimension): void;
22
+ setPreferredSize(size: java.awt.Dimension): void;
23
+ addFocusListener(listener: java.awt.event.FocusListener): void;
24
+ addKeyListener(listener: java.awt.event.KeyListener): void;
25
+ removeKeyListener(listener: java.awt.event.KeyListener): void;
26
+ }
27
+ }
28
+
29
+ type JTextArea = javax.swing.JTextArea;
@@ -0,0 +1,24 @@
1
+ declare namespace javax.swing {
2
+ export class JTextField extends JComponent {
3
+ constructor(text?: string, columns?: number);
4
+ setText(text: string): void;
5
+ getText(): string;
6
+ setEnabled(enabled: boolean): void;
7
+ isEnabled(): boolean;
8
+ setMaximumSize(size: java.awt.Dimension): void;
9
+ addActionListener(listener: (event: java.awt.event.ActionListener) => void): void;
10
+ removeActionListener(listener: (event: java.awt.event.ActionListener) => void): void;
11
+ addFocusListener(listener: java.awt.event.FocusListener): void;
12
+ removeFocusListener(listener: java.awt.event.FocusListener): void;
13
+ getColumns(): number;
14
+ setColumns(columns: number): void;
15
+ getCaretPosition(): number;
16
+ setCaretPosition(position: number): void;
17
+ getSelectionStart(): number;
18
+ setSelectionStart(index: number): void;
19
+ getSelectionEnd(): number;
20
+ setSelectionEnd(index: number): void;
21
+ }
22
+ }
23
+
24
+ type JTextField = javax.swing.JTextField;
@@ -0,0 +1,8 @@
1
+ declare namespace javax.swing {
2
+ export class JToggleButton extends javax.swing.JButton {
3
+ setSelected(selected: boolean): void;
4
+ isSelected(): boolean;
5
+ }
6
+ }
7
+
8
+ type JToggleButton = javax.swing.JToggleButton;
@@ -0,0 +1,14 @@
1
+ declare namespace javax.swing {
2
+ export class JToolBar {
3
+ constructor();
4
+ add(component: any): void;
5
+ remove(component: any): void;
6
+ setFloatable(floatable: boolean): void;
7
+ isFloatable(): boolean;
8
+ addSeparator(size?: java.awt.Dimension): void;
9
+ setOrientation(orientation: number): void;
10
+ getOrientation(): number;
11
+ }
12
+ }
13
+
14
+ type JToolBar = javax.swing.JToolBar;
@@ -0,0 +1,18 @@
1
+ declare namespace javax.swing {
2
+ export interface ListSelectionModel {
3
+ addListSelectionListener(listener: java.awt.event.ListSelectionListener): void;
4
+ removeListSelectionListener(listener: java.awt.event.ListSelectionListener): void;
5
+ getMinSelectionIndex(): number;
6
+ getMaxSelectionIndex(): number;
7
+ isSelectedIndex(index: number): boolean;
8
+ clearSelection(): void;
9
+ setSelectionInterval(index0: number, index1: number): void;
10
+ getSelectedIndices(): number[];
11
+ }
12
+
13
+ export namespace ListSelectionModel {
14
+ const SINGLE_SELECTION: number;
15
+ const SINGLE_INTERVAL_SELECTION: number;
16
+ const MULTIPLE_INTERVAL_SELECTION: number;
17
+ }
18
+ }
@@ -0,0 +1,34 @@
1
+ declare namespace javax.swing.table {
2
+ /**
3
+ * Model for table data. Provides row/column counts and cell values.
4
+ */
5
+ export interface TableModel {
6
+ /** Returns the number of rows in the model */
7
+ getRowCount(): number;
8
+ /** Returns the number of columns in the model */
9
+ getColumnCount(): number;
10
+ /** Returns the value at the specified cell */
11
+ getValueAt(row: number, column: number): any;
12
+ /** (Optional) Returns the column name for display */
13
+ getColumnName?(column: number): string;
14
+ /** (Optional) Adds a listener for model changes */
15
+ addTableModelListener?(listener: any): void;
16
+ /** (Optional) Removes a listener for model changes */
17
+ removeTableModelListener?(listener: any): void;
18
+ }
19
+
20
+ /**
21
+ * Default implementation of TableModel using a two-dimensional array.
22
+ */
23
+ export class DefaultTableModel implements TableModel {
24
+ constructor(data?: any[][], columnNames?: string[]);
25
+ getRowCount(): number;
26
+ getColumnCount(): number;
27
+ getValueAt(row: number, column: number): any;
28
+ setRowCount(rowCount: number): void;
29
+ addRow(rowData: any[]): void;
30
+ }
31
+ }
32
+
33
+ type TableModel = javax.swing.table.TableModel;
34
+ type DefaultTableModel = javax.swing.table.DefaultTableModel;
@@ -0,0 +1,10 @@
1
+ declare namespace javax.swing {
2
+ export function createToggleboxDropdownPanel(options: {
3
+ buttonLabel: string;
4
+ variableNames?: string;
5
+ dropdownItems: string[];
6
+ layout?: java.awt.FlowLayout | java.awt.BorderLayout;
7
+ position?: string;
8
+ hasVariable?: boolean;
9
+ }): JPanel;
10
+ }
@@ -0,0 +1,10 @@
1
+ declare namespace javax.swing.event {
2
+ export class ListSelectionEvent {
3
+ constructor(source: any, firstIndex: number, lastIndex: number, isAdjusting: boolean);
4
+
5
+ getFirstIndex(): number;
6
+ getLastIndex(): number;
7
+ getValueIsAdjusting(): boolean;
8
+ getSource(): any;
9
+ }
10
+ }
@@ -0,0 +1,5 @@
1
+ declare namespace javax.swing.event {
2
+ export class ListSelectionListener {
3
+ constructor(options: { valueChanged?: (event: any) => void });
4
+ }
5
+ }
@@ -0,0 +1,18 @@
1
+ /// <reference path="../JLabel.d.ts" />
2
+ /// <reference path="../JTable.d.ts" />
3
+ /// <reference path="../JComponent.d.ts" />
4
+ declare namespace javax.swing.table {
5
+ export class DefaultTableCellRenderer extends JLabel {
6
+ constructor();
7
+
8
+ getTableCellRendererComponent(
9
+ table: javax.swing.JTable,
10
+ value: any,
11
+ isSelected: boolean,
12
+ hasFocus: boolean,
13
+ row: number,
14
+ column: number,
15
+ ): javax.swing.JComponent;
16
+ }
17
+ }
18
+ type DefaultTableCellRenderer = javax.swing.table.DefaultTableCellRenderer;
@@ -0,0 +1,5 @@
1
+ declare namespace javax.swing.table {
2
+ export interface TableColumn {
3
+ setCellRenderer(renderer: javax.swing.table.DefaultTableCellRenderer): void;
4
+ }
5
+ }
@@ -0,0 +1,5 @@
1
+ declare namespace javax.swing.table {
2
+ export interface TableColumnModel {
3
+ getColumn(index: number): TableColumn;
4
+ }
5
+ }
@@ -16,7 +16,7 @@ declare namespace java.util {
16
16
  hashCode(): number;
17
17
  forEach(callback: (value: T) => void): void;
18
18
  }
19
-
19
+
20
20
  export interface Iterator<T> {
21
21
  hasNext(): boolean;
22
22
  next(): T;
@@ -25,37 +25,37 @@ declare namespace java.util {
25
25
 
26
26
  export class Collections {
27
27
  static disjoint<T>(c1: Collection<T>, c2: Collection<T>): boolean;
28
-
28
+
29
29
  static checkedCollection<T>(c: Collection<T>, type: { new(): T }): Collection<T>
30
-
30
+
31
31
  static checkedList<T>(list: List<T>, type: { new(): T }): List<T>
32
-
32
+
33
33
  static checkedMap<K, V>(m: Map<K, V>, keyType: { new(): K }, valueType: { new(): V }): Map<K, V>
34
-
34
+
35
35
  static checkedSet<T>(s: Set<T>, type: { new(): T }): Set<T>
36
36
  static emptyList<T>(): List<T>
37
-
37
+
38
38
  static emptyMap<K, V>(): Map<K, V>
39
39
  static emptySet<T>(): Set<T>
40
-
40
+
41
41
  static singletonList<T>(item: T): List<T>
42
-
42
+
43
43
  static singletonMap<K, V>(key: K, value: V): Map<K, V>
44
-
44
+
45
45
  static singletonSet<T>(item: T): Set<T>
46
46
 
47
47
  static reverse<T>(list: List<T> | ArrayList<T>): void;
48
48
  }
49
49
 
50
50
  export interface List<T> implements Collection<T> {
51
- get(index: number): T;
52
- set(index: number, element: T): T;
53
- add(index: number, element: T): void;
54
- remove(index: number): T;
55
- indexOf(o: T): number;
56
- lastIndexOf(o: T): number;
57
- listIterator(): ListIterator<T>;
58
- subList(fromIndex: number, toIndex: number): List<T>;
51
+ get(index: number): T;
52
+ set(index: number, element: T): T;
53
+ add(index: number, element: T): void;
54
+ remove(index: number): T;
55
+ indexOf(o: T): number;
56
+ lastIndexOf(o: T): number;
57
+ listIterator(): ListIterator<T>;
58
+ subList(fromIndex: number, toIndex: number): List<T>;
59
59
 
60
60
  size(): number;
61
61
  isEmpty(): boolean;
@@ -72,18 +72,18 @@ declare namespace java.util {
72
72
  equals(o: object): boolean;
73
73
  hashCode(): number;
74
74
  forEach(callback: (value: T) => void): void;
75
- }
75
+ }
76
76
 
77
77
  export interface ListIterator<T> extends Iterator<T> {
78
- hasPrevious(): boolean;
79
- previous(): T;
80
- nextIndex(): number;
81
- previousIndex(): number;
82
- set(e: T): void;
83
- add(e: T): void;
84
- }
85
-
86
- export interface Set<T> extends Collection<E> {
78
+ hasPrevious(): boolean;
79
+ previous(): T;
80
+ nextIndex(): number;
81
+ previousIndex(): number;
82
+ set(e: T): void;
83
+ add(e: T): void;
84
+ }
85
+
86
+ export interface Set<T> extends Collection<E> {
87
87
  add(element: T): boolean;
88
88
  clear(): void;
89
89
  contains(element: T): boolean;
@@ -93,7 +93,7 @@ declare namespace java.util {
93
93
  toArray(): T[];
94
94
  }
95
95
 
96
- export class LinkedList<T> {
96
+ export class LinkedList<T> {
97
97
  constructor();
98
98
  add(element: T): boolean;
99
99
  add(index: number, element: T): void;
@@ -108,7 +108,7 @@ declare namespace java.util {
108
108
  poll(): T;
109
109
  }
110
110
 
111
- export class HashSet<T> implements Collection<T> {
111
+ export class HashSet<T> implements Collection<T> {
112
112
  private items: T[];
113
113
 
114
114
  constructor();
@@ -144,30 +144,30 @@ declare namespace java.util {
144
144
  }
145
145
 
146
146
  export class ArrayDeque<E> {
147
- constructor();
148
-
149
- add(element: E): boolean;
150
- addFirst(element: E): void;
151
- addLast(element: E): void;
152
- clear(): void;
153
- clone(): ArrayDeque<E>;
154
- contains(element: Object): boolean;
155
- isEmpty(): boolean;
156
- iterator(): Iterator<E>;
157
- offer(element: E): boolean;
158
- offerFirst(element: E): boolean;
159
- offerLast(element: E): boolean;
160
- peek(): E | null;
161
- peekFirst(): E | null;
162
- peekLast(): E | null;
163
- poll(): E | null;
164
- pollFirst(): E | null;
165
- pollLast(): E | null;
166
- remove(): E;
167
- removeFirst(): E;
168
- removeLast(): E;
169
- size(): number;
170
- }
147
+ constructor();
148
+
149
+ add(element: E): boolean;
150
+ addFirst(element: E): void;
151
+ addLast(element: E): void;
152
+ clear(): void;
153
+ clone(): ArrayDeque<E>;
154
+ contains(element: Object): boolean;
155
+ isEmpty(): boolean;
156
+ iterator(): Iterator<E>;
157
+ offer(element: E): boolean;
158
+ offerFirst(element: E): boolean;
159
+ offerLast(element: E): boolean;
160
+ peek(): E | null;
161
+ peekFirst(): E | null;
162
+ peekLast(): E | null;
163
+ poll(): E | null;
164
+ pollFirst(): E | null;
165
+ pollLast(): E | null;
166
+ remove(): E;
167
+ removeFirst(): E;
168
+ removeLast(): E;
169
+ size(): number;
170
+ }
171
171
 
172
172
  export interface Deque<e> extends Queue<E> {
173
173
  addFirst(e: E): void;
@@ -228,4 +228,41 @@ declare namespace java.util {
228
228
  listIterator(index: number): ListIterator<E>;
229
229
  subList(fromIndex: number, toIndex: number): List<E>;
230
230
  }
231
+
232
+ export class HashMap<K, V> implements Map<K, V> {
233
+ constructor();
234
+ constructor(initialCapacity: number);
235
+ constructor(initialCapacity: number, loadFactor: number);
236
+ constructor(m: Map<K, V>);
237
+
238
+ // Methods from Map<K,V> interface
239
+ size(): number;
240
+ isEmpty(): boolean;
241
+ containsKey(key: K): boolean;
242
+ containsValue(value: V): boolean;
243
+ get(key: K): V | null;
244
+ put(key: K, value: V): V | null;
245
+ remove(key: K): V | null; // Overload 1
246
+ remove(key: K, value: V): boolean; // Overload 2
247
+ putAll(m: Map<K, V>): void;
248
+ clear(): void;
249
+ keySet(): Set<K>;
250
+ values(): Collection<V>;
251
+ entrySet(): Set<Entry<K, V>>;
252
+ equals(o: object): boolean;
253
+ hashCode(): number;
254
+ getOrDefault(key: K, defaultValue: V): V;
255
+ forEach(action: (key: K, value: V) => void): void;
256
+ replaceAll(func: (key: K, value: V) => V): void;
257
+ putIfAbsent(key: K, value: V): V | null;
258
+ replace(key: K, value: V): V | null; // Overload 1
259
+ replace(key: K, oldValue: V, newValue: V): boolean; // Overload 2
260
+ computeIfAbsent(key: K, mappingFunction: (key: K) => V | null): V | null;
261
+ computeIfPresent(key: K, remappingFunction: (key: K, value: V) => V | null): V | null;
262
+ compute(key: K, remappingFunction: (key: K, value: V | null) => V | null): V | null;
263
+ merge(key: K, value: V, remappingFunction: (oldValue: V, newValue: V) => V | null): V | null;
264
+
265
+ // HashMap specific methods (e.g., clone)
266
+ clone(): HashMap<K, V>;
267
+ }
231
268
  }
@@ -59,6 +59,33 @@ declare namespace net.runelite.api {
59
59
  static readonly WOODCUTTING_2H_CRYSTAL = 10072;
60
60
  static readonly WOODCUTTING_2H_CRYSTAL_INACTIVE = 10073;
61
61
  static readonly WOODCUTTING_2H_3A = 10074;
62
+ static readonly WOODCUTTING_ENT_BRONZE = 3291;
63
+ static readonly WOODCUTTING_ENT_IRON = 3290;
64
+ static readonly WOODCUTTING_ENT_STEEL = 3289;
65
+ static readonly WOODCUTTING_ENT_BLACK = 3288;
66
+ static readonly WOODCUTTING_ENT_MITHRIL = 3287;
67
+ static readonly WOODCUTTING_ENT_ADAMANT = 3286;
68
+ static readonly WOODCUTTING_ENT_RUNE = 3285;
69
+ static readonly WOODCUTTING_ENT_GILDED = 8305;
70
+ static readonly WOODCUTTING_ENT_DRAGON = 3292;
71
+ static readonly WOODCUTTING_ENT_DRAGON_OR = 23;
72
+ static readonly WOODCUTTING_ENT_INFERNAL = 2116;
73
+ static readonly WOODCUTTING_ENT_INFERNAL_OR = 8777;
74
+ static readonly WOODCUTTING_ENT_3A = 7266;
75
+ static readonly WOODCUTTING_ENT_CRYSTAL = 8323;
76
+ static readonly WOODCUTTING_ENT_CRYSTAL_INACTIVE = 8327;
77
+ static readonly WOODCUTTING_ENT_TRAILBLAZER = 8780;
78
+ static readonly WOODCUTTING_ENT_2H_BRONZE = 10517;
79
+ static readonly WOODCUTTING_ENT_2H_IRON = 10518;
80
+ static readonly WOODCUTTING_ENT_2H_STEEL = 10519;
81
+ static readonly WOODCUTTING_ENT_2H_BLACK = 10520;
82
+ static readonly WOODCUTTING_ENT_2H_MITHRIL = 10521;
83
+ static readonly WOODCUTTING_ENT_2H_ADAMANT = 10522;
84
+ static readonly WOODCUTTING_ENT_2H_RUNE = 10523;
85
+ static readonly WOODCUTTING_ENT_2H_DRAGON = 10524;
86
+ static readonly WOODCUTTING_ENT_2H_CRYSTAL = 10525;
87
+ static readonly WOODCUTTING_ENT_2H_CRYSTAL_INACTIVE = 10526;
88
+ static readonly WOODCUTTING_ENT_2H_3A = 10527;
62
89
  static readonly CONSUMING = 829; // consuming consumables
63
90
  static readonly FIREMAKING = 733;
64
91
  static readonly FIREMAKING_FORESTERS_CAMPFIRE_ARCTIC_PINE = 10563;
@@ -78,12 +105,18 @@ declare namespace net.runelite.api {
78
105
  static readonly COOKING_WINE = 7529;
79
106
  static readonly FLETCHING_BOW_CUTTING = 1248;
80
107
  static readonly HUNTER_LAY_BOXTRAP_BIRDSNARE = 5208; //same for laying bird snares and box traps
81
- static readonly HUNTER_LAY_DEADFALLTRAP = 5212; //setting up deadfall trap
82
108
  static readonly HUNTER_LAY_NETTRAP = 5215; //setting up net trap
83
109
  static readonly HUNTER_LAY_MANIACAL_MONKEY_BOULDER_TRAP = 7259; // setting up maniacal monkey boulder trap
84
110
  static readonly HUNTER_CHECK_BIRD_SNARE = 5207;
85
- static readonly HUNTER_CHECK_BOX_TRAP = 5212;
86
111
  static readonly HERBLORE_MAKE_TAR = 5249;
112
+ static readonly FLETCHING_ATTACH_STOCK_TO_BRONZE_LIMBS = 4436;
113
+ static readonly FLETCHING_ATTACH_STOCK_TO_BLURITE_LIMBS = 4437;
114
+ static readonly FLETCHING_ATTACH_STOCK_TO_IRON_LIMBS = 4438;
115
+ static readonly FLETCHING_ATTACH_STOCK_TO_STEEL_LIMBS = 4439;
116
+ static readonly FLETCHING_ATTACH_STOCK_TO_MITHRIL_LIMBS = 4440;
117
+ static readonly FLETCHING_ATTACH_STOCK_TO_ADAMANTITE_LIMBS = 4441;
118
+ static readonly FLETCHING_ATTACH_STOCK_TO_RUNITE_LIMBS = 4442;
119
+ static readonly FLETCHING_ATTACH_STOCK_TO_DRAGON_LIMBS = 7860;
87
120
  static readonly FLETCHING_STRING_NORMAL_SHORTBOW = 6678;
88
121
  static readonly FLETCHING_STRING_NORMAL_LONGBOW = 6684;
89
122
  static readonly FLETCHING_STRING_OAK_SHORTBOW = 6679;
@@ -120,8 +153,9 @@ declare namespace net.runelite.api {
120
153
  static readonly CRAFTING_POTTERS_WHEEL = 883;
121
154
  static readonly CRAFTING_POTTERY_OVEN = 24975;
122
155
  static readonly CRAFTING_LOOM = 2270;
156
+ static readonly CRAFTING_CRUSH_BLESSED_BONES = 11099;
123
157
  static readonly SMITHING_SMELTING = 899;
124
- static readonly SMITHING_CANNONBALL = 827; //cball smithing uses this and SMITHING_SMELTING
158
+ static readonly SMITHING_CANNONBALL = 827; // same as BURYING_BONES
125
159
  static readonly SMITHING_ANVIL = 898;
126
160
  static readonly SMITHING_IMCANDO_HAMMER = 8911;
127
161
  static readonly FISHING_BIG_NET = 620;
@@ -191,24 +225,28 @@ declare namespace net.runelite.api {
191
225
  static readonly MINING_MOTHERLODE_3A = 7282;
192
226
  static readonly MINING_MOTHERLODE_CRYSTAL = 8345;
193
227
  static readonly MINING_MOTHERLODE_TRAILBLAZER = 8786; // Same animation as Infernal pickaxe (or)
194
- readonly MINING_CRASHEDSTAR_BRONZE = 6747;
195
- readonly MINING_CRASHEDSTAR_IRON = 6748;
196
- readonly MINING_CRASHEDSTAR_STEEL = 6749;
197
- readonly MINING_CRASHEDSTAR_BLACK = 6108;
198
- readonly MINING_CRASHEDSTAR_MITHRIL = 6751;
199
- readonly MINING_CRASHEDSTAR_ADAMANT = 6750;
200
- readonly MINING_CRASHEDSTAR_RUNE = 6746;
201
- readonly MINING_CRASHEDSTAR_GILDED = 8314;
202
- readonly MINING_CRASHEDSTAR_DRAGON = 7140;
203
- readonly MINING_CRASHEDSTAR_DRAGON_UPGRADED = 643;
204
- readonly MINING_CRASHEDSTAR_DRAGON_OR = 8349;
205
- readonly MINING_CRASHEDSTAR_DRAGON_OR_TRAILBLAZER = 8888;
206
- readonly MINING_CRASHEDSTAR_INFERNAL = 4483;
207
- readonly MINING_CRASHEDSTAR_3A = 7284;
208
- readonly MINING_CRASHEDSTAR_CRYSTAL = 8350;
228
+ static readonly MINING_CRASHEDSTAR_BRONZE = 6747;
229
+ static readonly MINING_CRASHEDSTAR_IRON = 6748;
230
+ static readonly MINING_CRASHEDSTAR_STEEL = 6749;
231
+ static readonly MINING_CRASHEDSTAR_BLACK = 6108;
232
+ static readonly MINING_CRASHEDSTAR_MITHRIL = 6751;
233
+ static readonly MINING_CRASHEDSTAR_ADAMANT = 6750;
234
+ static readonly MINING_CRASHEDSTAR_RUNE = 6746;
235
+ static readonly MINING_CRASHEDSTAR_GILDED = 8314;
236
+ static readonly MINING_CRASHEDSTAR_DRAGON = 7140;
237
+ static readonly MINING_CRASHEDSTAR_DRAGON_UPGRADED = 643;
238
+ static readonly MINING_CRASHEDSTAR_DRAGON_OR = 8349;
239
+ static readonly MINING_CRASHEDSTAR_DRAGON_OR_TRAILBLAZER = 8888;
240
+ static readonly MINING_CRASHEDSTAR_INFERNAL = 4483;
241
+ static readonly MINING_CRASHEDSTAR_3A = 7284;
242
+ static readonly MINING_CRASHEDSTAR_CRYSTAL = 8350;
209
243
  static readonly DENSE_ESSENCE_CHIPPING = 7201;
210
244
  static readonly DENSE_ESSENCE_CHISELING = 7202;
211
245
  static readonly HERBLORE_POTIONMAKING = 363; //used for both herb and secondary
246
+ static readonly HERBLORE_MIXOLOGY_CONCENTRATE = 11644;
247
+ static readonly HERBLORE_MIXOLOGY_CRYSTALIZE = 11639;
248
+ static readonly HERBLORE_MIXOLOGY_HOMOGENIZE = 11634;
249
+ static readonly HERBLORE_MIXOLOGY_REFINER = 11604;
212
250
  static readonly MAGIC_CHARGING_ORBS = 726;
213
251
  static readonly MAGIC_MAKE_TABLET = 4068;
214
252
  static readonly MAGIC_ENCHANTING_JEWELRY = 931;
@@ -223,8 +261,6 @@ declare namespace net.runelite.api {
223
261
  static readonly DEMONIC_GORILLA_MAGIC_ATTACK = 7225;
224
262
  static readonly DEMONIC_GORILLA_MELEE_ATTACK = 7226;
225
263
  static readonly DEMONIC_GORILLA_RANGED_ATTACK = 7227;
226
- static readonly DEMONIC_GORILLA_AOE_ATTACK = 7228;
227
- static readonly DEMONIC_GORILLA_PRAYER_SWITCH = 7228;
228
264
  static readonly DEMONIC_GORILLA_DEFEND = 7224;
229
265
  static readonly BOOK_HOME_TELEPORT_1 = 4847;
230
266
  static readonly BOOK_HOME_TELEPORT_2 = 4850;
@@ -264,6 +300,9 @@ declare namespace net.runelite.api {
264
300
  static readonly CHURN_MILK_LONG = 2795;
265
301
  static readonly CLEANING_SPECIMENS_1 = 6217;
266
302
  static readonly CLEANING_SPECIMENS_2 = 6459;
303
+ static readonly SACRIFICE_BLESSED_BONE_SHARDS = 11102;
304
+ static readonly MAKING_SUNFIRE_WINE = 11095;
305
+ static readonly THIEVING_VARLAMORE_STEALING_VALUABLES = 11075;
267
306
 
268
307
  // Ectofuntus animations
269
308
  static readonly ECTOFUNTUS_FILL_SLIME_BUCKET = 4471;
@@ -274,7 +313,9 @@ declare namespace net.runelite.api {
274
313
  // NPC animations
275
314
  static readonly TZTOK_JAD_MAGIC_ATTACK = 2656;
276
315
  static readonly TZTOK_JAD_RANGE_ATTACK = 2652;
316
+ static readonly CYCLOPS_ATTACK = 4652;
277
317
  static readonly HELLHOUND_DEFENCE = 6566;
318
+ static readonly DUCK_BOBBING = 6818;
278
319
 
279
320
  // Farming
280
321
  static readonly FARMING_HARVEST_FRUIT_TREE = 2280;
@@ -285,18 +326,18 @@ declare namespace net.runelite.api {
285
326
  static readonly FARMING_PLANT_SEED = 2291;
286
327
  static readonly FARMING_HARVEST_FLOWER = 2292;
287
328
  static readonly FARMING_MIX_ULTRACOMPOST = 7699;
288
- static readonly FARMING_HARVEST_ALLOTMENT = 830;
329
+ static readonly FARMING_HARVEST_ALLOTMENT = 830; // same as DIG
289
330
 
290
331
  // Lunar spellbook
291
332
  static readonly ENERGY_TRANSFER_VENGEANCE_OTHER = 4411;
292
333
  static readonly MAGIC_LUNAR_SHARED = 4413; // Utilized by Fertile Soil, Boost/Stat Potion Share, NPC Contact, Bake Pie
293
334
  static readonly MAGIC_LUNAR_CURE_PLANT = 4432;
294
- static readonly MAGIC_LUNAR_GEOMANCY = 7118;
295
335
  static readonly MAGIC_LUNAR_PLANK_MAKE = 6298;
296
336
  static readonly MAGIC_LUNAR_STRING_JEWELRY = 4412;
297
337
 
298
338
  // Arceuus spellbook
299
339
  static readonly MAGIC_ARCEUUS_RESURRECT_CROPS = 7118;
340
+ static readonly MAGIC_ARCEUUS_DEMONBANE = 8977; // Shared by all 3 Demonbane spells
300
341
 
301
342
  // Battlestaff Crafting
302
343
  static readonly CRAFTING_BATTLESTAVES = 7531;
@@ -319,5 +360,32 @@ declare namespace net.runelite.api {
319
360
 
320
361
  // POH Animations
321
362
  static readonly INCENSE_BURNER = 3687;
363
+ static readonly PORTAL_NEXUS_SPIN = 367;
364
+
365
+ // Wyrms
366
+ static readonly WYRM_IDLE_DORMANT = 8266;
367
+ static readonly WYRM_IDLE_ACTIVE = 8267;
368
+ static readonly WYRM_ATTACK_MELEE = 8270;
369
+ static readonly WYRM_ATTACK_MAGE = 8271;
370
+
371
+ // Lost City's Tree spirit
372
+ static readonly TREE_SPIRIT_IDLE = 5530;
373
+ static readonly TREE_SPIRIT_WALK = 5531;
374
+
375
+ static readonly SIGN_HOLDING_ZOMBIE_PROTESTOR_WALK = 5583;
376
+
377
+ static readonly VIGGORAS_CHAINMACE_IDLE = 244;
378
+
379
+ static readonly MLM_WATER_WHEEL_SPINNING = 1051;
380
+ static readonly HARMONY_ISLAND_WINDMILL_SPINNING = 5857;
381
+ static readonly GWENITH_WINDMILL_SPINNING = 6495;
382
+ static readonly LITHKREN_GENERATOR_SPINNING = 7898;
383
+ static readonly GIANTS_FOUNDRY_WATER_WHEEL_SPINNING = 9450;
384
+
385
+ static readonly HUEYCOATL_DEATH = 11679;
386
+
387
+ static readonly SLAYER_TOWER_WATER_BUCKET_DRIP = 3558;
388
+
389
+ static readonly KEY_MASTER_IDLE = 4519;
322
390
  }
323
391
  }
@@ -50,7 +50,12 @@ declare namespace net.runelite.api {
50
50
  * val: namedobj
51
51
  */
52
52
  static readonly PETS = 2158;
53
+
53
54
  static readonly POH_COSTUME_MEMBERS = 3077;
55
+ static readonly POH_COSTUME_WARDROBE = 3289;
56
+ static readonly POH_COSTUME_ARMOUR_CASE = 3290;
57
+ static readonly POH_CAPE_RACK = 3292;
58
+ static readonly POH_TOY_BOX = 3299;
54
59
  static readonly POH_COSTUME_CLUE_BEGINNER = 3293;
55
60
  static readonly POH_COSTUME_CLUE_EASY = 3294;
56
61
  static readonly POH_COSTUME_CLUE_MEDIUM = 3295;
@@ -59,6 +64,7 @@ declare namespace net.runelite.api {
59
64
  static readonly POH_COSTUME_CLUE_MASTER = 3298;
60
65
  static readonly POH_COSTUME_ALTERNATE = 3303;
61
66
  static readonly POH_COSTUME_ALTERNATES = 3304;
67
+
62
68
  static readonly CLAN_RANK_NAME = 3797;
63
69
  static readonly CLAN_RANK_GRAPHIC = 3798;
64
70
 
@@ -70,6 +76,9 @@ declare namespace net.runelite.api {
70
76
 
71
77
  static readonly PRAYERS_NORMAL = 4956;
72
78
  static readonly PRAYERS_RUINOUS = 4959;
79
+ static readonly PRAYERS_NORMAL_DEADEYE = 3341;
80
+ static readonly PRAYERS_NORMAL_MYSTIC_VIGOUR = 3342;
81
+ static readonly PRAYERS_NORMAL_DEADEYE_MYSTIC_VIGOUR = 3343;
73
82
 
74
83
  static readonly WORLD_LOCATIONS = 4992;
75
84
 
@@ -87,5 +96,17 @@ declare namespace net.runelite.api {
87
96
 
88
97
  static readonly SPELLBOOKS = 1981;
89
98
  static readonly SPELLBOOKS_SUB = 5280;
99
+
100
+ /**
101
+ * key: int id
102
+ * val: enum potion
103
+ */
104
+ static readonly POTIONSTORE_POTIONS = 4826;
105
+
106
+ /**
107
+ * key: int id
108
+ * val: enum potion
109
+ */
110
+ static readonly POTIONSTORE_UNFINISHED_POTIONS = 4829;
90
111
  }
91
112
  }