Package com.vk2gpz.mergedspawner.event
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
-
Field Summary
Fields Modifier and Type Field Description protected org.bukkit.entity.EntityType
etype
protected org.bukkit.entity.Player
player
protected int
stackCount
-
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.
-
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 interfaceorg.bukkit.event.Cancellable
- Returns:
- yes or no
-
setCancelled
public void setCancelled(boolean cancel)Cancels the event.- Specified by:
setCancelled
in interfaceorg.bukkit.event.Cancellable
- Parameters:
cancel
- whether the event should be cancelled or not
-