Class CustomSpawnerHandler

java.lang.Object
de.marcely.bedwars.api.game.spawner.CustomSpawnerHandler

public abstract class CustomSpawnerHandler extends Object
  • Constructor Details

    • CustomSpawnerHandler

      public CustomSpawnerHandler(String id, Plugin plugin)
  • Method Details

    • handleDrop

      public abstract void handleDrop(Spawner spawner, Location dropLocation)
      Gets called whenever the spawner drops something.

      Being invoked after it has been passed to Bukkit's event pipeline.

      Parameters:
      spawner - The spawner that's being spawned
      dropLocation - The location at which it shall drop the item. Can differ to the one configured inside the spawner
    • getId

      public final String getId()
      The id of this custom spawner
      Returns:
      The identifier
    • getPlugin

      public final Plugin getPlugin()
      The plugin that created this handler
      Returns:
      The plugin whose ClassLoader is equal to the one of this class