Class CreatureSpawnListener

java.lang.Object
com.ranull.graves.listener.CreatureSpawnListener
All Implemented Interfaces:
org.bukkit.event.Listener

public class CreatureSpawnListener extends Object implements org.bukkit.event.Listener
Listens for CreatureSpawnEvent to handle entity spawning data.
  • Constructor Details

    • CreatureSpawnListener

      public CreatureSpawnListener(Graves plugin)
      Constructs a new CreatureSpawnListener with the specified Graves plugin.
      Parameters:
      plugin - The Graves plugin instance.
  • Method Details

    • onCreatureSpawn

      public void onCreatureSpawn(org.bukkit.event.entity.CreatureSpawnEvent event)
      Handles CreatureSpawnEvent to store the spawn reason of the entity.
      Parameters:
      event - The CreatureSpawnEvent to handle.