Commit Graph

258 Commits

Author SHA1 Message Date
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
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
f2b19e14bf Teach the API about Remote Consoles
This will allow us to raise events for remote consoles, and provide access
to them at a later date. Relates to BUKKIT-220
2011-12-07 17:42:32 +11:00
Nathan Adams
19a96434b3 Added cause to PlayerTeleportEvent 2011-12-04 11:03:32 +00: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
sk89q
ce8a4b92b6 Added a case previously not covered by VehicleDestroyEvent for boats, updated VehicleDestroyEvent Javadocs. 2011-10-13 01:17:10 -07:00
Nathan Adams
8a53045910 Javadoc typo. I can now sleep soundly at night. 2011-10-11 01:24:47 +01:00
Nathan Adams
14d3401121 Small javadoc cleanup 2011-10-10 21:58:44 +01:00
Tahg
4155a42406 hopeful fix for blocks not being pistons when they should be 2011-10-05 10:59:41 -04:00
sunkid
e6fa9d9198 Added PlayerChangedWorldEvent. 2011-10-01 15:35:04 -04:00
EvilSeph
ab29f6a3b5 Painting improvements. Thanks CelticMinstrel!
Added interface to get/set the art and facing direction on paintings, and expanded painting break events to catch more cases (including fire and lightning); removed PaintingBreakByWorldEvent since it's identical to its superclass
2011-10-01 13:55:56 -04: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
sk89q
47a035440c Added server list ping event. 2011-09-26 15:32:01 -07: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
Rigby
b2e7c24e35 Added PlayerToggleSprint event and sprinting related API. 2011-09-21 16:19:17 -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
sunkid
c8b70c5a8f addition of PlayerGameModeChangeEvent 2011-09-18 00:28:14 +01:00
EvilSeph
7f12385332 Added API for manipulating map items. Thanks SpaceManiac, codename_B, sk89q and dested! 2011-08-12 22:02:15 -04:00
EvilSeph
86c7532cdf Added DamageCause.SUICIDE. 2011-08-12 21:48:31 -04:00
EvilSeph
00c797ccff Made PlayerAnimation cancellable. Thanks desmin88! 2011-07-28 10:53:19 -04:00
EvilSeph
66e70b428e Added ServerCommandEvent. Thanks celticminstrel! 2011-07-28 10:35:52 -04:00
sunkid
317c17fbb9 Retiring EntityDamageByProjectileEvent in favor of EntityDamageEvent. 2011-07-28 02:23:40 -04:00
EvilSeph
57544d0d22 Added PlayerVelocityEvent. Thanks Evenprime! 2011-07-28 01:17:07 -04:00
EvilSeph
1f5c90052a Removed deprecated methods.
getNote() that returns a byte has been replaced by getRawNote().
teleportTo(Location) has been replaced by teleport(location).
teleportTo(Entity) has been replaced by teleport(Entity).
SnowForm event has been replaced by BlockForm event.
2011-07-27 23:18:33 -04:00
Erik Broes
46d8c4d92f Remove superfluous javadocs 2011-07-17 17:20:22 +02:00
Erik Broes
75d550a23c Refactor Bucket events 2011-07-17 17:02:37 +02:00
Erik Broes
e403b3e000 Added Block.getPistonMoveReaction, BlockPistonExtend and BlockPistonRetractEvent 2011-07-17 17:02:37 +02:00
EvilSeph
9789918954 More JavaDoc improvements. 2011-07-15 17:18:32 -04:00
EvilSeph
d8d006200a Added PlayerFish event. 2011-07-03 01:31:09 -04:00
EvilSeph
b2e236878c Fixed PlayerPickupItem event returning wrong amount picked up and added function to get the amount remaining on the ground. 2011-07-02 21:16:39 -04:00
EvilSeph
38863ab65b Improved FurnaceBurn event.
- Added the ability to set the burn time of the fuel.
- Added the ability to set if a fuel should burn or not.
2011-07-02 20:44:11 -04:00
EvilSeph
35574b8684 Added reasons for entities regaining health. 2011-06-30 14:43:00 -04: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
EvilSeph
c15affbfd4 Added missing 'implements Cancellable' to several classes. 2011-06-22 17:23:44 -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
Rigby
2fd1c815ca Implements isBedSpawn() to the PlayerRespawnEvent. 2011-06-20 23:55:19 -04:00
Rigby
31964b9e77 Implements customiseable PortalTravelAgent and updated PlayerPortalEvent. 2011-06-20 18:30:47 -04:00
EvilSeph
f4a2e801e9 Added Furnace smelt and burn events. 2011-06-20 01:29:29 -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