Celtic Minstrel
0b77483c2f
[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
50bd232814
Fixed PlayerPortalEvent constructor.
2012-02-29 14:27:05 -05:00
James Clarke
09fa3a4c59
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
cbb9bc0fa3
[Bleeding] Added EntityType to replace CreatureType.
2012-02-22 22:06:19 -05:00
Feildmaster
ca71be0228
[Bleeding] Event no longer implements Serializable.
2012-02-19 04:10:07 -05:00
Erik Broes
7a06777e19
Deprecation cleanup.
2012-02-18 13:05:58 -05:00
Aidan Matzko
3a7c82f7cd
[Bleeding] Added Sheep, Shear and EntityChangeBlock API. Thanks tips48! Closes BUKKIT-512
2012-01-23 18:57:37 -05:00
Nathan Adams
c82666738f
Added new PlayerExpChangeEvent and PlayerLevelChangeEvent events. Thanks to feildmaster for the PR.
2012-01-19 16:07:03 +00:00
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
19a96434b3
Added cause to PlayerTeleportEvent
2011-12-04 11:03:32 +00:00
sunkid
e6fa9d9198
Added PlayerChangedWorldEvent.
2011-10-01 15:35:04 -04:00
Dinnerbone
e6c273e8b0
Many javadoc fixes thanks to Celtic Minstrel
2011-09-25 02:56:40 +01:00
Rigby
b2e7c24e35
Added PlayerToggleSprint event and sprinting related API.
2011-09-21 16:19:17 -04:00
sunkid
c8b70c5a8f
addition of PlayerGameModeChangeEvent
2011-09-18 00:28:14 +01:00
EvilSeph
00c797ccff
Made PlayerAnimation cancellable. Thanks desmin88!
2011-07-28 10:53:19 -04:00
EvilSeph
57544d0d22
Added PlayerVelocityEvent. Thanks Evenprime!
2011-07-28 01:17:07 -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
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
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
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
sk89q
fb79a3106e
Added PlayerToggleSneakEvent.isSneaking().
2011-06-18 14:36:16 -07:00
Dinnerbone
a329cf151b
Removing 14 deprecated methods per http://bit.ly/mO2f4d
2011-06-16 22:06:18 +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
Erik Broes
c4d444ce98
Whitespace + general cleanup
2011-05-15 14:06:02 +02:00
EvilSeph
4e3d770ad3
Added PlayerInteractEntityEvent which fires when a player right clicks an entity. Thanks fullwall!
2011-05-02 04:31:42 -04:00
EvilSeph
5c4f940bff
Removed trailing spaces.
2011-05-02 04:15:27 -04:00
EvilSeph
22e7e7afcf
Fixed formatting and removed tabs.
2011-04-27 23:48:43 -04:00
Erik Broes
d94fce59ff
Updated README for line-ending demands, also fixed line-endigs.
2011-04-25 13:24:32 +02:00
Dinnerbone
240ae33638
Dammit, line endings!
2011-04-21 15:27:18 +01:00
sk89q
a7724a5138
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
ef5d72ec02
Added bed events and methods.
2011-04-07 11:26:33 -07:00
Dinnerbone
748447716b
Line endings. This is getting very annoying.
2011-04-05 16:35:57 +01:00
EvilSeph
227772ba4f
Fixed PlayerInventoryEvent Type.
2011-04-04 20:40:46 -04:00
Raphfrk
ebb3a6fbc7
Added the ability to set the quit message
2011-04-02 18:25:33 +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
HACKhalo2
ced00079c2
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
1de3f3cecc
fixed PlayerCommandPreprocessEvent inheritance
2011-03-28 17:15:41 -07:00
Byron Shelden
a5b07e7355
Fixed PlayerTeleportEvent so getType() returns Type.PLAYER_TELEPORT
2011-03-28 01:15:21 +02:00
Dinnerbone
4272e51e00
Line endings, consistency!
2011-03-27 21:27:27 +01:00
Erik Broes
325fbdc01a
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
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