@deafwave/osrs-botmaker-types 0.4.6 → 0.4.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.
Files changed (19) hide show
  1. package/dist/src/types/runelite/net/runelite/api/ItemID.d.ts +125 -1
  2. package/dist/src/types/runelite/net/runelite/api/Projectile.d.ts +70 -23
  3. package/dist/src/types/runelite/net/runelite/api/WorldView.d.ts +36 -12
  4. package/dist/src/types/runelite/net/runelite/api/geometry/Shapes.d.ts +15 -14
  5. package/dist/src/types/runelite/net/runelite/api/geometry/SimplePolygon.d.ts +36 -35
  6. package/dist/src/types/runelite/net/runelite/api/widgets/Widget.d.ts +7 -2
  7. package/dist/src/types/runelite/net/runelite/api/widgets/WidgetItem.d.ts +39 -38
  8. package/dist/src/types/runelite/net/runelite/client/plugins/cluescrolls/clues/hotcold/HotColdLocation.d.ts +565 -1253
  9. package/dist/src/types/runelite/net/runelite/client/plugins/mta/telekinetic/TelekineticRoom.d.ts +31 -10
  10. package/dist/src/types/runelite/net/runelite/client/ui/overlay/OverlayBounds.d.ts +7 -6
  11. package/dist/src/types/runelite/net/runelite/client/ui/overlay/WidgetOverlay.d.ts +1 -1
  12. package/dist/src/types/runelite/net/runelite/client/ui/overlay/components/ImageComponent.d.ts +1 -1
  13. package/dist/src/types/runelite/net/runelite/client/ui/overlay/components/LayoutableRenderableEntity.d.ts +1 -1
  14. package/dist/src/types/runelite/net/runelite/client/ui/overlay/components/LineComponent.d.ts +1 -1
  15. package/dist/src/types/runelite/net/runelite/client/ui/overlay/components/PanelComponent.d.ts +1 -1
  16. package/dist/src/types/runelite/net/runelite/client/ui/overlay/components/ProgressBarComponent.d.ts +1 -1
  17. package/dist/src/types/runelite/net/runelite/client/ui/overlay/components/TitleComponent.d.ts +1 -1
  18. package/dist/src/types/runelite/net/runelite/client/ui/overlay/components/TooltipComponent.d.ts +1 -1
  19. package/package.json +1 -1
