Class HunterPlugin

  • All Implemented Interfaces:
    com.google.inject.Module

    @PluginDescriptor(name="Hunter",
                      description="Show the state of your traps",
                      tags={"overlay","skilling","timers"})
    public class HunterPlugin
    extends Plugin
    • Constructor Detail

      • HunterPlugin

        public HunterPlugin()
    • Method Detail

      • startUp

        protected void startUp()
        Overrides:
        startUp in class Plugin
      • shutDown

        protected void shutDown()
                         throws java.lang.Exception
        Overrides:
        shutDown in class Plugin
        Throws:
        java.lang.Exception
      • onGameObjectSpawned

        @Subscribe
        public void onGameObjectSpawned​(net.runelite.api.events.GameObjectSpawned event)
      • onGameTick

        @Subscribe
        public void onGameTick​(net.runelite.api.events.GameTick event)
        Iterates over all the traps that were placed by the local player and checks if the trap is still there. If the trap is gone, it removes the trap from the local players trap collection.
      • getTraps

        public java.util.Map<net.runelite.api.coords.WorldPoint,​net.runelite.client.plugins.hunter.HunterTrap> getTraps()