@deafwave/osrs-botmaker-types 0.2.13 → 0.3.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 (283) hide show
  1. package/README.md +3 -1
  2. package/dist/src/index.d.ts +0 -1
  3. package/dist/src/types/java/awt/BasicStroke.d.ts +2 -9
  4. package/dist/src/types/java/awt/Color.d.ts +20 -3
  5. package/dist/src/types/java/awt/Dimension.d.ts +55 -0
  6. package/dist/src/types/java/awt/Graphics2D.d.ts +4 -17
  7. package/dist/src/types/java/index.d.ts +3 -6
  8. package/dist/src/types/java/lang/index.d.ts +30 -0
  9. package/dist/src/types/java/util/index.d.ts +231 -0
  10. package/dist/src/types/runelite/index.d.ts +7 -1
  11. package/dist/src/types/runelite/net/runelite/api/ChatMessageType.d.ts +174 -295
  12. package/dist/src/types/runelite/net/runelite/api/Client.d.ts +6 -6
  13. package/dist/src/types/runelite/net/runelite/api/Deque.d.ts +1 -1
  14. package/dist/src/types/runelite/net/runelite/api/EquipmentInventorySlot.d.ts +30 -61
  15. package/dist/src/types/runelite/net/runelite/api/FriendContainer.d.ts +1 -1
  16. package/dist/src/types/runelite/net/runelite/api/GameState.d.ts +55 -78
  17. package/dist/src/types/runelite/net/runelite/api/InventoryID.d.ts +23 -180
  18. package/dist/src/types/runelite/net/runelite/api/ItemID.d.ts +355 -23
  19. package/dist/src/types/runelite/net/runelite/api/PlayerComposition.d.ts +1 -1
  20. package/dist/src/types/runelite/net/runelite/api/SpritePixels.d.ts +1 -1
  21. package/dist/src/types/runelite/net/runelite/api/WorldView.d.ts +2 -2
  22. package/dist/src/types/runelite/net/runelite/api/coords/WorldArea.d.ts +19 -31
  23. package/dist/src/types/runelite/net/runelite/api/widgets/ComponentID.d.ts +2171 -0
  24. package/dist/src/types/runelite/net/runelite/api/widgets/InterfaceID.d.ts +318 -0
  25. package/dist/src/types/runelite/net/runelite/api/widgets/Widget.d.ts +1 -1
  26. package/dist/src/types/runelite/net/runelite/client/chat/ChatMessageBuilder.d.ts +7 -8
  27. package/dist/src/types/runelite/net/runelite/client/chat/ChatMessageManager.d.ts +38 -39
  28. package/dist/src/types/runelite/net/runelite/client/config/ChatColorConfig.d.ts +80 -80
  29. package/dist/src/types/runelite/net/runelite/client/config/RuneLiteConfig.d.ts +3 -3
  30. package/dist/src/types/runelite/net/runelite/client/game/ItemManager.d.ts +5 -21
  31. package/dist/src/types/runelite/net/runelite/client/game/npcoverlay/NpcMinimapOverlay.d.ts +4 -5
  32. package/dist/src/types/runelite/net/runelite/client/game/npcoverlay/NpcOverlay.d.ts +11 -6
  33. package/dist/src/types/runelite/net/runelite/client/plugins/agility/AgilityConfig.d.ts +6 -6
  34. package/dist/src/types/runelite/net/runelite/client/plugins/agility/AgilityOverlay.d.ts +10 -6
  35. package/dist/src/types/runelite/net/runelite/client/plugins/agility/LapCounterOverlay.d.ts +4 -5
  36. package/dist/src/types/runelite/net/runelite/client/plugins/attackstyles/AttackStylesOverlay.d.ts +3 -4
  37. package/dist/src/types/runelite/net/runelite/client/plugins/barbarianassault/HealerOverlay.d.ts +79 -41
  38. package/dist/src/types/runelite/net/runelite/client/plugins/barbarianassault/TimerOverlay.d.ts +3 -4
  39. package/dist/src/types/runelite/net/runelite/client/plugins/barrows/BarrowsBrotherSlainOverlay.d.ts +20 -21
  40. package/dist/src/types/runelite/net/runelite/client/plugins/barrows/BarrowsConfig.d.ts +2 -2
  41. package/dist/src/types/runelite/net/runelite/client/plugins/barrows/BarrowsOverlay.d.ts +4 -5
  42. package/dist/src/types/runelite/net/runelite/client/plugins/blastfurnace/BlastFurnaceClickBoxOverlay.d.ts +5 -6
  43. package/dist/src/types/runelite/net/runelite/client/plugins/blastfurnace/BlastFurnaceCofferOverlay.d.ts +3 -4
  44. package/dist/src/types/runelite/net/runelite/client/plugins/blastfurnace/BlastFurnaceOverlay.d.ts +4 -5
  45. package/dist/src/types/runelite/net/runelite/client/plugins/blastmine/BlastMineOreCountOverlay.d.ts +4 -5
  46. package/dist/src/types/runelite/net/runelite/client/plugins/blastmine/BlastMinePluginConfig.d.ts +2 -2
  47. package/dist/src/types/runelite/net/runelite/client/plugins/blastmine/BlastMineRockOverlay.d.ts +7 -8
  48. package/dist/src/types/runelite/net/runelite/client/plugins/boosts/BoostIndicator.d.ts +6 -7
  49. package/dist/src/types/runelite/net/runelite/client/plugins/boosts/BoostsOverlay.d.ts +4 -5
  50. package/dist/src/types/runelite/net/runelite/client/plugins/boosts/CompactBoostsOverlay.d.ts +15 -9
  51. package/dist/src/types/runelite/net/runelite/client/plugins/boosts/StatChangeIndicator.d.ts +5 -6
  52. package/dist/src/types/runelite/net/runelite/client/plugins/cannon/CannonConfig.d.ts +1 -1
  53. package/dist/src/types/runelite/net/runelite/client/plugins/cannon/CannonCounter.d.ts +4 -5
  54. package/dist/src/types/runelite/net/runelite/client/plugins/cannon/CannonOverlay.d.ts +13 -10
  55. package/dist/src/types/runelite/net/runelite/client/plugins/cannon/CannonPlugin.d.ts +16 -15
  56. package/dist/src/types/runelite/net/runelite/client/plugins/cannon/CannonSpotOverlay.d.ts +10 -5
  57. package/dist/src/types/runelite/net/runelite/client/plugins/chatchannel/ChatChannelConfig.d.ts +1 -1
  58. package/dist/src/types/runelite/net/runelite/client/plugins/chatchannel/ChatChannelPlugin.d.ts +46 -43
  59. package/dist/src/types/runelite/net/runelite/client/plugins/cluescrolls/ClueScrollEmoteOverlay.d.ts +3 -4
  60. package/dist/src/types/runelite/net/runelite/client/plugins/cluescrolls/ClueScrollMusicOverlay.d.ts +3 -4
  61. package/dist/src/types/runelite/net/runelite/client/plugins/cluescrolls/ClueScrollOverlay.d.ts +3 -4
  62. package/dist/src/types/runelite/net/runelite/client/plugins/cluescrolls/ClueScrollWorldOverlay.d.ts +3 -4
  63. package/dist/src/types/runelite/net/runelite/client/plugins/combatlevel/CombatLevelOverlay.d.ts +4 -5
  64. package/dist/src/types/runelite/net/runelite/client/plugins/config/ConfigPanel.d.ts +29 -27
  65. package/dist/src/types/runelite/net/runelite/client/plugins/config/FixedWidthPanel.d.ts +3 -4
  66. package/dist/src/types/runelite/net/runelite/client/plugins/config/NotificationPanel.d.ts +13 -14
  67. package/dist/src/types/runelite/net/runelite/client/plugins/config/PluginListPanel.d.ts +19 -20
  68. package/dist/src/types/runelite/net/runelite/client/plugins/cooking/CookingOverlay.d.ts +4 -5
  69. package/dist/src/types/runelite/net/runelite/client/plugins/cooking/FermentTimer.d.ts +7 -8
  70. package/dist/src/types/runelite/net/runelite/client/plugins/corp/CorpDamageOverlay.d.ts +3 -4
  71. package/dist/src/types/runelite/net/runelite/client/plugins/devtools/CameraOverlay.d.ts +3 -4
  72. package/dist/src/types/runelite/net/runelite/client/plugins/devtools/DevToolsOverlay.d.ts +15 -16
  73. package/dist/src/types/runelite/net/runelite/client/plugins/devtools/InventoryDeltaPanel.d.ts +12 -13
  74. package/dist/src/types/runelite/net/runelite/client/plugins/devtools/LocationOverlay.d.ts +3 -4
  75. package/dist/src/types/runelite/net/runelite/client/plugins/devtools/SceneOverlay.d.ts +17 -13
  76. package/dist/src/types/runelite/net/runelite/client/plugins/devtools/SoundEffectOverlay.d.ts +6 -7
  77. package/dist/src/types/runelite/net/runelite/client/plugins/devtools/WidgetInspector.d.ts +19 -20
  78. package/dist/src/types/runelite/net/runelite/client/plugins/devtools/WidgetInspectorOverlay.d.ts +4 -5
  79. package/dist/src/types/runelite/net/runelite/client/plugins/devtools/WorldMapLocationOverlay.d.ts +3 -4
  80. package/dist/src/types/runelite/net/runelite/client/plugins/devtools/WorldMapRegionOverlay.d.ts +6 -7
  81. package/dist/src/types/runelite/net/runelite/client/plugins/dpscounter/DpsOverlay.d.ts +5 -6
  82. package/dist/src/types/runelite/net/runelite/client/plugins/driftnet/DriftNetConfig.d.ts +3 -3
  83. package/dist/src/types/runelite/net/runelite/client/plugins/driftnet/DriftNetOverlay.d.ts +6 -7
  84. package/dist/src/types/runelite/net/runelite/client/plugins/fishing/FishingConfig.d.ts +4 -4
  85. package/dist/src/types/runelite/net/runelite/client/plugins/fishing/FishingOverlay.d.ts +3 -4
  86. package/dist/src/types/runelite/net/runelite/client/plugins/fishing/FishingSpotMinimapOverlay.d.ts +3 -4
  87. package/dist/src/types/runelite/net/runelite/client/plugins/fishing/FishingSpotOverlay.d.ts +4 -5
  88. package/dist/src/types/runelite/net/runelite/client/plugins/fps/FpsOverlay.d.ts +16 -17
  89. package/dist/src/types/runelite/net/runelite/client/plugins/friendnotes/FriendNoteOverlay.d.ts +3 -4
  90. package/dist/src/types/runelite/net/runelite/client/plugins/gpu/GpuPluginConfig.d.ts +1 -1
  91. package/dist/src/types/runelite/net/runelite/client/plugins/grandexchange/GrandExchangeItemPanel.d.ts +7 -8
  92. package/dist/src/types/runelite/net/runelite/client/plugins/grandexchange/GrandExchangeOfferSlot.d.ts +13 -14
  93. package/dist/src/types/runelite/net/runelite/client/plugins/grounditems/GroundItemsConfig.d.ts +7 -7
  94. package/dist/src/types/runelite/net/runelite/client/plugins/grounditems/GroundItemsOverlay.d.ts +34 -29
  95. package/dist/src/types/runelite/net/runelite/client/plugins/grounditems/GroundItemsPlugin.d.ts +47 -48
  96. package/dist/src/types/runelite/net/runelite/client/plugins/grounditems/Lootbeam.d.ts +20 -13
  97. package/dist/src/types/runelite/net/runelite/client/plugins/groundmarkers/GroundMarkerConfig.d.ts +1 -1
  98. package/dist/src/types/runelite/net/runelite/client/plugins/groundmarkers/GroundMarkerMinimapOverlay.d.ts +5 -6
  99. package/dist/src/types/runelite/net/runelite/client/plugins/groundmarkers/GroundMarkerOverlay.d.ts +11 -6
  100. package/dist/src/types/runelite/net/runelite/client/plugins/groundmarkers/GroundMarkerPlugin.d.ts +24 -25
  101. package/dist/src/types/runelite/net/runelite/client/plugins/herbiboars/HerbiboarConfig.d.ts +4 -4
  102. package/dist/src/types/runelite/net/runelite/client/plugins/herbiboars/HerbiboarMinimapOverlay.d.ts +3 -4
  103. package/dist/src/types/runelite/net/runelite/client/plugins/herbiboars/HerbiboarOverlay.d.ts +4 -5
  104. package/dist/src/types/runelite/net/runelite/client/plugins/hunter/HunterConfig.d.ts +4 -4
  105. package/dist/src/types/runelite/net/runelite/client/plugins/hunter/TrapOverlay.d.ts +51 -40
  106. package/dist/src/types/runelite/net/runelite/client/plugins/implings/ImplingsConfig.d.ts +13 -13
  107. package/dist/src/types/runelite/net/runelite/client/plugins/implings/ImplingsOverlay.d.ts +9 -5
  108. package/dist/src/types/runelite/net/runelite/client/plugins/implings/ImplingsPlugin.d.ts +11 -12
  109. package/dist/src/types/runelite/net/runelite/client/plugins/instancemap/InstanceMapOverlay.d.ts +60 -55
  110. package/dist/src/types/runelite/net/runelite/client/plugins/interacthighlight/InteractHighlightConfig.d.ts +6 -6
  111. package/dist/src/types/runelite/net/runelite/client/plugins/interacthighlight/InteractHighlightOverlay.d.ts +7 -8
  112. package/dist/src/types/runelite/net/runelite/client/plugins/inventorygrid/InventoryGridConfig.d.ts +2 -2
  113. package/dist/src/types/runelite/net/runelite/client/plugins/inventorygrid/InventoryGridOverlay.d.ts +9 -7
  114. package/dist/src/types/runelite/net/runelite/client/plugins/inventorytags/InventoryTagsOverlay.d.ts +6 -7
  115. package/dist/src/types/runelite/net/runelite/client/plugins/inventoryviewer/InventoryViewerOverlay.d.ts +6 -7
  116. package/dist/src/types/runelite/net/runelite/client/plugins/itemcharges/ItemChargeConfig.d.ts +2 -2
  117. package/dist/src/types/runelite/net/runelite/client/plugins/itemcharges/ItemChargeInfobox.d.ts +3 -4
  118. package/dist/src/types/runelite/net/runelite/client/plugins/itemcharges/ItemChargePlugin.d.ts +33 -34
  119. package/dist/src/types/runelite/net/runelite/client/plugins/itemidentification/ItemIdentificationConfig.d.ts +1 -1
  120. package/dist/src/types/runelite/net/runelite/client/plugins/itemprices/ItemPricesOverlay.d.ts +16 -17
  121. package/dist/src/types/runelite/net/runelite/client/plugins/itemstats/ItemStatConfig.d.ts +5 -5
  122. package/dist/src/types/runelite/net/runelite/client/plugins/itemstats/ItemStatOverlay.d.ts +30 -18
  123. package/dist/src/types/runelite/net/runelite/client/plugins/itemstats/Positivity.d.ts +68 -44
  124. package/dist/src/types/runelite/net/runelite/client/plugins/kourendlibrary/KourendLibraryOverlay.d.ts +9 -10
  125. package/dist/src/types/runelite/net/runelite/client/plugins/kourendlibrary/KourendLibraryTutorialOverlay.d.ts +3 -4
  126. package/dist/src/types/runelite/net/runelite/client/plugins/minimap/MinimapConfig.d.ts +7 -7
  127. package/dist/src/types/runelite/net/runelite/client/plugins/minimap/MinimapDot.d.ts +4 -5
  128. package/dist/src/types/runelite/net/runelite/client/plugins/minimap/MinimapPlugin.d.ts +13 -14
  129. package/dist/src/types/runelite/net/runelite/client/plugins/mining/MiningOverlay.d.ts +3 -4
  130. package/dist/src/types/runelite/net/runelite/client/plugins/mining/MiningRocksOverlay.d.ts +16 -17
  131. package/dist/src/types/runelite/net/runelite/client/plugins/motherlode/MiningOverlay.d.ts +4 -5
  132. package/dist/src/types/runelite/net/runelite/client/plugins/motherlode/MotherlodeSceneOverlay.d.ts +8 -9
  133. package/dist/src/types/runelite/net/runelite/client/plugins/mousehighlight/MouseHighlightOverlay.d.ts +8 -9
  134. package/dist/src/types/runelite/net/runelite/client/plugins/mta/MTASceneOverlay.d.ts +3 -4
  135. package/dist/src/types/runelite/net/runelite/client/plugins/mta/alchemy/AlchemyRoom.d.ts +17 -18
  136. package/dist/src/types/runelite/net/runelite/client/plugins/mta/graveyard/GraveyardCounter.d.ts +3 -4
  137. package/dist/src/types/runelite/net/runelite/client/plugins/nightmarezone/AbsorptionCounter.d.ts +4 -5
  138. package/dist/src/types/runelite/net/runelite/client/plugins/nightmarezone/NightmareZoneConfig.d.ts +2 -2
  139. package/dist/src/types/runelite/net/runelite/client/plugins/nightmarezone/NightmareZoneOverlay.d.ts +8 -9
  140. package/dist/src/types/runelite/net/runelite/client/plugins/npchighlight/NpcIndicatorsConfig.d.ts +3 -3
  141. package/dist/src/types/runelite/net/runelite/client/plugins/npchighlight/NpcIndicatorsPlugin.d.ts +92 -90
  142. package/dist/src/types/runelite/net/runelite/client/plugins/npchighlight/NpcRespawnOverlay.d.ts +12 -8
  143. package/dist/src/types/runelite/net/runelite/client/plugins/npcunaggroarea/AggressionTimer.d.ts +4 -5
  144. package/dist/src/types/runelite/net/runelite/client/plugins/npcunaggroarea/NpcAggroAreaConfig.d.ts +2 -2
  145. package/dist/src/types/runelite/net/runelite/client/plugins/npcunaggroarea/NpcAggroAreaOverlay.d.ts +4 -5
  146. package/dist/src/types/runelite/net/runelite/client/plugins/npcunaggroarea/UncalibratedInfobox.d.ts +5 -6
  147. package/dist/src/types/runelite/net/runelite/client/plugins/objectindicators/ObjectIndicatorsConfig.d.ts +2 -2
  148. package/dist/src/types/runelite/net/runelite/client/plugins/objectindicators/ObjectIndicatorsOverlay.d.ts +14 -9
  149. package/dist/src/types/runelite/net/runelite/client/plugins/objectindicators/ObjectIndicatorsPlugin.d.ts +57 -44
  150. package/dist/src/types/runelite/net/runelite/client/plugins/opponentinfo/OpponentInfoOverlay.d.ts +18 -19
  151. package/dist/src/types/runelite/net/runelite/client/plugins/opponentinfo/PlayerComparisonOverlay.d.ts +5 -6
  152. package/dist/src/types/runelite/net/runelite/client/plugins/party/PartyConfig.d.ts +2 -2
  153. package/dist/src/types/runelite/net/runelite/client/plugins/party/PartyPingOverlay.d.ts +4 -5
  154. package/dist/src/types/runelite/net/runelite/client/plugins/party/PartyPlugin.d.ts +36 -37
  155. package/dist/src/types/runelite/net/runelite/client/plugins/party/PartyStatusOverlay.d.ts +13 -8
  156. package/dist/src/types/runelite/net/runelite/client/plugins/pestcontrol/PestControlOverlay.d.ts +11 -12
  157. package/dist/src/types/runelite/net/runelite/client/plugins/playerindicators/PlayerIndicatorsConfig.d.ts +7 -7
  158. package/dist/src/types/runelite/net/runelite/client/plugins/playerindicators/PlayerIndicatorsMinimapOverlay.d.ts +8 -5
  159. package/dist/src/types/runelite/net/runelite/client/plugins/playerindicators/PlayerIndicatorsOverlay.d.ts +9 -6
  160. package/dist/src/types/runelite/net/runelite/client/plugins/playerindicators/PlayerIndicatorsTileOverlay.d.ts +3 -4
  161. package/dist/src/types/runelite/net/runelite/client/plugins/poh/BurnerOverlay.d.ts +3 -4
  162. package/dist/src/types/runelite/net/runelite/client/plugins/poh/PohOverlay.d.ts +4 -5
  163. package/dist/src/types/runelite/net/runelite/client/plugins/poison/PoisonInfobox.d.ts +4 -5
  164. package/dist/src/types/runelite/net/runelite/client/plugins/poison/PoisonOverlay.d.ts +3 -4
  165. package/dist/src/types/runelite/net/runelite/client/plugins/prayer/PrayerBarOverlay.d.ts +7 -8
  166. package/dist/src/types/runelite/net/runelite/client/plugins/prayer/PrayerConfig.d.ts +2 -2
  167. package/dist/src/types/runelite/net/runelite/client/plugins/prayer/PrayerCounter.d.ts +5 -6
  168. package/dist/src/types/runelite/net/runelite/client/plugins/prayer/PrayerDoseOverlay.d.ts +5 -6
  169. package/dist/src/types/runelite/net/runelite/client/plugins/prayer/PrayerFlickOverlay.d.ts +3 -4
  170. package/dist/src/types/runelite/net/runelite/client/plugins/puzzlesolver/PuzzleSolverOverlay.d.ts +19 -20
  171. package/dist/src/types/runelite/net/runelite/client/plugins/pyramidplunder/PyramidPlunderConfig.d.ts +3 -3
  172. package/dist/src/types/runelite/net/runelite/client/plugins/pyramidplunder/PyramidPlunderOverlay.d.ts +4 -5
  173. package/dist/src/types/runelite/net/runelite/client/plugins/pyramidplunder/PyramidPlunderTimer.d.ts +5 -6
  174. package/dist/src/types/runelite/net/runelite/client/plugins/raids/RaidsOverlay.d.ts +5 -6
  175. package/dist/src/types/runelite/net/runelite/client/plugins/raids/RaidsTimer.d.ts +8 -9
  176. package/dist/src/types/runelite/net/runelite/client/plugins/regenmeter/RegenMeterOverlay.d.ts +5 -6
  177. package/dist/src/types/runelite/net/runelite/client/plugins/runecraft/AbyssMinimapOverlay.d.ts +4 -5
  178. package/dist/src/types/runelite/net/runelite/client/plugins/runecraft/AbyssOverlay.d.ts +4 -5
  179. package/dist/src/types/runelite/net/runelite/client/plugins/runenergy/RunEnergyOverlay.d.ts +3 -4
  180. package/dist/src/types/runelite/net/runelite/client/plugins/runepouch/RunepouchConfig.d.ts +1 -1
  181. package/dist/src/types/runelite/net/runelite/client/plugins/screenmarkers/ScreenMarkerCreationOverlay.d.ts +4 -5
  182. package/dist/src/types/runelite/net/runelite/client/plugins/screenmarkers/ScreenMarkerOverlay.d.ts +5 -6
  183. package/dist/src/types/runelite/net/runelite/client/plugins/screenmarkers/ScreenMarkerPlugin.d.ts +14 -15
  184. package/dist/src/types/runelite/net/runelite/client/plugins/screenmarkers/ScreenMarkerRenderable.d.ts +3 -4
  185. package/dist/src/types/runelite/net/runelite/client/plugins/screenmarkers/ScreenMarkerWidgetHighlightOverlay.d.ts +4 -5
  186. package/dist/src/types/runelite/net/runelite/client/plugins/screenshot/ScreenshotOverlay.d.ts +4 -5
  187. package/dist/src/types/runelite/net/runelite/client/plugins/skillcalculator/UIActionSlot.d.ts +8 -9
  188. package/dist/src/types/runelite/net/runelite/client/plugins/skybox/SkyboxPluginConfig.d.ts +2 -2
  189. package/dist/src/types/runelite/net/runelite/client/plugins/slayer/SlayerConfig.d.ts +1 -1
  190. package/dist/src/types/runelite/net/runelite/client/plugins/slayer/TargetWeaknessOverlay.d.ts +5 -6
  191. package/dist/src/types/runelite/net/runelite/client/plugins/smelting/SmeltingOverlay.d.ts +4 -5
  192. package/dist/src/types/runelite/net/runelite/client/plugins/specialcounter/PlayerInfoDropOverlay.d.ts +4 -5
  193. package/dist/src/types/runelite/net/runelite/client/plugins/specialcounter/SpecialCounter.d.ts +6 -7
  194. package/dist/src/types/runelite/net/runelite/client/plugins/specialcounter/SpecialCounterConfig.d.ts +1 -1
  195. package/dist/src/types/runelite/net/runelite/client/plugins/statusbars/StatusBarsOverlay.d.ts +8 -9
  196. package/dist/src/types/runelite/net/runelite/client/plugins/team/MembersIndicator.d.ts +3 -4
  197. package/dist/src/types/runelite/net/runelite/client/plugins/team/TeamCapesOverlay.d.ts +7 -8
  198. package/dist/src/types/runelite/net/runelite/client/plugins/tearsofguthix/TearsOfGuthixConfig.d.ts +2 -2
  199. package/dist/src/types/runelite/net/runelite/client/plugins/tearsofguthix/TearsOfGuthixOverlay.d.ts +3 -4
  200. package/dist/src/types/runelite/net/runelite/client/plugins/tileindicators/TileIndicatorsConfig.d.ts +6 -6
  201. package/dist/src/types/runelite/net/runelite/client/plugins/tileindicators/TileIndicatorsOverlay.d.ts +11 -6
  202. package/dist/src/types/runelite/net/runelite/client/plugins/timers/ElapsedTimer.d.ts +6 -7
  203. package/dist/src/types/runelite/net/runelite/client/plugins/timers/IndicatorIndicator.d.ts +4 -5
  204. package/dist/src/types/runelite/net/runelite/client/plugins/timestamp/TimestampConfig.d.ts +2 -2
  205. package/dist/src/types/runelite/net/runelite/client/plugins/timestamp/TimestampPlugin.d.ts +10 -11
  206. package/dist/src/types/runelite/net/runelite/client/plugins/timetracking/OverviewItemPanel.d.ts +4 -5
  207. package/dist/src/types/runelite/net/runelite/client/plugins/timetracking/clocks/ClockPanel.d.ts +11 -12
  208. package/dist/src/types/runelite/net/runelite/client/plugins/timetracking/clocks/TimerPanel.d.ts +4 -5
  209. package/dist/src/types/runelite/net/runelite/client/plugins/timetracking/farming/FarmingContractInfoBox.d.ts +6 -7
  210. package/dist/src/types/runelite/net/runelite/client/plugins/tithefarm/TitheFarmPlantOverlay.d.ts +7 -8
  211. package/dist/src/types/runelite/net/runelite/client/plugins/tithefarm/TitheFarmPluginConfig.d.ts +3 -3
  212. package/dist/src/types/runelite/net/runelite/client/plugins/wintertodt/WintertodtConfig.d.ts +1 -1
  213. package/dist/src/types/runelite/net/runelite/client/plugins/wintertodt/WintertodtOverlay.d.ts +3 -4
  214. package/dist/src/types/runelite/net/runelite/client/plugins/woodcutting/WoodcuttingOverlay.d.ts +3 -4
  215. package/dist/src/types/runelite/net/runelite/client/plugins/woodcutting/WoodcuttingSceneOverlay.d.ts +14 -15
  216. package/dist/src/types/runelite/net/runelite/client/plugins/worldhopper/WorldHopperPingOverlay.d.ts +3 -4
  217. package/dist/src/types/runelite/net/runelite/client/plugins/xpdrop/XpDropConfig.d.ts +4 -4
  218. package/dist/src/types/runelite/net/runelite/client/plugins/xpglobes/XpGlobesConfig.d.ts +3 -3
  219. package/dist/src/types/runelite/net/runelite/client/plugins/xpglobes/XpGlobesOverlay.d.ts +38 -14
  220. package/dist/src/types/runelite/net/runelite/client/plugins/xptracker/XpInfoBoxOverlay.d.ts +4 -5
  221. package/dist/src/types/runelite/net/runelite/client/plugins/zalcano/ZalcanoOverlay.d.ts +3 -4
  222. package/dist/src/types/runelite/net/runelite/client/plugins/zalcano/ZalcanoPanel.d.ts +6 -7
  223. package/dist/src/types/runelite/net/runelite/client/ui/ContainableFrame.d.ts +67 -45
  224. package/dist/src/types/runelite/net/runelite/client/ui/DynamicGridLayout.d.ts +18 -19
  225. package/dist/src/types/runelite/net/runelite/client/ui/PluginPanel.d.ts +6 -7
  226. package/dist/src/types/runelite/net/runelite/client/ui/components/ColorJButton.d.ts +4 -5
  227. package/dist/src/types/runelite/net/runelite/client/ui/components/DimmableJPanel.d.ts +14 -15
  228. package/dist/src/types/runelite/net/runelite/client/ui/components/FlatTextField.d.ts +19 -20
  229. package/dist/src/types/runelite/net/runelite/client/ui/components/IconTextField.d.ts +68 -45
  230. package/dist/src/types/runelite/net/runelite/client/ui/components/ThinProgressBar.d.ts +10 -11
  231. package/dist/src/types/runelite/net/runelite/client/ui/components/colorpicker/ColorPanel.d.ts +27 -28
  232. package/dist/src/types/runelite/net/runelite/client/ui/components/colorpicker/ColorPickerManager.d.ts +3 -4
  233. package/dist/src/types/runelite/net/runelite/client/ui/components/colorpicker/HuePanel.d.ts +19 -20
  234. package/dist/src/types/runelite/net/runelite/client/ui/components/colorpicker/PreviewPanel.d.ts +4 -5
  235. package/dist/src/types/runelite/net/runelite/client/ui/components/colorpicker/RecentColors.d.ts +7 -8
  236. package/dist/src/types/runelite/net/runelite/client/ui/components/colorpicker/RuneliteColorPicker.d.ts +15 -16
  237. package/dist/src/types/runelite/net/runelite/client/ui/components/shadowlabel/JShadowedLabel.d.ts +4 -5
  238. package/dist/src/types/runelite/net/runelite/client/ui/overlay/OverlayManager.d.ts +1 -1
  239. package/dist/src/types/runelite/net/runelite/client/ui/overlay/OverlayPanel.d.ts +4 -6
  240. package/dist/src/types/runelite/net/runelite/client/ui/overlay/OverlayUtil.d.ts +16 -36
  241. package/dist/src/types/runelite/net/runelite/client/ui/overlay/RenderableEntity.d.ts +1 -1
  242. package/dist/src/types/runelite/net/runelite/client/ui/overlay/WidgetItemOverlay.d.ts +2 -6
  243. package/dist/src/types/runelite/net/runelite/client/ui/overlay/WidgetOverlay.d.ts +3 -10
  244. package/dist/src/types/runelite/net/runelite/client/ui/overlay/components/BackgroundComponent.d.ts +2 -6
  245. package/dist/src/types/runelite/net/runelite/client/ui/overlay/components/ComponentConstants.d.ts +1 -1
  246. package/dist/src/types/runelite/net/runelite/client/ui/overlay/components/ImageComponent.d.ts +2 -2
  247. package/dist/src/types/runelite/net/runelite/client/ui/overlay/components/LayoutableRenderableEntity.d.ts +1 -1
  248. package/dist/src/types/runelite/net/runelite/client/ui/overlay/components/LineComponent.d.ts +8 -10
  249. package/dist/src/types/runelite/net/runelite/client/ui/overlay/components/PanelComponent.d.ts +15 -15
  250. package/dist/src/types/runelite/net/runelite/client/ui/overlay/components/ProgressBarComponent.d.ts +6 -8
  251. package/dist/src/types/runelite/net/runelite/client/ui/overlay/components/ProgressPieComponent.d.ts +10 -8
  252. package/dist/src/types/runelite/net/runelite/client/ui/overlay/components/SplitComponent.d.ts +3 -5
  253. package/dist/src/types/runelite/net/runelite/client/ui/overlay/components/TextComponent.d.ts +2 -2
  254. package/dist/src/types/runelite/net/runelite/client/ui/overlay/components/TitleComponent.d.ts +6 -10
  255. package/dist/src/types/runelite/net/runelite/client/ui/overlay/components/TooltipComponent.d.ts +3 -3
  256. package/dist/src/types/runelite/net/runelite/client/ui/overlay/infobox/Counter.d.ts +4 -5
  257. package/dist/src/types/runelite/net/runelite/client/ui/overlay/infobox/InfoBox.d.ts +7 -8
  258. package/dist/src/types/runelite/net/runelite/client/ui/overlay/infobox/InfoBoxOverlay.d.ts +9 -10
  259. package/dist/src/types/runelite/net/runelite/client/ui/overlay/infobox/LoopTimer.d.ts +5 -6
  260. package/dist/src/types/runelite/net/runelite/client/ui/overlay/infobox/Timer.d.ts +16 -17
  261. package/dist/src/types/runelite/net/runelite/client/ui/overlay/outline/ModelOutlineRenderer.d.ts +192 -159
  262. package/dist/src/types/runelite/net/runelite/client/ui/overlay/tooltip/TooltipOverlay.d.ts +6 -7
  263. package/dist/src/types/runelite/net/runelite/client/ui/overlay/worldmap/WorldMapOverlay.d.ts +24 -25
  264. package/dist/src/types/runelite/net/runelite/client/util/ColorUtil.d.ts +104 -105
  265. package/dist/src/types/runelite/net/runelite/client/util/ImageUtil.d.ts +187 -183
  266. package/dist/src/types/runelite/net/runelite/http/api/item/index.d.ts +232 -0
  267. package/dist/src/types/sox/api/api.d.ts +64 -40
  268. package/dist/src/types/sox/api/bot.d.ts +117 -0
  269. package/dist/src/types/sox/index.d.ts +7 -1
  270. package/package.json +7 -8
  271. package/dist/src/types/java/Collection.d.ts +0 -24
  272. package/dist/src/types/java/Dimension.d.ts +0 -1
  273. package/dist/src/types/java/Graphics2D.d.ts +0 -65
  274. package/dist/src/types/java/List.d.ts +0 -40
  275. package/dist/src/types/java/Thread.d.ts +0 -1
  276. package/dist/src/types/java/lang/Thread.d.ts +0 -8
  277. package/dist/src/types/java/util/HashSet.d.ts +0 -19
  278. package/dist/src/types/java/util/LinkedList.d.ts +0 -16
  279. package/dist/src/types/java/util/Set.d.ts +0 -11
  280. package/dist/src/types/runelite/net/runelite/client/ui/overlay/components/PanelComponents.d.ts +0 -22
  281. package/dist/src/types/runelite/net/runelite/client/ui/overlay/components/ProgressPieComponents.d.ts +0 -13
  282. package/dist/src/types/runelite/target/generated-sources/net/runelite/api/widgets/ComponentID.d.ts +0 -1305
  283. package/dist/src/types/runelite/target/generated-sources/net/runelite/api/widgets/InterfaceID.d.ts +0 -6
