1026 Commits

Author SHA1 Message Date
EvilSeph
6ee08f7498 Updated version to 1.2.3-R0.1 in pom.xml for beta. 2012-03-04 03:02:53 -05:00
Nathan Adams
1cf208fa0b Fixed javadoc typo, it should read: "celticminstrel is a poopy head." 2012-03-03 02:26:13 +00:00
Nathan Adams
c724cf177a Added three new effects for zombies nomming on doors. This adds BUKKIT-961 2012-03-03 02:22:22 +00:00
Wesley Wolfe
e86aed077e [Bleeding] Fixed crafting enchanted items, fixes BUKKIT-602 2012-03-02 21:01:41 -05:00
Nathan Adams
bfe455e1b6 Added Villager API for getting/setting Profession. This adds BUKKIT-887 2012-03-03 01:58:30 +00:00
Nathan Adams
0a9cf32d3a Fixed Ocelot.Type lookup - this fixes BUKKIT-952 2012-03-03 00:46:27 +00:00
Nathan Adams
f98afa6a74 Changed version from 1.2.2-R0.1 to 1.2.3-R0.1 2012-03-02 19:29:17 +00:00
Nathan Adams
9b9a618a5f Added VERSION_1_1 WorldType 2012-03-02 18:38:12 +00:00
Nathan Adams
3087f99fdf Added JUNGLE tree to TreeType enum - this fixes BUKKIT-886 2012-03-02 13:21:29 +00:00
Mike Primm
ff9a7fc5be Implemented snapshot support for 1.2. 2012-03-02 00:24:05 -05:00
Nathan Adams
039088e974 Added a bunch of new 1.2 entities; this partially resolves BUKKIT-872 and BUKKIT-885. 2012-03-01 18:01:40 +00:00
Wesley Wolfe
b61d208c3c [Bleeding] Fixed naughty plugins crashing server. 2012-03-01 10:36:07 -05:00
Nathan Adams
3c93c1643d Added isEmpty to BlockChangeDelegate - this implements BUKKIT-868. Also changed version to 1.2.2-R0.1-SNAPSHOT for the upcoming beta. 2012-03-01 15:28:06 +00:00
Nathan Adams
d6625f693c Updated Bukkit API for 1.2 2012-03-01 14:25:51 +00:00
Nathan Adams
10dc6448f8 Updated version to 1.1-R6 for RB. 2012-03-01 13:52:56 +00:00
Nathan Adams
8ebdf64683 Bumped version up to 1.1-R6-SNAPSHOT 2012-03-01 13:34:50 +00:00
Nathan Adams
57fd343504 Updated version to 1.1-R5 for RB 2012-03-01 10:54:16 +00:00
EvilSeph
5bf2aa9a9f We build for 1.5. 2012-03-01 04:41:25 -05:00
rmichela
b8444288a9 [Bleeding] Added Help API. Addresses BUKKIT-863 2012-03-01 04:28:21 -05:00
rmichela
463856b8a0 [Bleeding] Added Conversations API. Addresses BUKKIT-864 2012-03-01 03:52:18 -05:00
Celtic Minstrel
24f43ae5a6 [Bleeding] MaterialData fixes. Addresses BUKKIT-842 2012-03-01 01:31:00 -05:00
Celtic Minstrel
2a1fab3d57 [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 2012-02-29 22:43:35 -05:00
Celtic Minstrel
674ce00538 [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
2012-02-29 22:40:41 -05:00
Celtic Minstrel
37e90d74e7 Add missing achievements to the Achievement enum 2012-02-29 21:31:36 -05:00
Celtic Minstrel
ac51658471 Adding/expanding documentation 2012-02-29 21:31:33 -05:00
Celtic Minstrel
d839b6d639 Fix javadoc errors/warnings 2012-02-29 21:31:28 -05:00
Feildmaster
0a106995d2 Revert Plugin to Interface, added PluginBase
Fixed Tests, moved TestPlugin out of messaging
2012-02-29 20:59:56 -05:00
Wesley Wolfe
337860b7c0 [Bleeding] Optimized locToBlock. Addresses BUKKIT-815 2012-02-29 20:13:05 -05:00
Aidan Matzko
2fc2f8109c Add optional prefix value to plugin.yml. Addresses BUKKIT-838 2012-02-29 19:58:05 -05:00
EvilSeph
953dad94c2 Re-added launchProjectile lost due to incorrect conflict resolution. 2012-02-29 18:31:20 -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
Celtic Minstrel
0db822f609 Implementation of richer playEffect methods. Addresses BUKKIT-857 2012-02-29 15:02:59 -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
Kevin
a3038f4615 Fixed null pointer exception in config.getMapList(). 2012-02-29 13:26:26 -05:00
TomyLobo
0b50669c8b Moved getVehicle, leaveVehicle and isInsideVehicle from LivingEntity to Entity. Addresses BUKKIT-811 2012-02-29 13:26:25 -05:00
rmichela
cd732ee3f7 [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.
2012-02-29 19:16:04 +01:00
Wesley Wolfe
ca7aab6f4f [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.
2012-02-29 10:23:16 -05:00
Score_Under
eb3c161180 [Bleeding] Fixed file handle leak in /timings command. Addresses BUKKIT-853 2012-02-29 09:52:57 -05:00
Wesley Wolfe
3440a1f2ee [Bleeding] Fixes deadlock issue and generic usage. Fixes BUKKIT-844 and fixes BUKKIT-854 2012-02-29 09:50:03 -05:00
SpaceManiac
fd612066e2 [Bleeding] Fixed MapPalette.imageToBytes to properly handle transparency. Addresses BUKKIT-852 2012-02-29 01:53:29 -05:00
TomyLobo
1876c12a79 Narrowed down the return type of most EntityEvent subclasses for convenience. Addresses BUKKIT-809 2012-02-28 21:57:17 -05:00
TomyLobo
93521af608 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.
2012-02-28 21:57:16 -05:00
TomyLobo
07f964813c 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)
2012-02-28 17:20:51 -05:00
TomyLobo
7d51bc7834 Added missing BlockState functions. Addresses BUKKIT-807 2012-02-27 17:52:44 -05:00
EdGruberman
7e382b73bb Adjust plugin enable/disable logging 2012-02-26 15:45:17 -05:00
Sam Wilson
ffb24d94b0 Add a CreateReason to PortalCreateEvent. Addresses BUKKIT-833 2012-02-26 15:19:29 -05:00
zml2008
56d628be91 Added service register and unregister events. Addresses BUKKIT-816 2012-02-26 12:15:36 -05:00
Celtic Minstrel
eb8632fca7 [Bleeding] Add constructor to BlockFromToEvent for dragon egg teleportation. Addresses BUKKIT-828 2012-02-25 19:10:28 -05:00
Celtic Minstrel
2ba3ab3fb8 [Bleeding] Fixed potion tests. 2012-02-25 18:06:20 -05:00