Commit Graph

72 Commits

Author SHA1 Message Date
Nathan Adams
e35037ab50 [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
eb9dc64493 Generic cleaning 2012-01-15 14:37:43 +01:00
Nathan Adams
b2364780cb Added an EntityCreatePortalEvent 2012-01-15 11:58:03 +00:00
Nathan Adams
44217678e6 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
0467c6aa06 Added ItemDespawnEvent 2012-01-14 17:01:03 +00:00
Erik Broes
dce83b6ce4 Generic cleanup of warnings, whitespace and style. 2011-12-25 16:02:30 +01:00
Andrew Ardill
dfd3aebb9c EntityExplodeEvent: Add constructor that takes yeild parameter
The Ender Dragon causes blocks to explode as it flies through them.
These blocks by default do not drop any items, so the default yeild for
this explosion event is 0. Previously the event had the default value
hard-coded to 0.3F, which is inaccurate in this situation.

We derecate the constructor with no yield, as any default yield should
really be left up to the implementation to decide, not the API.
2011-12-07 23:56:15 +11:00
Andrew Ardill
b9862ea779 Extend EntityCombustEvent to allow setting combustion duration.
Also extend with two new events that track the entity or block that caused
the combustion.
2011-11-29 20:56:08 +11:00
Nathan Adams
8a53045910 Javadoc typo. I can now sleep soundly at night. 2011-10-11 01:24:47 +01:00
EvilSeph
ebb8fdd6bc Added SlimeSplit event. Thanks garbagemule!
The SlimeSplit event is fired when a Slime attempts to split upon death. The event may be cancelled, and the amount of smaller slimes may be customized.
2011-09-30 19:50:27 -04:00
Dinnerbone
e6c273e8b0 Many javadoc fixes thanks to Celtic Minstrel 2011-09-25 02:56:40 +01:00
EvilSeph
36f642b558 Added RegainReason.SATIATED.
This reason is used when a player regains health from generating due to their hunger being satisfied.
2011-09-22 01:34:31 -04:00
EvilSeph
5480237d3b Added FoodLevelChange event. 2011-09-21 22:16:45 -04:00
EvilSeph
9e77b02618 Added DamageCause.STARVATION. 2011-09-21 17:19:39 -04:00
Dinnerbone
d04e0ebd81 Fixed an extremely dangerous typo caused by @dkdunnings! 2011-09-21 17:37:24 +01:00
Rigby
83d51ee3fb Implements the ability to customise and disable Player death messages. 2011-09-21 16:57:36 +01:00
Dinnerbone
d1f1b285ae Added methods to control dropped EXP from EntityDeathEvent, and made a subevent for setting players respawned-exp 2011-09-21 15:40:00 +01:00
EvilSeph
b663aa5900 Changed documentation for RegainReason.REGEN ENUM to reflect latest code. 2011-09-20 21:13:40 -04:00
Wizjany
bed0cc340b Added events for endermen pickup/placement blocks and methods to get/set the block that an enderman is holding. Thanks Wizjany 2011-09-20 18:48:56 +01:00
EvilSeph
86c7532cdf Added DamageCause.SUICIDE. 2011-08-12 21:48:31 -04:00
sunkid
317c17fbb9 Retiring EntityDamageByProjectileEvent in favor of EntityDamageEvent. 2011-07-28 02:23:40 -04:00
Erik Broes
46d8c4d92f Remove superfluous javadocs 2011-07-17 17:20:22 +02:00
EvilSeph
9789918954 More JavaDoc improvements. 2011-07-15 17:18:32 -04:00
EvilSeph
35574b8684 Added reasons for entities regaining health. 2011-06-30 14:43:00 -04:00
EvilSeph
a0c1f68109 More JavaDoc improvements. 2011-06-25 22:46:19 -04:00
EvilSeph
f709af58e5 JavaDoc cleanup. 2011-06-22 17:22:17 -04:00
EvilSeph
68f0e2d663 Added SpawnReasons to CreatureSpawn events. Thanks winsock! 2011-06-21 16:25:01 -04:00
EvilSeph
bbff1815f3 Added Target Reasons for Wolf events. Thanks Deaygo! 2011-06-18 22:29:07 -04:00
sunkid
7cab3de477 Added the concept of a projectile. 2011-06-18 22:20:47 -04:00
EvilSeph
99d9e5f66b Added EntityRegainHealthEvent. Thanks TimWolla! 2011-06-17 16:54:23 -04:00
sunkid
d471de6bb1 Added the concept of an Explosive. 2011-06-17 16:54:23 -04:00
Erik Broes
c54ec090c8 Generic cleanup 2011-06-12 12:49:08 +02:00
EvilSeph
c5fc81a42d Added ItemSpawnEvent. Thanks myers! 2011-06-11 00:26:18 -04:00
EvilSeph
d6f3999b70 Added EntityTame event. Thanks halvors! 2011-06-09 04:03:53 -04:00
Stephen
92f8f6aba8 Added various 1.6 portal events. 2011-06-08 18:30:48 -04:00
EvilSeph
7c9b2b9f40 Added get/setLastDamageCause. Thanks sunkid! 2011-05-16 00:25:35 -04:00
Erik Broes
c4d444ce98 Whitespace + general cleanup 2011-05-15 14:06:02 +02:00
EvilSeph
b0e81bcc7b Added a lot of events relating to weather, including those for entities. Thanks wizjany! 2011-04-25 19:46:10 -04:00
Stephen
a6c61782ac Added painting events (thanks verrier and tanelsuurhans) 2011-04-25 23:25:55 +02:00
Dinnerbone
8428739a27 Added LIGHTNING as a possible source of damage 2011-04-21 17:29:07 +01:00
Tahg
1723111b36 added some API for entities 2011-04-04 01:14:26 -04:00
Dinnerbone
4272e51e00 Line endings, consistency! 2011-03-27 21:27:27 +01:00
Erik Broes
158906c132 Some more backwards incompatible changes (minor though), also a ton of small cleanup.
onPluginEnable(PluginEvent event)   -> onPluginEnable(PluginEnableEvent event)
onPluginDisable(PluginEvent event)  -> onPluginDisable(PluginDisableEvent event)
onVehicleUpdate(VehicleEvent event) -> onVehicleUpdate(VehicleUpdateEvent event)
onWorldSave(WorldEvent event)       -> onWorldSave(WorldSaveEvent event)
onWorldLoad(WorldEvent event)       -> onWorldLoad(WorldLoadEvent event)
2011-03-26 22:32:14 +01:00
Erik Broes
a6a128197c Renamed many events/constants to be not past tense <-- Major Break says: "HI" 2011-03-23 16:58:26 +01:00
Gunther De Wachter
35209011ed Added DamageType.VOID 2011-03-17 20:04:02 +01:00
Dinnerbone
9da67772a8 Purged deprecated MobType and MobSpawner 2011-03-07 16:29:03 +00:00
Tahg
112a04a08c added yield to explosions 2011-02-19 23:36:59 -05:00
Dinnerbone
adcf330eb2 Shifting damage events per http://forums.bukkit.org/threads/oops-i-broke-your-plugins.599/#post-67424 (This breaks stuff!) 2011-02-19 17:08:14 +00:00
ss2man44
6c06199f44 Added CREATURE_SPAWN event 2011-02-16 22:28:44 -05:00
Erik Broes
63e6ef4b5e Windows and executable, should be 0644 2011-02-12 16:16:14 +01:00