257 Commits

Author SHA1 Message Date
James Clarke
42d8d07051 Added NETHER_PORTAL and END_PORTAL to the TeleportCause enum. Addresses BUKKIT-265
Added new NETHER_PORTAL and END_PORTAL values to the TeleportCause enum
and relevant constructor for PlayerPortalEvent.
2012-02-29 14:00:34 -05:00
Wesley Wolfe
ca7aab6f4f [Bleeding] Cleaned up unsafe casts. Addresses BUKKIT-844
Removed internal collection leaks from PluginDescriptionFile
BREAKING: PluginDescriptionFile.getAuthors() now returns List instead of
ArrayList

Various places with unsafe generics, notably List<Object> getList() in
Configurations are now referenced as <?>. This is nonbreaking, but
sourcecode will need to be revised when compiled.
2012-02-29 10:23:16 -05:00
Wesley Wolfe
3440a1f2ee [Bleeding] Fixes deadlock issue and generic usage. Fixes BUKKIT-844 and fixes BUKKIT-854 2012-02-29 09:50:03 -05:00
TomyLobo
1876c12a79 Narrowed down the return type of most EntityEvent subclasses for convenience. Addresses BUKKIT-809 2012-02-28 21:57:17 -05:00
TomyLobo
93521af608 Event system optimizations. Addresses BUKKIT-813
- Made the handlers field a simple array instead of an array of arrays.
- Got rid of the "baked" field.
2012-02-28 21:57:16 -05:00
Sam Wilson
ffb24d94b0 Add a CreateReason to PortalCreateEvent. Addresses BUKKIT-833 2012-02-26 15:19:29 -05:00
zml2008
56d628be91 Added service register and unregister events. Addresses BUKKIT-816 2012-02-26 12:15:36 -05:00
Celtic Minstrel
eb8632fca7 [Bleeding] Add constructor to BlockFromToEvent for dragon egg teleportation. Addresses BUKKIT-828 2012-02-25 19:10:28 -05:00
Celtic Minstrel
ce4a390b00 [Bleeding] Added EntityType to replace CreatureType. 2012-02-22 22:06:19 -05:00
Feildmaster
4475ea7718 [Bleeding] Added BlockGrowEvent. Addresses BUKKIT-104 2012-02-22 21:46:15 -05:00
Feildmaster
e0eb9f914b [Bleeding] getHandlers() is now abstract. 2012-02-21 14:26:14 -05:00
Feildmaster
99af2a1aad [Bleeding] Event no longer implements Serializable. 2012-02-19 04:10:07 -05:00
Feildmaster
070ae68360 [Bleeding] Remove deprecated events (EndermanPickup/Place). 2012-02-19 04:10:06 -05:00
Feildmaster
7288e2adb7 [Bleeding] Specify event name in exception. Addresses BUKKIT-778 2012-02-19 04:10:06 -05:00
Wesley Wolfe
79da5a149d [Bleeding] Added Enchantment and misc tests to ItemStack (de)serialization 2012-02-19 04:10:05 -05:00
SpaceManiac
d984f12931 [Bleeding] Added ability to unregister listeners, updated javadoc and
renamed allLists. Addresses BUKKIT-773
2012-02-18 21:36:06 -05:00
EvilSeph
43457430be Fixed Validate message. 2012-02-18 15:28:33 -05:00
EvilSeph
6ec92480a7 Updated EntityTeleportEvent in line with deprecation cleanup. 2012-02-18 13:13:50 -05:00
Erik Broes
049a7cc1d0 Deprecation cleanup. 2012-02-18 13:05:58 -05:00
Erik Broes
54004d7d47 Added RemoteServerCommandEvent. 2012-02-18 12:53:30 -05:00
EvilSeph
5c7edcf439 Added JOCKEY and CHUNK_GEN SpawnReasons. 2012-02-10 07:17:03 -05:00
Feildmaster
7df6a7e864 [Bleeding] setLastDamageCaused to ComplexEntityPart parent. 2012-02-09 19:52:53 -05:00
md_5
6efe9a85e5 [Bleeding] Add the ability for plugins to ignore cancelled events when
using the new event system.
2012-02-09 15:51:56 -05:00
Aidan Matzko
db15c58e31 [Bleeding] Deprecate Enderman events in favor of EntityChangeBlock 2012-02-09 11:32:12 -05:00
craftycreeper
4272a879f9 Added EntityTeleportEvent. Fixes BUKKIT-366 2012-02-09 03:20:08 -05:00
EvilSeph
d9ed0a0d33 Added SpawnReason.BUILD_SNOWMAN. 2012-02-08 18:27:49 -05:00
EvilSeph
f04e388d46 Added RegainReason.ENDER_CRYSTAL. 2012-02-08 10:54:30 -05:00
EvilSeph
2c37ce1367 setCancelled should probably not be hard-coded to true or it could put
fernferrets in danger of self-implosion.
2012-02-05 02:01:11 -05:00
EvilSeph
ef1c779ff5 Added Spawner Egg support to CreatureSpawnEvent. 2012-02-05 01:54:27 -05:00
EvilSeph
a31f506e25 Adhere to naming conventions. 2012-01-25 02:10:02 -05:00
EvilSeph
66ffbbf1c5 This will be re-added after the RB. 2012-01-25 02:08:00 -05:00
Mike Primm
65e4d888c1 [Bleeding] Added EnchantmentTable API. 2012-01-24 06:13:48 -05:00
Zeerix
b516d3bf78 [Bleeding] Added PotionSplashEvent for splash potions. Closes BUKKIT-307 2012-01-24 02:11:38 -05:00
Aidan Matzko
26a6a1edf4 [Bleeding] Added Sheep, Shear and EntityChangeBlock API. Thanks tips48! Closes BUKKIT-512 2012-01-23 18:57:37 -05:00
Tahg
468d45b761 Updated timing code for new event system 2012-01-19 18:41:04 -05:00
Nathan Adams
92bbf8957c Added new PlayerExpChangeEvent and PlayerLevelChangeEvent events. Thanks to feildmaster for the PR. 2012-01-19 16:07:03 +00:00
Erik Broes
257e35d51c Use the type of the eventhandler method's parameter as type rather than specificing it. Thanks zml2008. 2012-01-19 08:13:49 +01:00
zml2008
81dc1c0a52 Added a default to EventHandler.priority()
Fixed HandlerList.unregisterAll()
Fixed incorrect isAssignableFrom check in SimplePluginManager.getRegistrationClass()
2012-01-18 14:46:15 +01:00
Erik Broes
e542942d45 Minor cleanup 2012-01-17 19:51:27 +01:00
Erik Broes
8874b94185 [Bleeding] Added EntityShootBowEvent. Thanks Zeerix. 2012-01-17 19:51:11 +01:00
Zeerix
418d18831c [Bleeding] Added DamageCause.POISON/MAGIC and RegainReason.MAGIC/MAGIC_REGEN for potions 2012-01-17 19:49:06 +01:00
Nathan Adams
86f33b82c9 [Bleeding] Changed event system into a new, much faster design. Huge thanks to @zml2008 & @lahwran. 2012-01-17 19:46:22 +01:00
Erik Broes
88c17a7f86 Generic cleaning 2012-01-15 14:37:43 +01:00
Nathan Adams
a10057b541 Added an EntityCreatePortalEvent 2012-01-15 11:58:03 +00:00
Nathan Adams
bf123c8b02 Fixed typo in Event javadoc, thanks to robin0van0der0v for the PR 2012-01-15 10:43:42 +00:00
Nathan Adams
11adb74a23 Added EntityBlockFormEvent for block forming by entity actions (snowmen etc). Thanks to fieldmaster for the PR. 2012-01-15 09:13:00 +00:00
Nathan Adams
d36385d28f Added new methods to set a players respawned level/exp/totalExp in PlayerDeathEvent. Thanks to Feildmaster for the PR. 2012-01-14 17:54:03 +00:00
Feildmaster
c16210e2e2 Added ItemDespawnEvent 2012-01-14 17:01:03 +00:00
Erik Broes
b9fca3c04d Generic cleanup of warnings, whitespace and style. 2011-12-25 16:02:30 +01:00
Nathan Adams
3ae2ce4c30 Override annotations do not belong here! 2011-12-09 16:24:23 +00:00