@@ -25,109 +25,108 @@
25
25
  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26
26
  */
27
27
  declare namespace net.runelite.client.util {
28
- export class ColorUtil
29
- {
30
- /**
31
- * Creates a color tag from the given color.
32
- *
33
- * @param color The Color to create a tag from.
34
- * @return A string of the color tag for the given color.
35
- */
36
- private static colorTag(color: Color): string;
37
- /**
38
- * Prepends the given str with an opening color tag of the given color.
39
- *
40
- * @param str The string to be colorized.
41
- * @param color The color to be used in the color tag.
42
- * @return The passed str with a prepended color tag.
43
- */
44
- static prependColorTag(str: string, color: Color): string;
45
- /**
46
- * Wraps the given str with a color tag of the given color.
47
- *
48
- * @param str The string to be colorized.
49
- * @param color The color to be used in the color tag.
50
- * @return The passed str wrapped with opening and closing color tags.
51
- */
52
- static wrapWithColorTag(str: string, color: Color): string;
53
- /**
54
- * Converts a given color to it's hexadecimal equivalent.
55
- *
56
- * @param color Color to get hexadecimal string from.
57
- * @return Hexadecimal string representing the given color, in the form "#abcdef".
58
- */
59
- static toHexColor(color: Color): string;
60
- /**
61
- * Linearly interpolates between colors a and b by t.
62
- *
63
- * @param a first color
64
- * @param b second color
65
- * @param t factor
66
- * @return interpolated color
67
- */
68
- static colorLerp(a: Color, b: Color, t: number): Color;
69
- /**
70
- * Gets the RGB hex color code of the passed color.
71
- *
72
- * @param color The color to get a hex code from.
73
- * @return A lower-cased string of the RGB hex code of color.
74
- */
75
- static colorToHexCode(color: Color): string;
76
- /**
77
- * Gets the ARGB hex color code of the passed color.
78
- *
79
- * @param color The color to get a hex code from.
80
- * @return A lower-cased string of the ARGB hex code of color.
81
- */
82
- static colorToAlphaHexCode(color: Color): string;
83
- /**
84
- * Gets the same RGB color with the specified alpha value.
85
- *
86
- * @param color The RGB color to use.
87
- * @param alpha The alpha value to use (0-255).
88
- * @return A Color with the given RGB and alpha.
89
- */
90
- static colorWithAlpha(color: Color, alpha: number): Color;
91
- /**
92
- * Determines if the passed hex string is an alpha hex color.
93
- *
94
- * @param hex The hex to test.
95
- * @return boolean
96
- */
97
- static isAlphaHex(hex: string): boolean;
98
- /**
99
- * Determines if the passed hex string is a hex color.
100
- *
101
- * @param hex The hex to test.
102
- * @return boolean
103
- */
104
- static isHex(hex: string): boolean;
105
- /**
106
- * Limits an int to the rgba value range (0-255)
107
- *
108
- * @param value The value for the r, g, b, or a.
109
- * @return An int between 0 - 255.
110
- */
111
- static constrainValue(value: number): number;
112
- /**
113
- * Gets the Color from the passed int string.
114
- *
115
- * @param string The int to get a Color object from.
116
- * @return A Color of the int of color.
117
- */
118
- static fromString(string: string): Color;
119
- /**
120
- * Gets the Color from the passed hex string.
121
- *
122
- * @param hex The hex to get a Color object from.
123
- * @return A Color of the hex code of color.
124
- */
125
- static fromHex(hex: string): Color;
126
- /**
127
- * Creates color from passed object hash code
128
- * @param object object with hashCode
129
- * @return color
130
- */
131
- static fromObject(object: Record<string, any>): Color;
28
+ export class ColorUtil {
29
+ /**
30
+ * Creates a color tag from the given color.
31
+ *
32
+ * @param color The Color to create a tag from.
33
+ * @return A string of the color tag for the given color.
34
+ */
35
+ private static colorTag(color: java.awt.Color): string;
36
+ /**
37
+ * Prepends the given str with an opening color tag of the given color.
38
+ *
39
+ * @param str The string to be colorized.
40
+ * @param color The color to be used in the color tag.
41
+ * @return The passed str with a prepended color tag.
42
+ */
43
+ static prependColorTag(str: string, color: java.awt.Color): string;
44
+ /**
45
+ * Wraps the given str with a color tag of the given color.
46
+ *
47
+ * @param str The string to be colorized.
48
+ * @param color The color to be used in the color tag.
49
+ * @return The passed str wrapped with opening and closing color tags.
50
+ */
51
+ static wrapWithColorTag(str: string, color: java.awt.Color): string;
52
+ /**
53
+ * Converts a given color to it's hexadecimal equivalent.
54
+ *
55
+ * @param color Color to get hexadecimal string from.
56
+ * @return Hexadecimal string representing the given color, in the form "#abcdef".
57
+ */
58
+ static toHexColor(color: java.awt.Color): string;
59
+ /**
60
+ * Linearly interpolates between colors a and b by t.
61
+ *
62
+ * @param a first color
63
+ * @param b second color
64
+ * @param t factor
65
+ * @return interpolated color
66
+ */
67
+ static colorLerp(a: java.awt.Color, b: java.awt.Color, t: number): java.awt.Color;
68
+ /**
69
+ * Gets the RGB hex color code of the passed color.
70
+ *
71
+ * @param color The color to get a hex code from.
72
+ * @return A lower-cased string of the RGB hex code of color.
73
+ */
74
+ static colorToHexCode(color: java.awt.Color): string;
75
+ /**
76
+ * Gets the ARGB hex color code of the passed color.
77
+ *
78
+ * @param color The color to get a hex code from.
79
+ * @return A lower-cased string of the ARGB hex code of color.
80
+ */
81
+ static colorToAlphaHexCode(color: java.awt.Color): string;
82
+ /**
83
+ * Gets the same RGB color with the specified alpha value.
84
+ *
85
+ * @param color The RGB color to use.
86
+ * @param alpha The alpha value to use (0-255).
87
+ * @return A Color with the given RGB and alpha.
88
+ */
89
+ static colorWithAlpha(color: java.awt.Color, alpha: number): java.awt.Color;
90
+ /**
91
+ * Determines if the passed hex string is an alpha hex color.
92
+ *
93
+ * @param hex The hex to test.
94
+ * @return boolean
95
+ */
96
+ static isAlphaHex(hex: string): boolean;
97
+ /**
98
+ * Determines if the passed hex string is a hex color.
99
+ *
100
+ * @param hex The hex to test.
101
+ * @return boolean
102
+ */
103
+ static isHex(hex: string): boolean;
104
+ /**
105
+ * Limits an int to the rgba value range (0-255)
106
+ *
107
+ * @param value The value for the r, g, b, or a.
108
+ * @return An int between 0 - 255.
109
+ */
110
+ static constrainValue(value: number): number;
111
+ /**
112
+ * Gets the Color from the passed int string.
113
+ *
114
+ * @param string The int to get a Color object from.
115
+ * @return A Color of the int of color.
116
+ */
117
+ static fromString(string: string): java.awt.Color;
118
+ /**
119
+ * Gets the Color from the passed hex string.
120
+ *
121
+ * @param hex The hex to get a Color object from.
122
+ * @return A Color of the hex code of color.
123
+ */
124
+ static fromHex(hex: string): java.awt.Color;
125
+ /**
126
+ * Creates color from passed object hash code
127
+ * @param object object with hashCode
128
+ * @return color
129
+ */
130
+ static fromObject(object: Record<string, any>): java.awt.Color;
131
+ }
132
132
  }
133
- }
@@ -25,195 +25,199 @@
25
25
  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26
