108 Commits

Author SHA1 Message Date
Edmond Poon
02d11a0525 Pulling all pending Bukkit-JavaDoc changes 2013-04-02 00:11:22 -04:00
Patrick Seidel
d18bdf14e9 Add ability to change player item in hand. Adds BUKKIT-3318 2013-03-24 13:59:27 -04:00
Andre LeBlanc
f416636f06 Add Fish (Hook) entity to PlayerFishEvent. Adds BUKKIT-1025 2013-03-20 16:02:15 -07:00
Travis Watkins
f6399fde39 Add PlayerItemConsumeEvent. Adds BUKKIT-2349 2013-03-02 00:03:57 -06:00
EdGruberman
49d50e7b5f Only use TravelAgent if supplied; Addresses BUKKIT-3466
If there is no TravelAgent assigned, it can not be used.
2013-01-24 04:05:49 -06:00
feildmaster
05c2c55fce Improve javadoc in 26 files.
Addresses:
BUKKIT-1643, BUKKIT-1868, BUKKIT-1846, BUKKIT-2632, BUKKIT-3196,
BUKKIT-3187, BUKKIT-3198, BUKKIT-3200, BUKKIT-3201 and BUKKIT-3417.
2013-01-22 16:41:00 -06:00
EdGruberman
2f6cee111d [Bleeding] Add experimental support for entity portal traveling
EntityPortalEvent is called when an entity is about to portal to a
new location. This event is cancellable on top of being able to
change the exit location.

EntityPortalExitEvent is called when exiting the portal, allowing
for adjustment of the exit velocity.
2013-01-19 06:06:22 -06:00
feildmaster
87e41b0d13 Add experience methods for PlayerFishEvent. Adds BUKKIT-3348 2013-01-01 23:44:18 -06:00
feildmaster
984919f3a9 Don't allow nulls in PlayerRespawnEvent. Fixes BUKKIT-2571 2012-12-29 18:41:23 -06:00
Wesley Wolfe
6c2c2c19a2 Add a tab completion API for chat messages. Adds BUKKIT-2607
This implementation provides access to a (mutable) list and the base
message. Also provided is a convenience method for getting the last
'token' in the provided string.
2012-10-17 04:56:11 -05:00
Wesley Wolfe
3dc80e1563 Deprecate PlayerPreLoginEvent. Addresses BUKKIT-2600
PlayerPreLoginEvent was originally implemented with the intention that
putting synchronized blocks on the plugin manager made it thread safe.
Unintentionally, this causes the event to be executed when a plugin
would otherwise expect no events to be firing. It is now deprecated.
2012-10-14 03:36:08 -05:00
Wesley Wolfe
1acd7401c7 Add Warning API and settings for Deprecated events 2012-08-07 00:16:57 -05:00
Wesley Wolfe
0249a23179 BREAKING: replace defunct PlayerChatEvent with async chat. Addresses BUKKIT-2064
PlayerChatEvent is now Deprecated. It should be fired asynchronously, but
has not been so traditionally. To do so would massively break plugins that
rely on it.

AsyncPlayerChatEvent now replaces PlayerChatEvent. It uses comparable
functionality, but can be fired without synchronizing to the event manager.
The event will sometimes fire synchronously if triggered by a plugin.

Because PlayerChatEvent is now deprecated, PlayerCommandPreprocessEvent will
no longer extend PlayerChatEvent. This is almost completely source and
binary compatible, bar plugins that downcast to PlayerChatEvent.
Additionally, some methods that are non-functional have been marked
deprecated and indicate such.

Additionally, new constructors are now provided to allow for lazier
initialization of the receiving player set. A note has been added stating
plugins should be prepared for UnsupportedOperationExceptions if the caller
provides an unmodifiable collection.
2012-08-03 20:31:01 -05:00
Wesley Wolfe
9cb65fd1cd Add plugin channel events. Addresses BUKKIT-1844 2012-06-21 02:39:35 -05:00
Travis Ralston
e7396e74c4 Add PlayerItemBreakEvent. Addresses BUKKIT-1600 2012-06-21 02:08:31 -05:00
Wesley Wolfe
8c68913506 Add asynchronous pre-login event; Addresses BUKKIT-1213 2012-06-13 23:01:03 -05:00
H31IX
ef1748ef68 Add PlayerToggleFlightEvent. Fixes BUKKIT-1696 2012-06-13 22:19:51 -05:00
Wesley Wolfe
9030ba5f99 Adds address to PlayerLoginEvent; Addresses BUKKIT-431
This also deprecates old constructors left for compatibility. Address
will default to null in these cases.
2012-04-03 17:00:05 -05:00
Warren Loo
f520069aa6 Reverting the Drop API for now, we need to re-evalute this as it is causing too many issues and blocking releases.
This reverts commit 2d17b0c24e2de982c09ad6050a95db0fac70c3ad.
2012-03-27 19:54:54 -04:00
Celtic Minstrel
066ccf6062 [Bleeding] Added getting and setting drops to all appropriate events. Fixes BUKKIT-397 and fixes BUKKIT-1252 2012-03-21 12:31:22 -04:00
SpaceManiac
bc60e182cd [Bleeding] Added getting the hostname a player used to log in. Addresses BUKKIT-984 2012-03-09 11:48:04 -05:00
Celtic Minstrel
8a458ca273 [Bleeding] Inventory framework and events. Addresses BUKKIT-856
New events:
- InventoryOpenEvent
- InventoryClickEvent - detects any clicks on a slot or outside the window
  - In the creative inventory view, only clicks on the quickbar are detected
