Interface SpawnListener

  • All Superinterfaces:
    java.util.EventListener

    public interface SpawnListener
    extends java.util.EventListener
    This is a spawn listener used by scripts or other classes Events sent by an injected spawn listener, only dispatched while a script is running. Listener is stopped on script stop, and reset on new script start. New Injections required to use
    • Method Detail

      • onGameObjectSpawn

        default void onGameObjectSpawn​(GameObject object)
      • onGameObjectDespawn

        default void onGameObjectDespawn​(GameObject object)
      • onGroundItemSpawn

        default void onGroundItemSpawn​(GroundItem object)
      • onGroundItemDespawn

        default void onGroundItemDespawn​(GroundItem object)
      • onGroundItemUpdate

        default void onGroundItemUpdate​(GroundItem object)
      • onNpcSpawn

        default void onNpcSpawn​(NPC npc)
      • onNpcDespawn

        default void onNpcDespawn​(NPC npc)
      • onPlayerSpawn

        default void onPlayerSpawn​(Player entity)
      • onLocalPlayerSpawn

        default void onLocalPlayerSpawn​(Player entity)
      • onPlayerDespawn

        default void onPlayerDespawn​(Player entity)