Commit graph

1029 commits

Author SHA1 Message Date
Bukkit/Spigot
4b5a0b8ed8 [Bleeding] Added ConversationAbandonedEvent and supporting infrastructure. Whenever a conversation exits, the ConversationAbandonedEvent is triggered with details about how the conversation ended and what, if anything caused it to end. Fixes BUKKIT-986
By: rmichela <deltahat@gmail.com>
2012-03-04 16:29:56 -05:00
Bukkit/Spigot
819611b351 [Bleeding] Added local echo toggle to Conversation and ConversationFactory objects. Fixes BUKKIT-1007.
By: rmichela <deltahat@gmail.com>
2012-03-04 13:59:45 -05:00
Bukkit/Spigot
4644c277b4 Updated version to 1.2.3-R0.2-SNAPSHOT for development towards next release.
By: EvilSeph <evilseph@gmail.com>
2012-03-04 04:07:13 -05:00
Bukkit/Spigot
5b6905a33c Updated version to 1.2.3-R0.1 in pom.xml for beta.
By: EvilSeph <evilseph@gmail.com>
2012-03-04 03:02:53 -05:00
Bukkit/Spigot
d7de3e2ab2 Fixed javadoc typo, it should read: "celticminstrel is a poopy head."
By: Nathan Adams <dinnerbone@dinnerbone.com>
2012-03-03 02:26:13 +00:00
Bukkit/Spigot
d2f8dde376 Added three new effects for zombies nomming on doors. This adds BUKKIT-961
By: Nathan Adams <dinnerbone@dinnerbone.com>
2012-03-03 02:21:57 +00:00
Bukkit/Spigot
c9937a01c8 [Bleeding] Fixed crafting enchanted items, fixes BUKKIT-602
By: Wesley Wolfe <weswolf@aol.com>
2012-03-02 12:49:56 -06:00
Bukkit/Spigot
0e0427ebeb Added Villager API for getting/setting Profession. This adds BUKKIT-887
By: Nathan Adams <dinnerbone@dinnerbone.com>
2012-03-03 01:58:30 +00:00
Bukkit/Spigot
577152ebd1 Fixed Ocelot.Type lookup - this fixes BUKKIT-952
By: Nathan Adams <dinnerbone@dinnerbone.com>
2012-03-03 00:46:27 +00:00
Bukkit/Spigot
d3a1476775 Changed version from 1.2.2-R0.1 to 1.2.3-R0.1
By: Nathan Adams <dinnerbone@dinnerbone.com>
2012-03-02 19:29:17 +00:00
Bukkit/Spigot
8c85fe2a5a Added VERSION_1_1 WorldType
By: Nathan Adams <dinnerbone@dinnerbone.com>
2012-03-02 18:38:12 +00:00
Bukkit/Spigot
e80616be97 Added JUNGLE tree to TreeType enum - this fixes BUKKIT-886
By: Nathan Adams <dinnerbone@dinnerbone.com>
2012-03-02 13:21:29 +00:00
Bukkit/Spigot
d500e97598 Implemented snapshot support for 1.2.
By: Mike Primm <mike@primmhome.com>
2012-03-01 13:55:29 -06:00
Bukkit/Spigot
d94ce50c98 Added a bunch of new 1.2 entities; this partially resolves BUKKIT-872 and BUKKIT-885.
By: Nathan Adams <dinnerbone@dinnerbone.com>
2012-03-01 17:29:05 +00:00
Bukkit/Spigot
18c825222a [Bleeding] Fixed naughty plugins crashing server.
By: Wesley Wolfe <weswolf@aol.com>
2012-03-01 09:19:23 -06:00
Bukkit/Spigot
4a137ee96a Added isEmpty to BlockChangeDelegate - this implements BUKKIT-868. Also changed version to 1.2.2-R0.1-SNAPSHOT for the upcoming beta.
By: Nathan Adams <dinnerbone@dinnerbone.com>
2012-03-01 15:27:34 +00:00
Bukkit/Spigot
0d88d69fd9 Updated Bukkit API for 1.2
By: Nathan Adams <dinnerbone@dinnerbone.com>
2012-03-01 10:48:44 +00:00
Bukkit/Spigot
d657f7b29b Updated version to 1.1-R6 for RB.
By: Nathan Adams <dinnerbone@dinnerbone.com>
2012-03-01 13:52:56 +00:00
Bukkit/Spigot
398e819e5a Bumped version up to 1.1-R6-SNAPSHOT
By: Nathan Adams <dinnerbone@dinnerbone.com>
2012-03-01 13:34:50 +00:00
Bukkit/Spigot
496281a94f Updated version to 1.1-R5 for RB
By: Nathan Adams <dinnerbone@dinnerbone.com>
2012-03-01 10:54:16 +00:00
Bukkit/Spigot
b02f2bb28b We build for 1.5.
By: EvilSeph <evilseph@gmail.com>
2012-03-01 04:41:25 -05:00
Bukkit/Spigot
10cd1cbb5c [Bleeding] Added Help API. Addresses BUKKIT-863
By: rmichela <deltahat@gmail.com>
2012-03-01 00:07:05 -05:00
Bukkit/Spigot
2280c6be2b [Bleeding] Added Conversations API. Addresses BUKKIT-864
By: rmichela <deltahat@gmail.com>
2012-01-22 02:35:42 -05:00
Bukkit/Spigot
fb55ed2a78 [Bleeding] MaterialData fixes. Addresses BUKKIT-842
By: Celtic Minstrel <celtic.minstrel.ca@some.place>
2012-02-26 22:07:26 -05:00
Bukkit/Spigot
a6d03a475c [Bleeding] Added sharp() and natural() factory functions to mirror the flat() one, sharped() and flattened() functions to get a note from an existing note, a toString(), and more tests. Addresses BUKKIT-861
By: Celtic Minstrel <celtic.minstrel.ca@some.place>
2012-02-29 20:08:40 -05:00
Bukkit/Spigot
a4bbcfc4e2 [Bleeding] Allow sharping notes that aren't sharpable, and a factory method to create flat notes. Addresses BUKKIT-861
- Uses enharmonic equivalences to rewrite the note in the normalized form, E-sharp becomes F and A-flat becomes G-sharp