- InventoryCloseEvent
- BrewEvent - when a potion finishes brewing
- CraftItemEvent (a subevent of InventoryClickEvent) - fired when taking the crafted item
- PrepareItemCraftEvent - fired just before updating the result slot
Changes to existing events:
- EnchantItemEvent extends InventoryEvent and also has a new whichButton() method
- PrepareItemEnchantEvent also extends InventoryEvent
- FurnaceBurnEvent and FurnaceSmeltEvent now extend BlockEvent (as does BrewEvent)
- PlayerInventoryEvent is deprecated (though it never did anything anyway)
New subclasses of Inventory:
- BrewerInventory
- CraftingInventory
- DoubleChestInventory
- EnchantingInventory
- FurnaceInventory
New methods in Inventory:
- getViewers()
- getTitle()
- getType()
- getHolder()
- iterator() - Yes, inventories are now iterable!
  - The iterator is a ListIterator that does not support add or remove
New methods in Player:
- getOpenInventory()
- openInventory()
- openWorkbench()
- openEnchanting()
- closeInventory()
- setWindowProperty()
- getItemOnCursor()
- setItemOnCursor()
Other changes:
- createInventory() methods in Server to make inventories not linked to an object
- ContainerBlock is deprecated in favour of InventoryHolder
- New InventoryView class gives direct access to an inventory window!
- Removed the Slot class which did nothing and was used nowhere

Some small credit goes to Afforess (initial conception of openInventory() methods) and Drakia (initial conception of InventoryOpenEvent and InventoryCloseEvent).
2012-02-29 15:18:56 -05:00
EvilSeph
925bf6498c Fixed PlayerPortalEvent constructor. 2012-02-29 14:27:05 -05:00
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
Celtic Minstrel
ce4a390b00 [Bleeding] Added EntityType to replace CreatureType. 2012-02-22 22:06:19 -05:00
Feildmaster
99af2a1aad [Bleeding] Event no longer implements Serializable. 2012-02-19 04:10:07 -05:00
Erik Broes
049a7cc1d0 Deprecation cleanup. 2012-02-18 13:05:58 -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
Nathan Adams
92bbf8957c Added new PlayerExpChangeEvent and PlayerLevelChangeEvent events. Thanks to feildmaster for the PR. 2012-01-19 16:07:03 +00: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
Erik Broes
b9fca3c04d Generic cleanup of warnings, whitespace and style. 2011-12-25 16:02:30 +01:00
Nathan Adams
4155b1fb6c Added cause to PlayerTeleportEvent 2011-12-04 11:03:32 +00:00
sunkid
a457ea9784 Added PlayerChangedWorldEvent. 2011-10-01 15:35:04 -04:00
Dinnerbone
fe4f4c5f58 Many javadoc fixes thanks to Celtic Minstrel 2011-09-25 02:56:40 +01:00
Rigby
81d2064441 Added PlayerToggleSprint event and sprinting related API. 2011-09-21 16:19:17 -04:00
sunkid
627e2af265 addition of PlayerGameModeChangeEvent 2011-09-18 00:28:14 +01:00
EvilSeph
30f4a7d66d Made PlayerAnimation cancellable. Thanks desmin88! 2011-07-28 10:53:19 -04:00
EvilSeph
ce36ff1cf9 Added PlayerVelocityEvent. Thanks Evenprime! 2011-07-28 01:17:07 -04:00
Erik Broes
6ff9f7cad6 Remove superfluous javadocs 2011-07-17 17:20:22 +02:00
Erik Broes
b5f8bb5434 Refactor Bucket events 2011-07-17 17:02:37 +02:00
EvilSeph
2a7dd93cb5 More JavaDoc improvements. 2011-07-15 17:18:32 -04:00
EvilSeph
f92bc8a15f Added PlayerFish event. 2011-07-03 01:31:09 -04:00
EvilSeph
3f388a2ad9 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
d8f0f0d17c More JavaDoc improvements. 2011-06-25 22:46:19 -04:00
EvilSeph
d870a6e3f8 Added missing 'implements Cancellable' to several classes. 2011-06-22 17:23:44 -04:00
Rigby
af7d0410f3 Implements isBedSpawn() to the PlayerRespawnEvent. 2011-06-20 23:55:19 -04:00
Rigby
e3462769c1 Implements customiseable PortalTravelAgent and updated PlayerPortalEvent. 2011-06-20 18:30:47 -04:00
sk89q
54245e3a6c Added PlayerToggleSneakEvent.isSneaking(). 2011-06-18 14:36:16 -07:00
Dinnerbone
0468c8e89e Removing 14 deprecated methods per http://bit.ly/mO2f4d 2011-06-16 22:06:18 +01:00