@@ -14718,7 +14718,131 @@ declare namespace net.runelite.api {
14718
14718
  static readonly SURGE_POTION1 = 30884;
14719
14719
  static readonly POLYCATALYTIC_GUARDIAN_STONE = 30887;
14720
14720
  static readonly YAMI = 30888;
14721
-
14721
+ static readonly ROTTEN_TURNIP = 30890;
14722
+ static readonly KERIS_PARTISAN_OF_AMASCUT = 30891;
14723
+ static readonly JEWEL_OF_AMASCUT = 30893;
14724
+ static readonly STEEL_RING = 30895;
14725
+ static readonly GIANT_BONES = 30898;
14726
+ static readonly SHARK_LURE = 30900;
14727
+ static readonly MINOR_BEGINNER_SCROLL_CASE = 30902;
14728
+ static readonly MAJOR_BEGINNER_SCROLL_CASE = 30904;
14729
+ static readonly MINOR_EASY_SCROLL_CASE = 30906;
14730
+ static readonly MAJOR_EASY_SCROLL_CASE = 30908;
14731
+ static readonly MINOR_MEDIUM_SCROLL_CASE = 30910;
14732
+ static readonly MAJOR_MEDIUM_SCROLL_CASE = 30912;
14733
+ static readonly MINOR_HARD_SCROLL_CASE = 30914;
14734
+ static readonly MAJOR_HARD_SCROLL_CASE = 30916;
14735
+ static readonly MINOR_ELITE_SCROLL_CASE = 30918;
14736
+ static readonly MAJOR_ELITE_SCROLL_CASE = 30920;
14737
+ static readonly MINOR_MASTER_SCROLL_CASE = 30922;
14738
+ static readonly MAJOR_MASTER_SCROLL_CASE = 30924;
14739
+ static readonly MIMIC_SCROLL_CASE = 30926;
14740
+ static readonly CLUE_SCROLL_EASY_30928 = 30928;
14741
+ static readonly CLUE_SCROLL_HARD_30929 = 30929;
14742
+ static readonly CHALLENGE_SCROLL_HARD_30930 = 30930;
14743
+ static readonly CLUE_SCROLL_HARD_30931 = 30931;
14744
+ static readonly CLUE_SCROLL_ELITE_30932 = 30932;
14745
+ static readonly CLUE_SCROLL_MEDIUM_30933 = 30933;
14746
+ static readonly CHALLENGE_SCROLL_MEDIUM_30934 = 30934;
14747
+ static readonly CLUE_SCROLL_MEDIUM_30935 = 30935;
14748
+ static readonly WET_FABRIC_SCRAP = 30936;
14749
+ static readonly CAERULA_BERRIES = 30937;
14750
+ static readonly MIND_MENDER = 30939;
14751
+ static readonly COIN_PURSE = 30941;
14752
+ static readonly EMPTY_COIN_PURSE = 30942;
14753
+ static readonly SANDY_COIN_PURSE = 30943;
14754
+ static readonly MAKESHIFT_BLACKJACK = 30944;
14755
+ static readonly BRANCH_30945 = 30945;
14756
+ static readonly POTATO_SACK = 30947;
14757
+ static readonly EMISSARY_SCROLL = 30949;
14758
+ static readonly CANVAS_PIECE = 30950;
14759
+ static readonly KEY_30951 = 30951;
14760
+ static readonly STONE_TABLET_30952 = 30952;
14761
+ static readonly STONE_TABLET_30953 = 30953;
14762
+ static readonly STONE_TABLET_30954 = 30954;
14763
+ static readonly ARKAN_BLADE = 30955;
14764
+ static readonly EARTHBOUND_TECPATL = 30957;
14765
+ static readonly ANTIQUE_LAMP_30960 = 30960;
14766
+ static readonly KEYSTONE_FRAGMENT = 30961;
14767
+ static readonly KUHU_ESSENCE = 30962;
14768
+ static readonly ANCIENT_ROOTS = 30963;
14769
+ static readonly ROOT_KINDLING = 30964;
14770
+ static readonly KNIFE_BLADE = 30965;
14771
+ static readonly ANCIENT_TELEPORTER = 30966;
14772
+ static readonly LARGE_EGG = 30967;
14773
+ static readonly DRAGON_EGG = 30968;
14774
+ static readonly JAGUAR_EGG = 30969;
14775
+ static readonly EGG_30970 = 30970;
14776
+ static readonly ALANS_BONES = 30973;
14777
+ static readonly ALANS_BONEMEAL = 30975;
14778
+ static readonly DAMIANA_LEAVES = 30977;
14779
+ static readonly DAMIANA_WATER = 30979;
14780
+ static readonly DAMIANA_TEA = 30981;
14781
+ static readonly DAMIANA_TEA_30983 = 30983;
14782
+ static readonly CUP_OF_TEA_30985 = 30985;
14783
+ static readonly CUP_OF_TEA_30987 = 30987;
14784
+ static readonly ACATZINS_AXE = 30989;
14785
+ static readonly ACATZINS_AXE_30990 = 30990;
14786
+ static readonly KITE_SHIELD_30991 = 30991;
14787
+ static readonly DUNGEON_ENTRANCE_30992 = 30992;
14788
+ static readonly CUSTODIAN_STALKER = 30993;
14789
+ static readonly CUSTODIAN_STALKER_30994 = 30994;
14790
+ static readonly CUSTODIAN_STALKER_30995 = 30995;
14791
+ static readonly EVENTS_TOOL = 30997;
14792
+ static readonly ATLATL_DART_TIPS = 30998;
14793
+ static readonly ATLATL_DART_SHAFT = 31004;
14794
+ static readonly HEADLESS_ATLATL_DART = 31010;
14795
+ static readonly SACRAMENTS_OF_ENT_FOLK = 31016;
14796
+ static readonly ENT_SEED = 31018;
14797
+ static readonly GREENMAN_CARVING = 31024;
14798
+ static readonly GREENMAN_STATUE = 31027;
14799
+ static readonly GREENMAN_CARVING_31030 = 31030;
14800
+ static readonly GREENMAN_STATUE_31031 = 31031;
14801
+ static readonly ENT_BRANCH = 31032;
14802
+ static readonly GREENMAN_MASK = 31034;
14803
+ static readonly GREENMAN_MASK_NORMAL = 31037;
14804
+ static readonly GREENMAN_MASK_OAK = 31038;
14805
+ static readonly GREENMAN_MASK_WILLOW = 31039;
14806
+ static readonly GREENMAN_MASK_MAPLE = 31040;
14807
+ static readonly GREENMAN_MASK_YEW = 31041;
14808
+ static readonly GREENMAN_MASK_MAGIC = 31042;
14809
+ static readonly FLETCHING_KNIFE = 31043;
14810
+ static readonly BALE_OF_FLAX = 31045;
14811
+ static readonly DIRTY_ARROWTIPS = 31047;
14812
+ static readonly REDWOOD_HIKING_STAFF = 31049;
14813
+ static readonly BOW_STRING_SPOOL = 31052;
14814
+ static readonly VALE_OFFERINGS = 31054;
14815
+ static readonly LETTER_31071 = 31071;
14816
+ static readonly LETTER_31073 = 31073;
14817
+ static readonly ALANS_BLESSED_BONES = 31075;
14818
+ static readonly ON_MIGRATION_PATTERNS = 31077;
14819
+ static readonly AUBURN_VALLEY_ECOLOGICAL_REPORTS = 31079;
14820
+ static readonly ANTLER_GUARD = 31081;
14821
+ static readonly ALCHEMISTS_SIGNET = 31084;
14822
+ static readonly BROKEN_ANTLER = 31086;
14823
+ static readonly AVERNIC_TREADS = 31088;
14824
+ static readonly AVERNIC_TREADS_PR = 31091;
14825
+ static readonly AVERNIC_TREADS_PE = 31092;
14826
+ static readonly AVERNIC_TREADS_ET = 31093;
14827
+ static readonly AVERNIC_TREADS_PRPE = 31094;
14828
+ static readonly AVERNIC_TREADS_PRET = 31095;
14829
+ static readonly AVERNIC_TREADS_PEET = 31096;
14830
+ static readonly AVERNIC_TREADS_MAX = 31097;
14831
+ static readonly MOKHAIOTL_WAYSTONE = 31099;
14832
+ static readonly CONFLICTION_GAUNTLETS = 31106;
14833
+ static readonly MOKHAIOTL_CLOTH = 31109;
14834
+ static readonly DEMON_TEAR = 31111;
14835
+ static readonly EYE_OF_AYAK = 31113;
14836
+ static readonly EYE_OF_AYAK_UNCHARGED = 31115;
14837
+ static readonly ORANGE_31117 = 31117;
14838
+ static readonly OLD_LETTER = 31121;
14839
+ static readonly TOKEN_31123 = 31123;
14840
+ static readonly TOKEN_31124 = 31124;
14841
+ static readonly TOKEN_31125 = 31125;
14842
+ static readonly TOKEN_31126 = 31126;
14843
+ static readonly TOKEN_31127 = 31127;
14844
+ static readonly BLUEBERRY_MUFFIN = 31128;
14845
+ static readonly DOM = 31130;
14722
14846
  /* This file is automatically generated. Do not edit. */
14723
14847
  }
