Bukkit/Spigot
795a61bbeb
Fix javadoc errors/warnings
...
By: Celtic Minstrel <celtic.minstrel.ca@some.place >
2012-02-26 10:35:17 -05:00
Bukkit/Spigot
c180de46e2
[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).
By: Celtic Minstrel <celtic.minstrel.ca@some.place >
2012-02-29 13:32:33 -05:00
Bukkit/Spigot
27fb3d2fea
Fixed PlayerPortalEvent constructor.
...
By: EvilSeph <evilseph@gmail.com >
2012-02-29 14:27:05 -05:00
Bukkit/Spigot
c2e4349767
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.
By: James Clarke <jamesrtclarke@me.com >
2012-02-15 19:54:01 +00:00
Bukkit/Spigot
5906da7948
[Bleeding] Cleaned up unsafe casts. Addresses BUKKIT-844
...
Removed internal collection leaks from PluginDescriptionFile
BREAKING: PluginDescriptionFile.getAuthors() now returns List instead of
ArrayList
Various places with unsafe generics, notably List<Object> getList() in
Configurations are now referenced as <?>. This is nonbreaking, but
sourcecode will need to be revised when compiled.
By: Wesley Wolfe <weswolf@aol.com >
2012-02-29 08:32:25 -06:00
Bukkit/Spigot
9ebb2f13de
[Bleeding] Fixes deadlock issue and generic usage. Fixes BUKKIT-844 and fixes BUKKIT-854
...
By: Wesley Wolfe <weswolf@aol.com >
2012-02-29 08:29:22 -06:00
Bukkit/Spigot
38fd1dd5f0
Narrowed down the return type of most EntityEvent subclasses for convenience. Addresses BUKKIT-809
...
By: TomyLobo <tomylobo@nurfuerspam.de >
2012-02-28 04:59:09 -06:00
Bukkit/Spigot
345f24b35c
Event system optimizations. Addresses BUKKIT-813
...
- Made the handlers field a simple array instead of an array of arrays.
- Got rid of the "baked" field.
By: TomyLobo <tomylobo@nurfuerspam.de >
2012-02-28 19:37:27 -06:00
Bukkit/Spigot
2e383f96df
Add a CreateReason to PortalCreateEvent. Addresses BUKKIT-833
...
By: Sam Wilson <sam.wilson@gmail.com >
2011-12-25 22:11:15 -08:00
Bukkit/Spigot
860011dcc1
Added service register and unregister events. Addresses BUKKIT-816
...
By: zml2008 <zach@zachsthings.com >
2011-11-12 20:22:30 -08:00
Bukkit/Spigot
1d03cfb423
[Bleeding] Add constructor to BlockFromToEvent for dragon egg teleportation. Addresses BUKKIT-828
...
By: Celtic Minstrel <celtic.minstrel.ca@some.place >
2012-02-25 12:49:46 -05:00
Bukkit/Spigot
6e054ddf7f
[Bleeding] Added EntityType to replace CreatureType.
...
By: Celtic Minstrel <celtic.minstrel.ca@some.place >
2012-02-14 23:52:38 -05:00
Bukkit/Spigot
c6050ff89d
[Bleeding] Added BlockGrowEvent. Addresses BUKKIT-104
...
By: Feildmaster <admin@feildmaster.com >
2012-02-11 23:09:10 -06:00
Bukkit/Spigot
2a1eddc441
[Bleeding] getHandlers() is now abstract.
...
By: Feildmaster <admin@feildmaster.com >
2012-02-19 15:52:46 -06:00
Bukkit/Spigot
e4de1795db
[Bleeding] Event no longer implements Serializable.
...
By: Feildmaster <admin@feildmaster.com >
2012-02-19 01:25:46 -06:00
Bukkit/Spigot
0fd379166c
[Bleeding] Remove deprecated events (EndermanPickup/Place).
...
By: Feildmaster <admin@feildmaster.com >
2012-02-19 01:25:11 -06:00
Bukkit/Spigot
539aedf219
[Bleeding] Specify event name in exception. Addresses BUKKIT-778
...
By: Feildmaster <admin@feildmaster.com >
2012-02-19 02:49:51 -06:00
Bukkit/Spigot
a23dfcdc7e
[Bleeding] Added Enchantment and misc tests to ItemStack (de)serialization
...
By: Wesley Wolfe <weswolf@aol.com >
2012-02-16 14:37:57 -06:00
Bukkit/Spigot
cfccd9341c
[Bleeding] Added ability to unregister listeners, updated javadoc and
...
renamed allLists. Addresses BUKKIT-773
By: SpaceManiac <tad.hardesty@platymuus.com >
2012-02-18 15:41:18 -06:00
Bukkit/Spigot
91946d8857
Fixed Validate message.
...
By: EvilSeph <evilseph@gmail.com >
2012-02-18 15:28:33 -05:00
Bukkit/Spigot
4608ec4504
Updated EntityTeleportEvent in line with deprecation cleanup.
...
By: EvilSeph <evilseph@gmail.com >
2012-02-18 13:13:50 -05:00
Bukkit/Spigot
75fd934339
Deprecation cleanup.
...
By: Erik Broes <erikbroes@grum.nl >
2012-01-30 21:32:48 +01:00
Bukkit/Spigot
fe4de0bb01
Added RemoteServerCommandEvent.
...
By: Erik Broes <erikbroes@grum.nl >
2012-01-30 21:52:41 +01:00
Bukkit/Spigot
8aedc0a4b8
Added JOCKEY and CHUNK_GEN SpawnReasons.
...
By: EvilSeph <evilseph@gmail.com >
2012-02-10 00:48:19 -05:00
Bukkit/Spigot
4363ae55e0
[Bleeding] setLastDamageCaused to ComplexEntityPart parent.
...
By: Feildmaster <admin@feildmaster.com >
2012-02-08 16:14:33 -06:00
Bukkit/Spigot
cb2fe27653
[Bleeding] Add the ability for plugins to ignore cancelled events when
...
using the new event system.
By: md_5 <md_5@bigpond.com >
2012-01-21 15:34:22 +11:00
Bukkit/Spigot
3dcab1536a
[Bleeding] Deprecate Enderman events in favor of EntityChangeBlock
...
By: Aidan Matzko <amatzko48@gmail.com >
2012-02-04 12:40:16 -05:00
Bukkit/Spigot
b51e8579ef
Added EntityTeleportEvent. Fixes BUKKIT-366
...
By: craftycreeper <diagonalfish+craftycreeper@gmail.com >
2012-02-07 23:42:43 -05:00
Bukkit/Spigot
202521ce54
Added SpawnReason.BUILD_SNOWMAN.
...
By: EvilSeph <evilseph@gmail.com >
2012-02-08 18:27:49 -05:00
Bukkit/Spigot
238ceb0afd
Added RegainReason.ENDER_CRYSTAL.
...
By: EvilSeph <evilseph@gmail.com >
2012-02-08 10:54:30 -05:00
Bukkit/Spigot
60f92a8572
setCancelled should probably not be hard-coded to true or it could put
...
fernferrets in danger of self-implosion.
By: EvilSeph <evilseph@gmail.com >
2012-02-05 01:56:06 -05:00
Bukkit/Spigot
552bb7f085
Added Spawner Egg support to CreatureSpawnEvent.
...
By: EvilSeph <evilseph@gmail.com >
2012-02-05 01:54:27 -05:00
Bukkit/Spigot
34d002f275
Adhere to naming conventions.
...
By: EvilSeph <evilseph@gmail.com >
2012-01-25 02:10:02 -05:00
Bukkit/Spigot
e223475be3
This will be re-added after the RB.
...
By: EvilSeph <evilseph@gmail.com >
2012-01-25 02:08:00 -05:00
Bukkit/Spigot
58d9efad7c
[Bleeding] Added EnchantmentTable API.
...
By: Mike Primm <mike@primmhome.com >
2012-01-21 01:26:45 -06:00
Bukkit/Spigot
b3642a04e1
[Bleeding] Added PotionSplashEvent for splash potions. Closes BUKKIT-307
...
By: Zeerix <zeerix@draig.de >
2012-01-20 08:16:45 +01:00
Bukkit/Spigot
7e5c1baee9
[Bleeding] Added Sheep, Shear and EntityChangeBlock API. Thanks tips48! Closes BUKKIT-512
...
By: Aidan Matzko <amatzko48@gmail.com >
2012-01-21 21:20:49 -05:00
Bukkit/Spigot
05b6ad92d1
Updated timing code for new event system
...
By: Tahg <tahgtahv@gmail.com >
2012-01-16 15:03:41 -05:00
Bukkit/Spigot
1a86a7e3f7
Added new PlayerExpChangeEvent and PlayerLevelChangeEvent events. Thanks to feildmaster for the PR.
...
By: Nathan Adams <dinnerbone@dinnerbone.com >
2012-01-19 16:07:03 +00:00
Bukkit/Spigot
84372f7cd5
Use the type of the eventhandler method's parameter as type rather than specificing it. Thanks zml2008.
...
By: Erik Broes <erikbroes@grum.nl >
2012-01-19 08:13:49 +01:00
Bukkit/Spigot
0c50b9eeb1
Added a default to EventHandler.priority()
...
Fixed HandlerList.unregisterAll()
Fixed incorrect isAssignableFrom check in SimplePluginManager.getRegistrationClass()
By: zml2008 <zach@zachsthings.com >
2012-01-17 19:06:48 -08:00
Bukkit/Spigot
33f366c08d
Minor cleanup
...
By: Erik Broes <erikbroes@grum.nl >
2012-01-17 19:35:28 +01:00
Bukkit/Spigot
85c66fd6f3
[Bleeding] Added EntityShootBowEvent. Thanks Zeerix.
...
By: Erik Broes <erikbroes@grum.nl >
2012-01-17 18:58:29 +01:00
Bukkit/Spigot
52bcc1c28e
[Bleeding] Added DamageCause.POISON/MAGIC and RegainReason.MAGIC/MAGIC_REGEN for potions
...
By: Zeerix <zeerix@draig.de >
2012-01-14 01:25:12 +01:00
Bukkit/Spigot
e0c7fc6bf5
[Bleeding] Changed event system into a new, much faster design. Huge thanks to @zml2008 & @lahwran.
...
By: Nathan Adams <dinnerbone@dinnerbone.com >
2012-01-16 18:25:17 +00:00
Bukkit/Spigot
4c80a49933
Generic cleaning
...
By: Erik Broes <erikbroes@grum.nl >
2012-01-15 14:37:30 +01:00
Bukkit/Spigot
77c577bdf8
Added an EntityCreatePortalEvent
...
By: Nathan Adams <dinnerbone@dinnerbone.com >
2012-01-15 11:58:03 +00:00
Bukkit/Spigot
8670d01e58
Fixed typo in Event javadoc, thanks to robin0van0der0v for the PR
...
By: Nathan Adams <dinnerbone@dinnerbone.com >
2012-01-15 10:43:42 +00:00
Bukkit/Spigot
72ce6fab3e
Added EntityBlockFormEvent for block forming by entity actions (snowmen etc). Thanks to fieldmaster for the PR.
...
By: Nathan Adams <dinnerbone@dinnerbone.com >
2012-01-15 09:13:00 +00:00
Bukkit/Spigot
a80bc820c6
Added new methods to set a players respawned level/exp/totalExp in PlayerDeathEvent. Thanks to Feildmaster for the PR.
...
By: Nathan Adams <dinnerbone@dinnerbone.com >
2012-01-14 17:54:03 +00:00