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
      • 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.