14724
14848
  }
@@ -33,64 +33,120 @@ declare namespace net.runelite.api {
33
33
  * Gets the ID of the projectile.
34
34
  *
35
35
  * @return the projectile ID
36
- * @see GraphicID
36
+ * @see net.runelite.api.gameval.SpotanimID
37
37
  */
38
38
  getId(): number;
39
+
40
+ /**
41
+ * Get the level the projectile starts on.
42
+ *
43
+ * @return
44
+ */
45
+ getSourceLevel(): number;
46
+
47
+ /**
48
+ * Get the point the projectile starts at.
49
+ *
50
+ * @return
51
+ */
52
+ getSourcePoint(): net.runelite.api.coords.LocalPoint;
53
+
54
+ /**
55
+ * Get the actor the projectile starts at.
56
+ *
57
+ * @return
58
+ */
59
+ getSourceActor(): Actor | null;
60
+
61
+ /**
62
+ * Get the level the projectile ends on.
63
+ * @return
64
+ */
65
+ getTargetLevel(): number;
66
+
67
+ /**
68
+ * Get the point the projectile ends at.
69
+ *
70
+ * @return
71
+ */
72
+ getTargetPoint(): net.runelite.api.coords.LocalPoint;
73
+
74
+ /**
75
+ * Get the actor the projectile ends at.
76
+ *
77
+ * @return
78
+ */
79
+ getTargetActor(): Actor | null;
80
+
39
81
  /**
40
82
  * Gets the actor that is targeted by this projectile.
41
83
  *
42
84
  * @return the target actor, or null if this projectile is an AoE attack
85
+ * @deprecated
43
86
  */
44
- getInteracting(): Actor;
87
+ getInteracting(): Actor | null;
88
+
45
89
  /**
46
90
  * Get the target point of the projectile. For projectiles with an actor target,
47
91
  * this is updated each frame to the actor position.
48
92
  *
49
93
  * @return
94
+ * @deprecated
50
95
  */
51
96
  getTarget(): net.runelite.api.coords.LocalPoint;
97
+
52
98
  /**
53
99
  * Gets the original x-axis coordinate that this projectile started from.
54
100
  *
55
101
  * @return the original coordinate
102
+ * @deprecated
56
103
  */
57
104
  getX1(): number;
105
+
58
106
  /**
59
107
  * Gets the original y-axis coordinate that this projectile started from.
60
108
  *
61
109
  * @return the original coordinate
110
+ * @deprecated
62
111
  */
63
112
  getY1(): number;
113
+
64
114
  /**
65
115
  * Gets the plane that the projectile is on.
66
116
  *
67
117
  * @return the plane
118
+ * @deprecated
68
119
  */
69
120
  getFloor(): number;
121
+
70
122
  /**
71
123
  * Gets the height of the projectile.
72
124
  *
73
125
  * @return the height
74
126
  */
75
127
  getHeight(): number;
128
+
76
129
  /**
77
130
  * Gets the ending height of the projectile.
78
131
  *
79
132
  * @return the ending height
80
133
  */
81
134
  getEndHeight(): number;
135
+
82
136
  /**
83
137
  * Gets the game cycle that the projectile begun movement at.
84
138
  *
85
139
  * @return the start game cycle
86
140
  */
87
141
  getStartCycle(): number;
142
+
88
143
  /**
89
144
  * Gets the game cycle that the projectile will reach its target at.
90
145
  *
91
146
  * @return the end game cycle
92
147
  */
93
148
  getEndCycle(): number;
149
+
94
150
  /**
95
151
  * Sets the game cycle the projectile will reach its target at. The
96
152
  * projectile automatically despawns after this time, and setting the
@@ -99,6 +155,7 @@ declare namespace net.runelite.api {
99
155
  * @param cycle
100
156
  */
101
157
  setEndCycle(cycle: number): void;
158
+
102
159
  /**
103
160
  * Gets the remaining game cycles until the projectile reaches its
104
161
  * target and despawns.
@@ -106,6 +163,7 @@ declare namespace net.runelite.api {
106
163
  * @return the remaining game cycles
107
164
  */
108
165
  getRemainingCycles(): number;
166
+
109
167
  /**
110
168
  * Gets the slope of the projectile.
111
169
  * <p>
@@ -115,59 +173,48 @@ declare namespace net.runelite.api {
115
173
  * @return the slope of the projectile
116
174
  */
117
175
  getSlope(): number;
176
+
118
177
  /**
119
178
  * Gets the starting height of the projectile.
120
179
  *
121
180
  * @return the starting height
122
181
  */
123
182
  getStartHeight(): number;
183
+
124
184
  /**
125
185
  * Gets the current x-axis coordinate of the projectile.
126
186
  *
127
187
  * @return the x-axis coordinate
128
188
  */
129
189
  getX(): number;
190
+
130
191
  /**
131
192
  * Gets the current y-axis coordinate of the projectile.
132
193
  *
133
194
  * @return the y-axis coordinate
134
195
  */
135
196
  getY(): number;
197
+
136
198
  /**
137
199
  * Gets the current z-axis coordinate of the projectile.
138
200
  *
139
201
  * @return the z-axis coordinate
140
202
  */
141
203
  getZ(): number;
204
+
142
205
  /**
143
- * Gets the scalar quantity (speed) at which the projectile is travelling.
144
- *
145
- * @return the scalar quantity
146
- */
147
- getScalar(): number;
148
- /**
149
- * Gets the x-axis velocity of the projectile.
150
- *
151
- * @return the x-axis velocity
152
- */
153
- getVelocityX(): number;
154
- /**
155
- * Gets the y-axis velocity of the projectile.
206
+ * Get the projectile orientation in JAU
156
207
  *
157
- * @return the y-axis velocity
158
- */
159
- getVelocityY(): number;
160
- /**
161
- * Gets the z-axis velocity of the projectile.
162
- *
163
- * @return the z-axis velocity
208
+ * @return
164
209
  */
165
- getVelocityZ(): number;
210
+ getOrientation(): number;
211
+
166
212
  /**
167
213
  * The animation of the projectile
168
214
  * @return
169
215
  */
170
216
  getAnimation(): Animation | null;
217
+
171
218
  /**
172
219
  * The frame of the current animation
173
220
  * @return
@@ -25,33 +25,39 @@
25
25
  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26
26
  */
27
27
  declare namespace net.runelite.api {
28
- export class WorldView {
28
+ export interface WorldView {
29
29
  /**
30
30
  * Get the world view id
31
31
  * @return the id, or -1 if this is the top level worldview
32
32
  */
33
33
  getId(): number;
34
+
34
35
  /**
35
36
  * Test if this worldview is the top level world view.
36
37
  * @return
37
38
  */
38
39
  isTopLevel(): boolean;
40
+
39
41
  /**
40
42
  * Gets the worldview's scene
41
43
  */
42
44
  getScene(): Scene;
45
+
43
46
  /**
44
47
  * Gets all of the Players in this view
45
48
  */
46
- players(): any;
49
+ players(): IndexedObjectSet<Player>;
50
+
47
51
  /**
48
52
  * Gets all the Non Player Characters in this view
49
53
  */
50
- npcs(): any;
54
+ npcs(): IndexedObjectSet<NPC>;
55
+
51
56
  /**
52
57
  * Gets all the WorldEntities in this view
53
58
  */
54
- worldEntities(): any;
59
+ worldEntities(): IndexedObjectSet<WorldEntity>;
60
+
55
61
  /**
56
62
  * Gets an array of tile collision data.
57
63
  * <p>
@@ -60,6 +66,7 @@ declare namespace net.runelite.api {
60
66
  * @return the collision data
61
67
  */
62
68
  getCollisionMaps(): CollisionData[] | null;
69
+
63
70
  /**
64
71
  * Gets the current plane the player is on.
65
72
  * <p>
@@ -73,6 +80,7 @@ declare namespace net.runelite.api {
73
80
  * @return the plane
74
81
  */
75
82
  getPlane(): number;
83
+
76
84
  /**
77
85
  * Gets a 3D array containing the heights of tiles in the
78
86
  * current scene.
@@ -80,6 +88,7 @@ declare namespace net.runelite.api {
80
88
  * @return the tile heights
81
89
  */
82
90
  getTileHeights(): number[][][];
91
+
83
92
  /**
84
93
  * Gets a 3D array containing the settings of tiles in the
85
94
  * current scene.
@@ -87,16 +96,19 @@ declare namespace net.runelite.api {
87
96
  * @return the tile settings
88
97
  */
89
98
  getTileSettings(): number[][][];
99
+
90
100
  /**
91
101
  * Get the size of the world view, x-axis
92
102
  * @return
93
103
  */
94
104
  getSizeX(): number;
105
+
95
106
  /**
96
107
  * Get the size of the world view, y-axis
97
108
  * @return
98
109
  */
99
110
  getSizeY(): number;
111
+
100
112
  /**
101
113
  * Returns the x-axis base coordinate.
102
114
  * <p>
@@ -106,6 +118,7 @@ declare namespace net.runelite.api {
106
118
  * @return the base x-axis coordinate
107
119
  */
108
120
  getBaseX(): number;
121
+
109
122
  /**
110
123
  * Returns the y-axis base coordinate.
111
124
  * <p>
@@ -115,6 +128,7 @@ declare namespace net.runelite.api {
115
128
  * @return the base y-axis coordinate
116
129
  */
117
130
  getBaseY(): number;
131
+
118
132
  /**
119
133
  * Create a projectile.
120
134
  * @param id projectile/spotanim id
@@ -131,6 +145,7 @@ declare namespace net.runelite.api {
131
145
  * @param targetX target x - if an actor target is supplied should be the target x
132
146
  * @param targetY target y - if an actor target is supplied should be the target y
133
147
  * @return the new projectile
148
+ * @deprecated
134
149
  */
135
150
  createProjectile(
136
151
  id: number,
@@ -143,34 +158,32 @@ declare namespace net.runelite.api {
143
158
  slope: number,
144
159
  startHeight: number,
145
160
  endHeight: number,
146
- target: Actor,
161
+ target: Actor | null,
147
162
  targetX: number,
148
163
  targetY: number,
149
164
  ): Projectile;
150
- /**
151
- * Gets a list of all projectiles currently spawned.
152
- *
153
- * @return all projectiles
154
- */
155
- getProjectiles(): net.runelite.api.Deque<Projectile>;
165
+
156
166
  /**
157
167
  * Gets a list of all graphics objects currently drawn.
158
168
  *
159
169
  * @return all graphics objects
160
170
  */
161
- getGraphicsObjects(): net.runelite.api.Deque<GraphicsObject>;
171
+ getGraphicsObjects(): Deque<GraphicsObject>;
172
+
162
173
  /**
163
174
  * Gets the currently selected tile. (ie. last right clicked tile)
164
175
  *
165
176
  * @return the selected tile
166
177
  */
167
178
  getSelectedSceneTile(): Tile | null;
179
+
168
180
  /**
169
181
  * Check if this scene is an instance
170
182
  * @see #getInstanceTemplateChunks()
171
183
  * @return
172
184
  */
173
185
  isInstance(): boolean;
186
+
174
187
  /**
175
188
  * Contains a 3D array of template chunks for instanced areas.
176
189
  * <p>
@@ -192,5 +205,16 @@ declare namespace net.runelite.api {
192
205
  * @see InstanceTemplates
193
206
  */
194
207
  getInstanceTemplateChunks(): number[][][];
208
+
209
+ /**
210
+ * Gets an array of map region IDs that are currently loaded.
211
+ *
212
+ * @return the map regions
213
+ */
214
+ getMapRegions(): number[];
215
+ }
216
+
217
+ export namespace WorldView {
218
+ export const TOPLEVEL: number;
195
219
  }
196
220
  }
@@ -25,18 +25,19 @@
25
25
  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26
26
  */
27
27
  declare namespace net.runelite.api.geometry {
28
- export class Shapes<T extends Shape> implements Shape {
29
- getBounds(): java.awt.Rectangle;
30
- getBounds2D(): Rectangle2D;
31
- contains(x: number, y: number): boolean;
32
- contains(p: Point2D): boolean;
33
- intersects(x: number, y: number, w: number, h: number): boolean;
34
- intersects(r: Rectangle2D): boolean;
35
- contains(x: number, y: number, w: number, h: number): boolean;
36
- contains(r: Rectangle2D): boolean;
37
- getPathIterator(at: AffineTransform): PathIterator;
38
- getPathIterator(at: AffineTransform, flatness: number): PathIterator;
39
- /** TBD-1 */
40
- // export class ShapeIterator implements PathIterator
41
- }
28
+ export class Shapes<T extends Shape> implements Shape
29
+ {
30
+ getBounds(): Rectangle;
31
+ getBounds2D(): Rectangle2D;
32
+ contains(x: number, y: number): boolean;
33
+ contains(p: Point2D): boolean;
34
+ intersects(x: number, y: number, w: number, h: number): boolean;
35
+ intersects(r: Rectangle2D): boolean;
36
+ contains(x: number, y: number, w: number, h: number): boolean;
37
+ contains(r: Rectangle2D): boolean;
38
+ getPathIterator(at: AffineTransform): PathIterator;
39
+ getPathIterator(at: AffineTransform, flatness: number): PathIterator;
40
+ /** TBD-1 */
41
+ // export class ShapeIterator implements PathIterator
42
42
  }
43
+ }
@@ -25,43 +25,44 @@
25
25
  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26
26
  */
27
27
  declare namespace net.runelite.api.geometry {
28
+ /**
29
+ * A simple list of vertices that can be append or prepended to
30
+ */
31
+ export class SimplePolygon implements Shape
32
+ {
33
+ pushLeft(xCoord: number, yCoord: number): void;
34
+ popLeft(): void;
35
+ private expandLeft(grow: number): void;
36
+ pushRight(xCoord: number, yCoord: number): void;
37
+ popRight(): void;
38
+ private expandRight(grow: number): void;
39
+ getX(index: number): number;
40
+ getY(index: number): number;
41
+ size(): number;
42
+ toRuneLitePointList(): Array<Ponumber>;
43
+ copyTo(xDest: number[], yDest: number[], offset: number): void;
44
+ appendTo(other: SimplePolygon): void;
45
+ reverse(): void;
28
46
  /**
29
- * A simple list of vertices that can be append or prepended to
47
+ * Clips the polygon with the passed convex polygon
30
48
  */
31
- export class SimplePolygon implements Shape {
32
- pushLeft(xCoord: number, yCoord: number): void;
33
- popLeft(): void;
34
- private expandLeft(grow: number): void;
35
- pushRight(xCoord: number, yCoord: number): void;
36
- popRight(): void;
37
- private expandRight(grow: number): void;
38
- getX(index: number): number;
39
- getY(index: number): number;
40
- size(): number;
41
- toRuneLitePointList(): Array<Ponumber>;
42
- copyTo(xDest: number[], yDest: number[], offset: number): void;
43
- appendTo(other: SimplePolygon): void;
44
- reverse(): void;
45
- /**
46
- * Clips the polygon with the passed convex polygon
47
- */
48
- intersectWithConvex(convex: SimplePolygon): void;
49
+ intersectWithConvex(convex: SimplePolygon): void;
49
50
  // Sutherland-Hodgman
50
- getBounds(): java.awt.Rectangle;
51
- getBounds2D(): Rectangle2D;
52
- contains(cx: number, cy: number): boolean;
53
- private crossings(cx: number, cy: number, swap: boolean): number;
54
- contains(p: Point2D): boolean;
55
- intersects(x0: number, y0: number, w: number, h: number): boolean;
51
+ getBounds(): Rectangle;
52
+ getBounds2D(): Rectangle2D;
53
+ contains(cx: number, cy: number): boolean;
54
+ private crossings(cx: number, cy: number, swap: boolean): number;
55
+ contains(p: Point2D): boolean;
56
+ intersects(x0: number, y0: number, w: number, h: number): boolean;
56
57
  // this is horribly inefficient, but I don't think it will be called anywhere
57
- intersects(r: Rectangle2D): boolean;
58
- contains(x: number, y: number, w: number, h: number): boolean;
59
- contains(r: Rectangle2D): boolean;
60
- getPathIterator(at: AffineTransform): PathIterator;
61
- getPathIterator(at: AffineTransform, flatness: number): PathIterator;
62
- /** TBD-1 */
63
- // export class SimpleIterator implements PathIterator
64
- /** TBD-1 */
65
- // export class TransformIterator extends SimpleIterator
66
- }
58
+ intersects(r: Rectangle2D): boolean;
59
+ contains(x: number, y: number, w: number, h: number): boolean;
60
+ contains(r: Rectangle2D): boolean;
61
+ getPathIterator(at: AffineTransform): PathIterator;
62
+ getPathIterator(at: AffineTransform, flatness: number): PathIterator;
63
+ /** TBD-1 */
64
+ // export class SimpleIterator implements PathIterator
65
+ /** TBD-1 */
66
+ // export class TransformIterator extends SimpleIterator
67
67
  }
68
+ }
@@ -395,7 +395,7 @@ declare namespace net.runelite.api.widgets {
395
395
  *
396
396
  * @return the occupied area of the widget
397
397
  */
398
- getBounds(): java.awt.Rectangle;
398
+ getBounds(): Rectangle;
399
399
  /**
400
400
  * Gets the item ID displayed by the widget.
401
401
  *
@@ -514,7 +514,12 @@ declare namespace net.runelite.api.widgets {
514
514
  */
515
515
  setOriginalWidth(originalWidth: number): Widget;
516
516
  setSize(width: number, height: number): Widget;
517
- setSize(width: number, height: number, widthMode: number, heightMode: number): Widget;
517
+ setSize(
518
+ width: number,
519
+ height: number,
520
+ widthMode: number,
521
+ heightMode: number,
522
+ ): Widget;
518
523
  /**
519
524
  * Gets the menu options available on the widget as a sparse array.
520
525
  */