257 Commits

Author SHA1 Message Date
EvilSeph
c42ee3f065 Added BlockSpread, BlockForm and BlockFade events. 2011-06-17 23:04:45 -04:00
EvilSeph
a5e6cfa714 Added EntityRegainHealthEvent. Thanks TimWolla! 2011-06-17 16:54:23 -04:00
sunkid
82475d3497 Added the concept of an Explosive. 2011-06-17 16:54:23 -04:00
Dinnerbone
0468c8e89e Removing 14 deprecated methods per http://bit.ly/mO2f4d 2011-06-16 22:06:18 +01:00
Dinnerbone
04494c5b07 Added ChunkPopulateEvent, new "newChunk" property on ChunkLoadEvent 2011-06-16 19:32:14 +01:00
Erik Broes
0ac6a0bfe6 Generic cleanup 2011-06-12 12:49:08 +02:00
EvilSeph
7837906a2a Added ItemSpawnEvent. Thanks myers! 2011-06-11 00:26:18 -04:00
EvilSeph
8c3a7e75f6 Added EntityTame event. Thanks halvors! 2011-06-09 04:03:53 -04:00
Stephen
55bc828c2c Added various 1.6 portal events. 2011-06-08 18:30:48 -04:00
Rigby
4ef2edfc5b Implemented WorldUnloadEvent and unloadWorld(). 2011-06-07 02:51:31 -04:00
Dinnerbone
f784af8f3e Added custom world generator API 2011-06-06 18:37:20 +01:00
EvilSeph
d72be8bd86 Added get/setLastDamageCause. Thanks sunkid! 2011-05-16 00:25:35 -04:00
Erik Broes
992f1f2bf3 Whitespace + general cleanup 2011-05-15 14:06:02 +02:00
Dinnerbone
ed7a7ab265 Line endings. Don't make me yell at you. 2011-05-12 22:28:09 +01:00
sk89q
b87835c16d Added dispenser event. 2011-05-08 02:57:26 -07:00
sk89q
2f553fed80 Changed LightningStrikeEvent to return a LightningStrike and not an Entity. 2011-05-06 19:24:40 -07:00
EvilSeph
7570b5bfaf Added PlayerInteractEntityEvent which fires when a player right clicks an entity. Thanks fullwall! 2011-05-02 04:31:42 -04:00
EvilSeph
e969067ce3 Removed trailing spaces. 2011-05-02 04:15:27 -04:00
EvilSeph
8b1190626b Added SnowFormEvent. Thanks aPunch! 2011-05-02 01:46:55 -04:00
EvilSeph
a231c514d9 Removed trailing spaces. 2011-05-02 01:18:23 -04:00
EvilSeph
8e95e2788a Fixed formatting and removed tabs. 2011-04-27 23:48:43 -04:00
EvilSeph
a5aa113ce3 Added a lot of events relating to weather, including those for entities. Thanks wizjany! 2011-04-25 19:46:10 -04:00
Stephen
bd5d86665a Added painting events (thanks verrier and tanelsuurhans) 2011-04-25 23:25:55 +02:00
Erik Broes
b39503de71 Updated README for line-ending demands, also fixed line-endigs. 2011-04-25 13:24:32 +02:00
sk89q
ca74c6d3ee Added lightning as a cause for fires. 2011-04-22 01:20:49 -07:00
Dinnerbone
626edb3eb0 Added LIGHTNING as a possible source of damage 2011-04-21 17:29:07 +01:00
Dinnerbone
df18fad33f Dammit, line endings! 2011-04-21 15:27:18 +01:00
sk89q
3791a158de Added pre-login event for catching logins right after name verification has completed. This happens in a different thread from the server (and thus can also block). 2011-04-16 03:08:05 -07:00
sk89q
bd533b3c8a Added bed events and methods. 2011-04-07 11:26:33 -07:00
Dinnerbone
a521a8ae77 Line endings. This is getting very annoying. 2011-04-05 16:35:57 +01:00
EvilSeph
aa7c55627d Fixed PlayerInventoryEvent Type. 2011-04-04 20:40:46 -04:00
Tahg
4378464989 added some API for entities 2011-04-04 01:14:26 -04:00
Raphfrk
04ddb17fce Added the ability to set the quit message 2011-04-02 18:25:33 +02:00
Robert Sargant
c5fbd41659 Added VEHICLE_DESTROY event 2011-04-02 17:10:36 +02:00
William Bowers
287114f8ed 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
0d98e831cc Missed a hard break 2011-03-31 23:02:39 +01:00
Dinnerbone
2362fc6511 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
6929a1830e Force compile-time failures for the subtle changes done in the API 2011-03-30 00:25:59 +02:00
HACKhalo2
9baed69563 Added the KICK_WHITELIST Result for players being kicked from not being on the whitelist, just because KICK_BANNED didn't seem to fit. 2011-03-29 21:37:31 +01:00
sunkid
1ae3433d89 fixed PlayerCommandPreprocessEvent inheritance 2011-03-28 17:15:41 -07:00
Byron Shelden
2b3698d6b1 Fixed PlayerTeleportEvent so getType() returns Type.PLAYER_TELEPORT 2011-03-28 01:15:21 +02:00
Dinnerbone
32b3c77165 Line endings, consistency! 2011-03-27 21:27:27 +01:00
Erik Broes
6d987ec850 Fix Type of VehicleDamageEvent 2011-03-27 12:35:16 +02:00
Erik Broes
cc899b0048 Change some more signatures :(
onPlayerCommandPreprocess(PlayerChatEvent event) -> onPlayerCommandPreprocess(PlayerCommandPreprocessEvent event)
onBlockFlow(BlockFromToEvent event)     -> onBlockFromTo(BlockFromToEvent event)
onPlayerJoin(PlayerEvent event)         -> onPlayerJoin(PlayerJoinEvent event)
onPlayerQuit(PlayerEvent event)         -> onPlayerQuit(PlayerQuitEvent event)
onPlayerTeleport(PlayerMoveEvent event) -> onPlayerTeleport(PlayerTeleportEvent event)
2011-03-27 00:16:06 +01:00
Erik Broes
94894216e8 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
Raphfrk
6ece05bc73 Added player join event 2011-03-26 15:32:29 +01:00
Erik Broes
5141b7fe10 Fix wrong useItemInHand setting 2011-03-24 22:50:12 +01:00
Erik Broes
2916cba631 Fix for placing blocks after interacting with a block 2011-03-24 12:12:21 +01:00
Erik Broes
0ede0ca875 Remove lingering PlayerItemEvent file 2011-03-24 00:11:26 +01:00
Erik Broes
d6341293e7 Reworked BlockDamageEvent to match with the latest Mojang client/server changes. 2011-03-23 16:58:43 +01:00