By: Celtic Minstrel <celtic.minstrel.ca@some.place>
2012-02-26 12:48:34 -05:00
Bukkit/Spigot
e6391643af Add missing achievements to the Achievement enum
By: Celtic Minstrel <celtic.minstrel.ca@some.place>
2012-02-26 12:25:27 -05:00
Bukkit/Spigot
15e2f69fa6 Adding/expanding documentation
By: Celtic Minstrel <celtic.minstrel.ca@some.place>
2012-02-26 12:13:30 -05:00
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
5ebb8d2b3e Revert Plugin to Interface, added PluginBase
Fixed Tests, moved TestPlugin out of messaging

By: Feildmaster <admin@feildmaster.com>
2012-02-29 18:46:09 -06:00
Bukkit/Spigot
fa6a95bc3f [Bleeding] Optimized locToBlock. Addresses BUKKIT-815
By: Wesley Wolfe <weswolf@aol.com>
2012-02-29 16:07:47 -06:00
Bukkit/Spigot
43002d0cbb Add optional prefix value to plugin.yml. Addresses BUKKIT-838
By: Aidan Matzko <amatzko48@gmail.com>
2012-02-26 18:36:03 -05:00
Bukkit/Spigot
b004c409f0 Re-added launchProjectile lost due to incorrect conflict resolution.
By: EvilSeph <evilseph@gmail.com>
2012-02-29 18:31:20 -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
da943825be Implementation of richer playEffect methods. Addresses BUKKIT-857
By: Celtic Minstrel <celtic.minstrel.ca@some.place>
2012-02-26 12:53:31 -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
93e9f175c4 Fixed null pointer exception in config.getMapList().
By: Kevin <kingersoll@gmail.com>
2012-02-28 21:20:32 -08:00
Bukkit/Spigot
38c5de3e6e Moved getVehicle, leaveVehicle and isInsideVehicle from LivingEntity to Entity. Addresses BUKKIT-811
By: TomyLobo <tomylobo@nurfuerspam.de>
2011-10-25 15:56:23 +02:00
Bukkit/Spigot
dd1bee786b [Bleeding] Added a Metadata framework for Entities, Blocks, and Worlds
This metadata implementation has the following features:

- All metadata is lazy. Metadata values are not actually computed until another plugin requests them. Memory and CPU are conserved by not computing and storing unnecessary metadata values.

- All metadata is cached. Once a metadata value is computed its value is cached in the metadata store to prevent further unnecessary computation. An invalidation mechanism is provided to flush the cache and force recompilation of metadata values.

- All metadata is stored in basic data types. Convenience methods in the MetadataValue class allow for the conversion of metadata data types when possible. Restricting metadata to basic data types prevents the accidental linking of large object graphs into metadata. Metadata is persistent across the lifetime of the application and adding large object graphs would damage garbage collector performance.

- Metadata access is thread safe. Care has been taken to protect the internal data structures and access them in a thread safe manner.

- Metadata is exposed for all objects that descend from Entity, Block, and World. All Entity and World metadata is stored at the Server  level and all Block metadata is stored at the World level.

- Metadata is NOT keyed on references to original objects - instead metadata is keyed off of unique fields within those objects. Doing this allows metadata to exist for blocks that are in chunks not currently in memory. Additionally, Player objects are keyed off of player name so that Player metadata remains consistent between logins.

- Metadata convenience methods have been added to all Entities, Players, Blocks, BlockStates, and World allowing direct access to an individual instance's metadata.

- Players and OfflinePlayers share a single metadata store, allowing player metadata to be manipulated regardless of the player's current online status.

By: rmichela <deltahat@gmail.com>
2011-12-08 00:33:33 -05: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
e7c9a43100 [Bleeding] Fixed file handle leak in /timings command. Addresses BUKKIT-853
By: Score_Under <seejay.11@gmail.com>
2012-02-25 17:39:54 +00: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
2fa5a7033a [Bleeding] Fixed MapPalette.imageToBytes to properly handle transparency. Addresses BUKKIT-852
By: SpaceManiac <tad.hardesty@platymuus.com>
2012-02-25 22:44:09 -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
4c1a926d66 Reduced excessive exception handling in NumberConversions. Addresses BUKKIT-825
This also allows, for instance, to parse complex numbers with imaginary part=0, if the according toString method omits zero components.
This also saves some unboxing (Foo.valueOf returns a wrapper, while Foo.parseFoo returns a primitive)

By: TomyLobo <tomylobo@nurfuerspam.de>
2012-02-25 16:25:42 +01:00
Bukkit/Spigot
445baa7607 Added missing BlockState functions. Addresses BUKKIT-807
By: TomyLobo <stabelweb@gmx.de>
2012-02-22 20:08:55 +01:00
Bukkit/Spigot
3b9e2f4a67 Adjust plugin enable/disable logging
By: EdGruberman <ed@rjump.com>
2012-02-15 12:11:10 -07: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