Commit Graph

27 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
Erik Broes
dce83b6ce4 Generic cleanup of warnings, whitespace and style. 2011-12-25 16:02:30 +01:00
Nathan Adams
36b0a8873e Override annotations do not belong here! 2011-12-09 16:24:23 +00:00
Nathan Adams
fc51ffee2e Added onStructureGrow event, thanks to md-5. 2011-12-09 16:12:05 +00:00
Dinnerbone
e6c273e8b0 Many javadoc fixes thanks to Celtic Minstrel 2011-09-25 02:56:40 +01:00
Erik Broes
46d8c4d92f Remove superfluous javadocs 2011-07-17 17:20:22 +02:00
Erik Broes
8512822bb7 Change PortalCreateEvent constructor ArrayList to Collection 2011-06-27 00:10:41 +02:00
EvilSeph
a0c1f68109 More JavaDoc improvements. 2011-06-25 22:46:19 -04:00
Dinnerbone
a329cf151b Removing 14 deprecated methods per http://bit.ly/mO2f4d 2011-06-16 22:06:18 +01:00
Dinnerbone
6d51a64bc7 Added ChunkPopulateEvent, new "newChunk" property on ChunkLoadEvent 2011-06-16 19:32:14 +01:00
Erik Broes
c54ec090c8 Generic cleanup 2011-06-12 12:49:08 +02:00
Stephen
92f8f6aba8 Added various 1.6 portal events. 2011-06-08 18:30:48 -04:00
Rigby
826bcf1d4a Implemented WorldUnloadEvent and unloadWorld(). 2011-06-07 02:51:31 -04:00
Dinnerbone
bca3b8d0c5 Added custom world generator API 2011-06-06 18:37:20 +01:00
Erik Broes
c4d444ce98 Whitespace + general cleanup 2011-05-15 14:06:02 +02:00
William Bowers
c105f68327 Added the SPAWN_CHANGE event, which occurs when a world's spawn is changed.
This event includes the world who's spawn changed and its previous spawn location.

To listen for this event:
  PluginManager pm = getServer().getPluginManager();
  YourWorldListener worldListener = new YourWorldListener(this);
  pm.registerEvent(Event.Type.SPAWN_CHANGE, worldListener, Priority.Normal, this);

To use this event:
  public class YourWorldListener extends WorldListener {
      @Override
      public void onSpawnChange(SpawnChangeEvent event) {
          World world = event.getWorld();
          Location previousLocation = event.getPreviousLocation();
      }
  }
2011-04-02 17:00:29 +02:00
Dinnerbone
fe2c6c7b1c We weren't supposed to break things *that* hard. Plugins still need to update but here's a TEMPORARY fix. 2011-03-31 22:51:26 +01:00
Erik Broes
6dfe133f17 Force compile-time failures for the subtle changes done in the API 2011-03-30 00:25:59 +02: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
Dinnerbone
be485d43ee Added event for when a world is saved (EyvindRM) 2011-02-09 12:57:48 +00:00
Dinnerbone
a435cae101 New event WORLD_LOADED 2011-02-08 12:06:34 +00:00
Erik Broes
bbd7fffaac Events should be present tense, not paste tense. 2011-01-15 21:26:42 +01:00
Dinnerbone
05499e1f56 Javadoc 2011-01-04 22:05:53 +00:00
Dinnerbone
89cba41180 Added Chunk events in new World category 2011-01-04 14:08:56 +00:00