Package org.dreambot.api.script.listener
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 Summary
All Methods Instance Methods Default Methods Deprecated Methods Modifier and Type Method Description default void
onGameObject(GameObject object)
Deprecated.default void
onGameObjectDespawn(GameObject object)
default void
onGameObjectSpawn(GameObject object)
default void
onGroundItemDespawn(GroundItem object)
default void
onGroundItemSpawn(GroundItem object)
default void
onGroundItemUpdate(GroundItem object)
default void
onLocalPlayerSpawn(Player entity)
default void
onNpcDespawn(NPC npc)
default void
onNpcSpawn(NPC npc)
default void
onPlayerDespawn(Player entity)
default void
onPlayerSpawn(Player entity)
-
-
-
Method Detail
-
onGameObject
@Deprecated default void onGameObject(GameObject object)
Deprecated.
-
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)
-
-