Class MergedSpawnerEvent

java.lang.Object
org.bukkit.event.Event
org.bukkit.event.block.BlockEvent
com.vk2gpz.mergedspawner.event.MergedSpawnerEvent
All Implemented Interfaces:
org.bukkit.event.Cancellable
Direct Known Subclasses:
MergedSpawnerBreakEvent, MergedSpawnerPlaceEvent

public abstract class MergedSpawnerEvent
extends org.bukkit.event.block.BlockEvent
implements org.bukkit.event.Cancellable
  • Nested Class Summary

    Nested classes/interfaces inherited from class org.bukkit.event.Event

    org.bukkit.event.Event.Result
  • Field Summary

    Fields 
    Modifier and Type Field Description
    protected org.bukkit.entity.EntityType etype  
    protected org.bukkit.entity.Player player  
    protected int stackCount  

    Fields inherited from class org.bukkit.event.block.BlockEvent

    block
  • Constructor Summary

    Constructors 
    Constructor Description
    MergedSpawnerEvent​(org.bukkit.block.Block spawner, int stackCount, org.bukkit.entity.EntityType etype)
    Deprecated.
    MergedSpawnerEvent​(org.bukkit.entity.Player player, org.bukkit.block.Block spawner, int stackCount, org.bukkit.entity.EntityType etype)  
  • Method Summary

    Modifier and Type Method Description
    int getAmount()  
    org.bukkit.entity.Player getPlayer()  
    org.bukkit.block.Block getSpawner()  
    int getSpawnerCount()  
    org.bukkit.entity.EntityType getSpawnerType()  
    boolean isCancelled()
    Determine if the event is cancelled or not.
    void setCancelled​(boolean cancel)
    Cancels the event.

    Methods inherited from class org.bukkit.event.block.BlockEvent

    getBlock

    Methods inherited from class org.bukkit.event.Event

    getEventName, getHandlers, isAsynchronous

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • stackCount

      protected int stackCount
    • etype

      protected org.bukkit.entity.EntityType etype
    • player

      protected org.bukkit.entity.Player player
  • Constructor Details

    • MergedSpawnerEvent

      @Deprecated public MergedSpawnerEvent​(org.bukkit.block.Block spawner, int stackCount, org.bukkit.entity.EntityType etype)
      Deprecated.
    • MergedSpawnerEvent

      public MergedSpawnerEvent​(org.bukkit.entity.Player player, org.bukkit.block.Block spawner, int stackCount, org.bukkit.entity.EntityType etype)
  • Method Details

    • getPlayer

      public org.bukkit.entity.Player getPlayer()
    • getSpawner

      public org.bukkit.block.Block getSpawner()
    • getSpawnerCount

      public int getSpawnerCount()
    • getSpawnerType

      public org.bukkit.entity.EntityType getSpawnerType()
    • getAmount

      public int getAmount()
    • isCancelled

      public boolean isCancelled()
      Determine if the event is cancelled or not.
      Specified by:
      isCancelled in interface org.bukkit.event.Cancellable
      Returns:
      yes or no
    • setCancelled

      public void setCancelled​(boolean cancel)
      Cancels the event.
      Specified by:
      setCancelled in interface org.bukkit.event.Cancellable
      Parameters:
      cancel - whether the event should be cancelled or not