Fixed a bug where vanilla spawners would drop pig spawner. Also Added 2 new events to better handle block spawners Namely:
StackedBlockSpawnEvent: Extends from BlockExpEvent & is Called right before a stacked block is spawned Cancelling this event would cancel spawning of the stacked block:
Code (Java):
public Material getBlockType
()//Get Spawned Block Type public SpawnerData getSpawner
()//Get SpawnerData public Location getSpawnLocation
()//Get Spawn Location publicint getStackAmount
()//Get Stack Size publicvoid setBlockType
(Material blockType
)/Set Spawned Block Type
publicvoid setStackAmount
(int stackAmount
)//Set Stack Size
StackedBlockBreakEvent: Extends From BlockBreakEvent & is Called before a stacked block is broken Cancelling this event would stop the block from being broken:
Code (Java):
publicint getBreakAmount
()//Get Amount Broken (By Default is 1) publicint getStackAmount
()//Get The total Remaining stack publicvoid setBreakAmount
(int breakAmount
)//Set Amount Broken (Cannot be Greater than stack publicvoid setStackAmount
(int stackAmount
)//Set stack amount (Cannot be less than 1)