Commit Graph

1122 Commits

Author SHA1 Message Date
Bukkit/Spigot
da44559df3 [Bleeding] Fixed some issues with no-effect potions, and added more potion tests. Fixes BUKKIT-1251
By: Celtic Minstrel <celtic.minstrel.ca@some.place>
2012-03-04 18:58:18 -05:00
Bukkit/Spigot
82f7680bd0 [Bleeding] Add Chest.getBlockInventory() for convenience; this always returns a single chest inventory. Addresses BUKKIT-1247
By: Celtic Minstrel <celtic.minstrel.ca@some.place>
2012-03-19 15:02:10 -04:00
Bukkit/Spigot
35852775ed [Bleeding] Add iterator() with starting index. Addresses BUKKIT-1246
By: Celtic Minstrel <celtic.minstrel.ca@some.place>
2012-03-17 10:37:22 -04:00
Bukkit/Spigot
1d06f749fb [Bleeding] Added way to get/set if an Iron Golem was player created. Addresses BUKKIT-1229
By: aPunch <alexpuncochar@yahoo.com>
2012-03-08 20:22:11 -06:00
Bukkit/Spigot
7688cbaf4e [Bleeding] Add ExpBottleEvent; Addresses BUKKIT-888
By: Wesley Wolfe <weswolf@aol.com>
2012-03-20 02:06:59 -05:00
Bukkit/Spigot
5bcc6d2903 [Bleeding] Moved HelpTopicComparator to Bukkit.jar. Addresses BUKKIT-1193
By: rmichela <deltahat@gmail.com>
2012-03-16 03:42:01 -04:00
Bukkit/Spigot
a7679c24c3 [Bleeding] Added ChatColor.translateAlternateColorCodes(). Addresses BUKKIT-1191
By: rmichela <deltahat@gmail.com>
2012-03-16 00:40:47 -04:00
Bukkit/Spigot
41c45c2342 [Bleeding] Added automatically generated plugin-level sub-indexes to the master help index. Addresses BUKKIT-1180
By: rmichela <deltahat@gmail.com>
2012-03-15 02:27:35 -04:00
Bukkit/Spigot
04e48703d6 Aesthetic changes to the /help command.
By: rmichela <deltahat@gmail.com>
2012-03-15 02:26:07 -04:00
Bukkit/Spigot
0466d12a75 [Bleeding] Added option to remove entire plugins from the help index using the help.yml file. Addresses BUKKIT-1178
By: rmichela <deltahat@gmail.com>
2012-03-14 23:38:59 -04:00
Bukkit/Spigot
f80d579c7b [Bleeding] Add Inventory.{get,set}MaxStackSize(). Addresses BUKKIT-1076
By: Celtic Minstrel <celtic.minstrel.ca@some.place>
2012-03-14 00:02:20 -04:00
Bukkit/Spigot
86b97ec79e [Bleeding] Make InventoryView.setItem(-999, item) drop the item on the ground by default.
By: Celtic Minstrel <celtic.minstrel.ca@some.place>
2012-03-13 22:28:07 -04:00
Bukkit/Spigot
ade2f5568b [Bleeding] CraftItemEvent.getInventory() now returns CraftingInventory for convenience.
By: Celtic Minstrel <celtic.minstrel.ca@some.place>
2012-03-12 23:11:49 -04:00
Bukkit/Spigot
0635b1f496 [Bleeding] Made ItemStack constructors not default to an amount of 0. Fixes BUKKIT-610
By: Celtic Minstrel <celtic.minstrel.ca@some.place>
2012-03-12 16:59:12 -04:00
Bukkit/Spigot
e3b0a0b98c [Bleeding] Added DoubleChest wrapper so that DoubleChestInventory can return something other than null. Addresses BUKKIT-995
By: Celtic Minstrel <celtic.minstrel.ca@some.place>
2012-03-12 16:46:47 -04:00
Bukkit/Spigot
681a13dec1 [Bleeding] Added ProjectileLaunchEvent. Addresses BUKKIT-284
By: Celtic Minstrel <celtic.minstrel.ca@some.place>
2012-03-12 12:45:28 -04:00
Bukkit/Spigot
d1ea1be2c2 [Bleeding] Clean up and clarify javadocs on new generator methods.
By: Mike Primm <mike@primmhome.com>
2012-03-14 21:18:55 -05:00
Bukkit/Spigot
1cbbdebfe3 [Bleeding] Lazily calculate permissions. Addresses BUKKIT-1122
By: Wesley Wolfe <weswolf@aol.com>
2012-03-10 15:05:59 -06:00
Bukkit/Spigot
a9dd81a309 [Bleeding] Reworked OBP.Permission. Addresses BUKKIT-1120 and addresses BUKKIT-1121
By: Wesley Wolfe <weswolf@aol.com>
2012-03-10 15:03:41 -06:00
Bukkit/Spigot
71a60b4c11 [Bleeding] More lenient command creation from plugin.yml. Fixes BUKKIT-1093
By: Wesley Wolfe <weswolf@aol.com>
2012-03-10 13:11:21 -06:00
Bukkit/Spigot
c0a94420f6 Updated tests with isBlocking().
By: EvilSeph <evilseph@gmail.com>
2012-03-14 01:35:43 -04:00
Bukkit/Spigot
2cfe0f658a Added Enchantment.conflictsWith() and EnchantmentTarget.includes(). Addresses BUKKIT-1159 and addresses BUKKIT-1160
By: Celtic Minstrel <celtic.minstrel.ca@some.place>
2012-03-12 15:33:19 -04:00
Bukkit/Spigot
3bfc8591ab [Bleeding] Added Player.isBlocking(). Addresses BUKKIT-858
By: Celtic Minstrel <celtic.minstrel.ca@some.place>
2012-03-12 10:54:30 -04:00
Bukkit/Spigot
200f973bcd [Bleeding] Added EntityBreakDoorEvent. Fixes BUKKIT-1134
By: feildmaster <admin@feildmaster.com>
2012-03-10 18:42:17 -06:00
Bukkit/Spigot
d27b4e05d6 Updated version to 1.2.3-R0.3-SNAPSHOT for development towards next release.
By: EvilSeph <evilseph@gmail.com>
2012-03-11 06:20:29 -04:00
Bukkit/Spigot
3eb6315444 Updated version to 1.2.3-R0.2 in pom.xml for beta.
By: EvilSeph <evilseph@gmail.com>
2012-03-11 03:55:43 -04:00
Bukkit/Spigot
a4ec97483e [Bleeding] Add getWorldType() and getGenerateStructures() methods to Bukkit and Server. Fixes BUKKIT-855
By: Mike Primm <mike@primmhome.com>
2012-03-10 01:27:38 -06:00
Bukkit/Spigot
b891ec330b [Bleeding] Added support for amending help topic visibility permissions in help.yml. Addresses BUKKIT-1113
By: rmichela <deltahat@gmail.com>
2012-03-10 18:07:56 -05:00
Bukkit/Spigot
430de62323 [Bleeding] Correct handling of blank lines in ChatPaginator.
By: zml2008 <zach@zachsthings.com>
2012-03-10 13:40:05 -08:00
Bukkit/Spigot
944fe0c27d [Bleeding] Implemented command aliases in help. Addresses BUKKIT-1028
By: rmichela <deltahat@gmail.com>
2012-03-10 16:16:33 -05:00
Bukkit/Spigot
2a35131c2a [Bleeding] Moved DefaultHelpTopic and GenericCommandHelpTopic to public bukkit api.
By: rmichela <deltahat@gmail.com>
2012-03-10 14:43:22 -05:00
Bukkit/Spigot
bb3ac03fcc [Bleeding] Added support for linking custom CommandExecutor types to a HelpTopicFactory. Fixes BUKKIT-1027
By: rmichela <deltahat@gmail.com>
2012-03-09 01:17:17 -05:00
Bukkit/Spigot
dc73238490 [Bleeding] Add new sub-event for target goals, and DEFEND_VILLAGE TargetReason. Fixes BUKKIT-935
By: feildmaster <admin@feildmaster.com>
2012-03-08 18:26:46 -06:00
Bukkit/Spigot
2a716ddd7e Made Ocelot implement isSitting() and setSitting(). Fixes BUKKIT-993
By: EvilSeph <evilseph@gmail.com>
2012-03-09 15:01:28 -05:00
Bukkit/Spigot
da80921d52 [Bleeding] Added getting the hostname a player used to log in. Addresses BUKKIT-984
By: SpaceManiac <tad.hardesty@platymuus.com>
2012-03-03 12:39:14 -06:00
Bukkit/Spigot
5e614ba44b [Bleeding] Update generator interface for new generate methods. Addresses BUKKIT-874
By: Mike Primm <mike@primmhome.com>
2012-03-08 23:45:28 -06:00
Bukkit/Spigot
862648f1e7 Made zombie invasions fire CreatureSpawn event. Fixes BUKKIT-1090
By: EvilSeph <evilseph@gmail.com>
2012-03-08 22:10:17 -05:00
Bukkit/Spigot
2b3f74b32a Made iron golems fire CreatureSpawn event. Fixes BUKKIT-1089
By: EvilSeph <evilseph@gmail.com>
2012-03-08 21:45:53 -05:00
Bukkit/Spigot
b9310ad9c5 [Bleeding] Correct errors in LongGrass and MonsterEggs materials. Addresses BUKKIT-1083
By: Mike Primm <mike@primmhome.com>
2012-03-08 12:38:46 -06:00
Bukkit/Spigot
839a674c9b Fix incorrect entity ID for iron golem. Addresses BUKKIT-1088
By: Celtic Minstrel <celtic.minstrel.ca@some.place>
2012-03-05 12:28:54 -05:00
Bukkit/Spigot
ce4d959ab2 Add missing JUNGLE TreeSpecies. Fixes BUKKIT-973
By: Celtic Minstrel <celtic.minstrel.ca@some.place>
2012-03-05 12:29:09 -05:00
Bukkit/Spigot
99569c1767 [Bleeding] Added missing NPE protection to removeMetadata(). Fixes BUKKIT-933
By: rmichela <deltahat@gmail.com>
2012-03-05 22:33:22 -05:00
Bukkit/Spigot
9bca84ee5b [Bleeding] ChatPaginator now preserves the color of a line after wrapping the line of text. Fixes BUKKIT-1048
By: rmichela <deltahat@gmail.com>
2012-03-06 01:15:00 -05:00
Bukkit/Spigot
c90c0c1716 [Bleeding] Help command should properly wrap command text - at least for english. Fixes BUKKIT-939
By: rmichela <deltahat@gmail.com>
2012-03-05 23:35:29 -05:00
Bukkit/Spigot
9f6f624e1d [Bleeding] Add APIs for editing biome data. Addresses BUKKIT-1075
By: Mike Primm <mike@primmhome.com>
2012-03-04 10:40:27 -06:00
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
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
ed0584f930 [Bleeding] Fixed potion tests.
By: Celtic Minstrel <celtic.minstrel.ca@some.place>
2012-02-25 17:57:42 -05:00
Bukkit/Spigot
e1b9154af1 [Bleeding] Add missing methods to Bukkit class, fix non-static methods, and add a junit test to ensure both these problems will be caught in future.
By: Celtic Minstrel <celtic.minstrel.ca@some.place>
2012-02-25 12:39:10 -05:00
Bukkit/Spigot
716821eebc [Bleeding] Add ability for the Potion class to represent no-effect
potions. Addresses BUKKIT-817

- Potion's type can be null
- Add Potion.setType()
- New Potion constructors which do not take a PotionType parameter
- Potion constructor chainers splash() and extend() added
- Add PotionType.getMaxLevel() and PotionType.isInstant()
- Add PotionType.WATER which is a very special case
- Make PotionType.getDamageValue() public

By: Celtic Minstrel <celtic.minstrel.ca@some.place>
2012-02-24 23:18:13 -05:00