Make sprite and widget sprite overrides more flexible

- Expose NodeCache interface in RuneLite
- Expose Client.getWidgetSpriteCache and reset method on it
- Change setters for sprite and widget overrides to be getters

This allows for more than 1 plugin to use the widget/sprite override API
in future.

Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
This commit is contained in:
Tomas Slusny
2018-09-04 18:05:41 +02:00
parent 0fe6d4be3a
commit ac5ef045b7
7 changed files with 69 additions and 28 deletions

View File

@@ -645,6 +645,7 @@ public interface RSClient extends RSGameEngine, Client
void setCompass(SpritePixels spritePixels);
@Import("widgetSpriteCache")
@Override
RSNodeCache getWidgetSpriteCache();
@Import("oculusOrbState")

View File

@@ -24,9 +24,10 @@
*/
package net.runelite.rs.api;
import net.runelite.api.NodeCache;
import net.runelite.mapping.Import;
public interface RSNodeCache
public interface RSNodeCache extends NodeCache
{
@Import("get")
RSCacheableNode get(long id);