In committing this, it should be known that no event other than the SpawnerChangeEvent is actually called... this should be changed in a future commit to call all custom events when required.
This commit marks the start of developers supporting EpicSpawners, not the other way around. For plugins wanting to support EpicSpawner's features, they should depend on the API, write and register a custom ProtectionPluginHook implementation.
This interface allows for easy, single-line construction of SpawnerData instances which was previously either impossible or very difficult to do in a clean way. An instance of SpawnerData was required and a sequence of methods had to be invoked in order to get the desired effect. The builder pattern should alleviate these issues.
Page to for the spawnereditor will now appear if there are less than 4 items on that page.
clicking the last item in the spawner editor will no longer show you the pig spawner.
The "give" command will now properly parse arguments
The "give" command will now show the correct stack size of a spawner when you don't fill out the stack size parameter.
Spawners will no longer display 0x if they are a 1x spawner.
Fixed an issue with giants in the spawner editor.
Changes to the API:
Spawners are now consistently defined with our SpawnerData object.
Deprecated methods:
SpawnerManager#getSpawnersInWorld()
SpawnerManager#getRegisteredSpawnerData()
SpawnerChangeEvent#getCurrentMulti()
SpawnerChangeEvent#getOldMulti()
SpawnerChangeEvent#getType()
SpawnerChangeEvent#getOldType()
SpawnerDropEvent#getMultiSize()
Spawner#stack(Player, String, int)
Added Methods:
EpicSpawners#newSpawnerItem(SpawnerData, int)
EpicSpawners#newSpawnerItem(SpawnerData, int, int)
EpicSpawners#getSpawnerDataFromItem(ItemStack)
EpicSpawners#getStackSizeFromItem(ItemStack)
SpawnerData#toItemStack()
SpawnerData#toItemStack(int)
SpawnerData#toItemStack(int, int)
Fixed an issue with the display names for the SpawnerStats.
Reprogrammed out ParticleHandler to be faster and more reliable.
Temporary player data is now more efficient.