26
  */
27
27
  declare namespace net.runelite.client.util {
28
- /**
29
- * Various Image/BufferedImage utilities.
30
- */
31
- export class ImageUtil
32
- {
33
- /**
34
- * Creates a {@link BufferedImage} from an {@link Image}.
35
- *
36
- * @param image An Image to be converted to a BufferedImage.
37
- * @return A BufferedImage instance of the same given image.
38
- */
39
- static bufferedImageFromImage(image: Image): BufferedImage;
40
- /**
41
- * Creates an ARGB {@link BufferedImage} from an {@link Image}.
42
- */
43
- static toARGB(image: Image): BufferedImage;
44
- /**
45
- * Creates a new image with the same alpha channel, but a constant RGB channel
46
- */
47
- static recolorImage(image: Image, rgb: Color): BufferedImage;
48
28
  /**
49
- * Offsets an image's luminance by a given value.
50
- *
51
- * @param rawImg The image to be darkened or brightened.
52
- * @param offset A signed 8-bit integer value to brighten or darken the image with.
53
- * Values above 0 will brighten, and values below 0 will darken.
54
- * @return The given image with its brightness adjusted by the given offset.
29
+ * Various Image/BufferedImage utilities.
55
30
  */
56
- static luminanceOffset(rawImg: Image, offset: number): BufferedImage;
31
+ export class ImageUtil {
32
+ /**
33
+ * Creates a {@link BufferedImage} from an {@link Image}.
34
+ *
35
+ * @param image An Image to be converted to a BufferedImage.
36
+ * @return A BufferedImage instance of the same given image.
37
+ */
38
+ static bufferedImageFromImage(image: Image): BufferedImage;
39
+ /**
40
+ * Creates an ARGB {@link BufferedImage} from an {@link Image}.
41
+ */
42
+ static toARGB(image: Image): BufferedImage;
43
+ /**
44
+ * Creates a new image with the same alpha channel, but a constant RGB channel
45
+ */
46
+ static recolorImage(image: Image, rgb: java.awt.Color): BufferedImage;
47
+ /**
48
+ * Offsets an image's luminance by a given value.
49
+ *
50
+ * @param rawImg The image to be darkened or brightened.
51
+ * @param offset A signed 8-bit integer value to brighten or darken the image with.
52
+ * Values above 0 will brighten, and values below 0 will darken.
53
+ * @return The given image with its brightness adjusted by the given offset.
54
+ */
55
+ static luminanceOffset(rawImg: Image, offset: number): BufferedImage;
57
56
  // Set alpha to not offset
58
- /**
59
- * Changes an images luminance by a scaling factor
60
- *
61
- * @param rawImg The image to be darkened or brightened.
62
- * @param percentage The ratio to darken or brighten the given image.
63
- * Values above 1 will brighten, and values below 1 will darken.
64
- * @return The given image with its brightness scaled by the given percentage.
65
- */
66
- static luminanceScale(rawImg: Image, percentage: number): BufferedImage;
57
+ /**
58
+ * Changes an images luminance by a scaling factor
59
+ *
60
+ * @param rawImg The image to be darkened or brightened.
61
+ * @param percentage The ratio to darken or brighten the given image.
62
+ * Values above 1 will brighten, and values below 1 will darken.
63
+ * @return The given image with its brightness scaled by the given percentage.
64
+ */
65
+ static luminanceScale(rawImg: Image, percentage: number): BufferedImage;
67
66
  // Set alpha to not scale
68
- /**
69
- * Offsets an image's alpha component by a given offset.
70
- *
71
- * @param rawImg The image to be made more or less transparent.
72
- * @param offset A signed 8-bit integer value to modify the image's alpha component with.
73
- * Values above 0 will increase transparency, and values below 0 will decrease
74
- * transparency.
75
- * @return The given image with its alpha component adjusted by the given offset.
76
- */
77
- static alphaOffset(rawImg: Image, offset: number): BufferedImage;
78
- /**
79
- * Offsets an image's alpha component by a given percentage.
80
- *
81
- * @param rawImg The image to be made more or less transparent.
82
- * @param percentage The ratio to modify the image's alpha component with.
83
- * Values above 1 will increase transparency, and values below 1 will decrease
84
- * transparency.
85
- * @return The given image with its alpha component scaled by the given percentage.
86
- */
87
- static alphaOffset(rawImg: Image, percentage: number): BufferedImage;
88
- /**
89
- * Creates a grayscale image from the given image.
90
- *
91
- * @param image The source image to be converted.
92
- * @return A copy of the given imnage, with colors converted to grayscale.
93
- */
94
- static grayscaleImage(image: BufferedImage): BufferedImage;
95
- /**
96
- * Re-size a BufferedImage to the given dimensions.
97
- *
98
- * @param image the BufferedImage.
99
- * @param newWidth The width to set the BufferedImage to.
100
- * @param newHeight The height to set the BufferedImage to.
101
- * @return The BufferedImage with the specified dimensions
102
- */
103
- static resizeImage(image: BufferedImage, newWidth: number, newHeight: number): BufferedImage;
104
- /**
105
- * Re-size a BufferedImage to the given dimensions.
106
- *
107
- * @param image the BufferedImage.
108
- * @param newWidth The width to set the BufferedImage to.
109
- * @param newHeight The height to set the BufferedImage to.
110
- * @param preserveAspectRatio Whether to preserve the original image's aspect ratio. When {@code true}, the image
111
- * will be scaled to have a maximum of {@code newWidth} width and {@code newHeight}
112
- * height.
113
- * @return The BufferedImage with the specified dimensions
114
- */
115
- static resizeImage(image: BufferedImage, newWidth: number, newHeight: number, preserveAspectRatio: boolean): BufferedImage;
116
- /**
117
- * Re-size a BufferedImage's canvas to the given dimensions.
118
- *
119
- * @param image The image whose canvas should be re-sized.
120
- * @param newWidth The width to set the BufferedImage to.
121
- * @param newHeight The height to set the BufferedImage to.
122
- * @return The BufferedImage centered within canvas of given dimensions.
123
- */
124
- static resizeCanvas(image: BufferedImage, newWidth: number, newHeight: number): BufferedImage;
125
- /**
126
- * Rotates an image around its center by a given number of radians.
127
- *
128
- * @param image The image to be rotated.
129
- * @param theta The number of radians to rotate the image.
130
- * @return The given image, rotated by the given theta.
131
- */
132
- static rotateImage(image: BufferedImage, theta: number): BufferedImage;
133
- /**
134
- * Flips an image horizontally and/or vertically.
135
- *
136
- * @param image The image to be flipped.
137
- * @param horizontal Whether the image should be flipped horizontally.
138
- * @param vertical Whether the image should be flipped vertically.
139
- * @return The given image, flipped horizontally and/or vertically.
140
- */
141
- static flipImage(image: BufferedImage, horizontal: boolean, vertical: boolean): BufferedImage;
142
- /**
143
- * Outlines non-transparent pixels of a BufferedImage with the given color.
144
- *
145
- * @param image The image to be outlined.
146
- * @param color The color to use for the outline.
147
- * @return The BufferedImage with its edges outlined with the given color.
148
- */
149
- static outlineImage(image: BufferedImage, color: Color): BufferedImage;
150
- /**
151
- * Outlines non-transparent pixels of a BufferedImage with the given color. Optionally outlines
152
- * corners in addition to edges.
153
- *
154
- * @param image The image to be outlined.
155
- * @param color The color to use for the outline.
156
- * @param outlineCorners Whether to draw an outline around corners, or only around edges.
157
- * @return The BufferedImage with its edges--and optionally, corners--outlined
158
- * with the given color.
159
- */
160
- static outlineImage(image: BufferedImage, color: Color, outlineCorners: Boolean): BufferedImage;
161
- /**
162
- * @see #loadImageResource(Class, String)
163
- */
164
- /** @deprecated */
165
- static getResourceStreamFromClass(c: any, path: string): BufferedImage;
166
- /**
167
- * Reads an image resource from a given path relative to a given class.
168
- * This method is primarily shorthand for the synchronization and error handling required for
169
- * loading image resources from the classpath.
170
- *
171
- * @param c The class to be referenced for the package path.
172
- * @param path The path, relative to the given class.
173
- * @return A {@link BufferedImage} of the loaded image resource from the given path.
174
- */
175
- static loadImageResource(c: any, path: string): BufferedImage;
176
- /**
177
- * Fills all non-transparent pixels of the given image with the given color.
178
- *
179
- * @param image The image which should have its non-transparent pixels filled.
180
- * @param color The color with which to fill pixels.
181
- * @return The given image with all non-transparent pixels set to the given color.
182
- */
183
- static fillImage(image: BufferedImage, color: Color): BufferedImage;
184
- /**
185
- * Performs a rescale operation on the image's color components.
186
- *
187
- * @param image The image to be adjusted.
188
- * @param scales An array of scale operations to be performed on the image's color components.
189
- * @param offsets An array of offset operations to be performed on the image's color components.
190
- * @return The modified image after applying the given adjustments.
191
- */
192
- private static offset(image: BufferedImage, scales: number[], offsets: number[]): BufferedImage;
193
- /**
194
- * Converts the buffered image into a sprite image and returns it
195
- * @param image The image to be converted
196
- * @param client Current client instance
197
- * @return The buffered image as a sprite image
198
- */
199
- static getImageSpritePixels(image: BufferedImage, client: Client): SpritePixels;
200
- // Make any fully transparent pixels fully black, because the sprite draw routines
201
- // check for == 0, not actual transparency
202
- /**
203
- * Converts an image into an {@code IndexedSprite} instance.
204
- *
205
- * The passed in image can only have at max 255 different colors.
206
- *
207
- * @param image The image to be converted
208
- * @param client Current client instance
209
- * @return The image as an {@code IndexedSprite}
210
- */
211
- static getImageIndexedSprite(image: BufferedImage, client: Client): IndexedSprite;
67
+ /**
68
+ * Offsets an image's alpha component by a given offset.
69
+ *
70
+ * @param rawImg The image to be made more or less transparent.
71
+ * @param offset A signed 8-bit integer value to modify the image's alpha component with.
72
+ * Values above 0 will increase transparency, and values below 0 will decrease
73
+ * transparency.
74
+ * @return The given image with its alpha component adjusted by the given offset.
75
+ */
76
+ static alphaOffset(rawImg: Image, offset: number): BufferedImage;
77
+ /**
78
+ * Offsets an image's alpha component by a given percentage.
79
+ *
80
+ * @param rawImg The image to be made more or less transparent.
81
+ * @param percentage The ratio to modify the image's alpha component with.
82
+ * Values above 1 will increase transparency, and values below 1 will decrease
83
+ * transparency.
84
+ * @return The given image with its alpha component scaled by the given percentage.
85
+ */
86
+ static alphaOffset(rawImg: Image, percentage: number): BufferedImage;
87
+ /**
88
+ * Creates a grayscale image from the given image.
89
+ *
90
+ * @param image The source image to be converted.
91
+ * @return A copy of the given imnage, with colors converted to grayscale.
92
+ */
93
+ static grayscaleImage(image: BufferedImage): BufferedImage;
94
+ /**
95
+ * Re-size a BufferedImage to the given dimensions.
96
+ *
97
+ * @param image the BufferedImage.
98
+ * @param newWidth The width to set the BufferedImage to.
99
+ * @param newHeight The height to set the BufferedImage to.
100
+ * @return The BufferedImage with the specified dimensions
101
+ */
102
+ static resizeImage(image: BufferedImage, newWidth: number, newHeight: number): BufferedImage;
103
+ /**
104
+ * Re-size a BufferedImage to the given dimensions.
105
+ *
106
+ * @param image the BufferedImage.
107
+ * @param newWidth The width to set the BufferedImage to.
108
+ * @param newHeight The height to set the BufferedImage to.
109
+ * @param preserveAspectRatio Whether to preserve the original image's aspect ratio. When {@code true}, the image
110
+ * will be scaled to have a maximum of {@code newWidth} width and {@code newHeight}
111
+ * height.
112
+ * @return The BufferedImage with the specified dimensions
113
+ */
114
+ static resizeImage(
115
+ image: BufferedImage,
116
+ newWidth: number,
117
+ newHeight: number,
118
+ preserveAspectRatio: boolean,
119
+ ): BufferedImage;
120
+ /**
121
+ * Re-size a BufferedImage's canvas to the given dimensions.
122
+ *
123
+ * @param image The image whose canvas should be re-sized.
124
+ * @param newWidth The width to set the BufferedImage to.
125
+ * @param newHeight The height to set the BufferedImage to.
126
+ * @return The BufferedImage centered within canvas of given dimensions.
127
+ */
128
+ static resizeCanvas(image: BufferedImage, newWidth: number, newHeight: number): BufferedImage;
129
+ /**
130
+ * Rotates an image around its center by a given number of radians.
131
+ *
132
+ * @param image The image to be rotated.
133
+ * @param theta The number of radians to rotate the image.
134
+ * @return The given image, rotated by the given theta.
135
+ */
136
+ static rotateImage(image: BufferedImage, theta: number): BufferedImage;
137
+ /**
138
+ * Flips an image horizontally and/or vertically.
139
+ *
140
+ * @param image The image to be flipped.
141
+ * @param horizontal Whether the image should be flipped horizontally.
142
+ * @param vertical Whether the image should be flipped vertically.
143
+ * @return The given image, flipped horizontally and/or vertically.
144
+ */
145
+ static flipImage(image: BufferedImage, horizontal: boolean, vertical: boolean): BufferedImage;
146
+ /**
147
+ * Outlines non-transparent pixels of a BufferedImage with the given color.
148
+ *
149
+ * @param image The image to be outlined.
150
+ * @param color The color to use for the outline.
151
+ * @return The BufferedImage with its edges outlined with the given color.
152
+ */
153
+ static outlineImage(image: BufferedImage, color: java.awt.Color): BufferedImage;
154
+ /**
155
+ * Outlines non-transparent pixels of a BufferedImage with the given color. Optionally outlines
156
+ * corners in addition to edges.
157
+ *
158
+ * @param image The image to be outlined.
159
+ * @param color The color to use for the outline.
160
+ * @param outlineCorners Whether to draw an outline around corners, or only around edges.
161
+ * @return The BufferedImage with its edges--and optionally, corners--outlined
162
+ * with the given color.
163
+ */
164
+ static outlineImage(image: BufferedImage, color: java.awt.Color, outlineCorners: Boolean): BufferedImage;
165
+ /**
166
+ * @see #loadImageResource(Class, String)
167
+ */
168
+ /** @deprecated */
169
+ static getResourceStreamFromClass(c: any, path: string): BufferedImage;
170
+ /**
171
+ * Reads an image resource from a given path relative to a given class.
172
+ * This method is primarily shorthand for the synchronization and error handling required for
173
+ * loading image resources from the classpath.
174
+ *
175
+ * @param c The class to be referenced for the package path.
176
+ * @param path The path, relative to the given class.
177
+ * @return A {@link BufferedImage} of the loaded image resource from the given path.
178
+ */
179
+ static loadImageResource(c: any, path: string): BufferedImage;
180
+ /**
181
+ * Fills all non-transparent pixels of the given image with the given color.
182
+ *
183
+ * @param image The image which should have its non-transparent pixels filled.
184
+ * @param color The color with which to fill pixels.
185
+ * @return The given image with all non-transparent pixels set to the given color.
186
+ */
187
+ static fillImage(image: BufferedImage, color: java.awt.Color): BufferedImage;
188
+ /**
189
+ * Performs a rescale operation on the image's color components.
190
+ *
191
+ * @param image The image to be adjusted.
192
+ * @param scales An array of scale operations to be performed on the image's color components.
193
+ * @param offsets An array of offset operations to be performed on the image's color components.
194
+ * @return The modified image after applying the given adjustments.
195
+ */
196
+ private static offset(image: BufferedImage, scales: number[], offsets: number[]): BufferedImage;
197
+ /**
198
+ * Converts the buffered image into a sprite image and returns it
199
+ * @param image The image to be converted
200
+ * @param client Current client instance
201
+ * @return The buffered image as a sprite image
202
+ */
203
+ static getImageSpritePixels(image: BufferedImage, client: Client): SpritePixels;
204
+ // Make any fully transparent pixels fully black, because the sprite draw routines
205
+ // check for == 0, not actual transparency
206
+ /**
207
+ * Converts an image into an {@code IndexedSprite} instance.
208
+ *
209
+ * The passed in image can only have at max 255 different colors.
210
+ *
211
+ * @param image The image to be converted
212
+ * @param client Current client instance
213
+ * @return The image as an {@code IndexedSprite}
214
+ */
215
+ static getImageIndexedSprite(image: BufferedImage, client: Client): IndexedSprite;
212
216
  /*
213
217
  */
214
218
  /*
215
219
  */
216
- // Default to not drawing the pixel.
217
- // If the pixel is fully opaque, draw it.
220
+ // Default to not drawing the pixel.
221
+ // If the pixel is fully opaque, draw it.
222
+ }
218
223
  }
219
- }