Commit Graph

1108 Commits

Author SHA1 Message Date
TomyLobo
7a48899d2d 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
b0bb7aaa66 Added missing BlockState functions. Addresses BUKKIT-807 2012-02-27 17:52:44 -05:00
EdGruberman
cf2b0b5247 Adjust plugin enable/disable logging 2012-02-26 15:45:17 -05:00
Sam Wilson
884a2fe4c8 Add a CreateReason to PortalCreateEvent. Addresses BUKKIT-833 2012-02-26 15:19:29 -05:00
zml2008
e891176aa7 Added service register and unregister events. Addresses BUKKIT-816 2012-02-26 12:15:36 -05:00
Celtic Minstrel
c7508cd097 [Bleeding] Add constructor to BlockFromToEvent for dragon egg teleportation. Addresses BUKKIT-828 2012-02-25 19:10:28 -05:00
Celtic Minstrel
c69d99f0fa [Bleeding] Fixed potion tests. 2012-02-25 18:06:20 -05:00
Celtic Minstrel
9b5feab9c8 [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. 2012-02-25 16:59:27 -05:00
Celtic Minstrel
27d98788cc [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
2012-02-25 02:49:21 -05:00
Celtic Minstrel
66edb2e5f7 [Bleeding] Deprecate the pointless Potion.Tier enum in favour of a numeric level. Addresses BUKKIT-818 2012-02-25 02:49:04 -05:00
Feildmaster
4ed32f8c67 [Bleeding] Fixed EntityType errors. Fixes BUKKIT-800 2012-02-23 16:10:07 -05:00
Wesley Wolfe
24d0df5830 [Bleeding] Fix deserialization for unsafe enchantments. Fixes BUKKIT-793 2012-02-23 07:12:44 -05:00
aPunch
c0e2ade335 [Bleeding] Added launchProjectile.
Use launchProjectile in place of individual throwSnowball, throwEgg, and shootArrow methods
2012-02-23 05:54:16 -05:00
Celtic Minstrel
cbb9bc0fa3 [Bleeding] Added EntityType to replace CreatureType. 2012-02-22 22:06:19 -05:00
Feildmaster
4b9f306913 [Bleeding] Added BlockGrowEvent. Addresses BUKKIT-104 2012-02-22 21:46:15 -05:00
Feildmaster
c568f49c24 [Bleeding] getHandlers() is now abstract. 2012-02-21 14:26:14 -05:00
Celtic Minstrel
3604da1f55 [Bleeding] Add ways to retrieve and delete crafting recipes and fixed some issues with the existing recipe API.
- New recipe iterator which enables deleting specific recipes
- Functions to delete all recipes or revert to vanilla recipe set
- Fixed the recipes API; you should now be able to define recipes that take brewed potions!
- Fetch all recipes that result in a specific item
2012-02-21 04:11:58 -05:00
Wesley Wolfe
870d10b077 [Bleeding] Cleanup clone methods. 2012-02-20 05:47:03 -05:00
Feildmaster
eace91d627 Improved readability for /whitelist list. Addresses BUKKIT-772 2012-02-19 10:29:14 -05:00
Feildmaster
ca71be0228 [Bleeding] Event no longer implements Serializable. 2012-02-19 04:10:07 -05:00
Feildmaster
219d005e1d [Bleeding] Remove deprecated events (EndermanPickup/Place). 2012-02-19 04:10:06 -05:00
Feildmaster
b09c56d57d [Bleeding] Specify event name in exception. Addresses BUKKIT-778 2012-02-19 04:10:06 -05:00
Wesley Wolfe
08eed206b1 [Bleeding] Added Enchantment and misc tests to ItemStack (de)serialization 2012-02-19 04:10:05 -05:00
Wesley Wolfe
2131f6966e [Bleeding] Fixed class cast in ItemStack deserialization. Fixes BUKKIT-777 2012-02-19 01:22:07 -05:00
Wesley Wolfe
a294e9c246 [Bleeding] Exception cleanup. Addresses BUKKIT-774 2012-02-18 23:55:35 -05:00
Wesley Wolfe
f8804423bf [Bleeding] Skip InvocationTargetException. Addresses BUKKIT-774 2012-02-18 23:54:57 -05:00
SpaceManiac
45833c282d [Bleeding] Added ability to unregister listeners, updated javadoc and
renamed allLists. Addresses BUKKIT-773
2012-02-18 21:36:06 -05:00
Mike Primm
bdfe249fd7 Add getEntitiesByClass(Class<T>) and getEntitiesByClasses(Class<?>...), deprecate getEntitiesByClass(Class<T>...) 2012-02-18 21:36:06 -05:00
EvilSeph
9a80e7630a Fixed Validate message. 2012-02-18 15:28:33 -05:00
EvilSeph
2b137c5a9b Updated EntityTeleportEvent in line with deprecation cleanup. 2012-02-18 13:13:50 -05:00
Erik Broes
7a06777e19 Deprecation cleanup. 2012-02-18 13:05:58 -05:00
Erik Broes
52822729b0 Added RemoteServerCommandEvent. 2012-02-18 12:53:30 -05:00
fullwall
9e669d7d3d [Bleeding] Made PotionEffectTypes final, added reasons for deprecation.
Fixes BUKKIT-768 and BUKKIT-769
2012-02-18 10:48:19 -05:00
Wesley Wolfe
5cdc3b3600 [Bleeding] Update serialVersionUID. 2012-02-13 02:42:05 -05:00
Feildmaster
c098ea4b56 [Bleeding] Added ability to register and listen to SubEvents. Addresses
BUKKIT-585
2012-02-13 01:08:15 -05:00
Zeerix
622399fa17 [Bleeding] Cleanup of exceptions org.bukkit.plugin.Invalid*
Removed throwable and message, because the superclass already stores them
Added message of inner exception to the outer exception to make the first line of the stacktrace more verbose
2012-02-13 01:05:18 -05:00
mushroomhostage
c634d7acdb Allow cloning ItemStacks with unsafe enchantments. Fixes BUKKIT-621
Prevents "IllegalArgumentException: Specified enchantment cannot be applied to this itemstack").
2012-02-13 00:46:34 -05:00
Travis Watkins
a688096fc5 Fixed typos and add usage message to timings command. 2012-02-10 18:19:58 -05:00
fullwall
f229d6fe83 [Bleeding] Added Potions API. Fixes BUKKIT-389 2012-02-10 17:26:38 -05:00
EvilSeph
43815ca003 Added configurable animal and monster ticks per spawn setting. 2012-02-10 12:52:41 -05:00
EvilSeph
17517673ba Added JOCKEY and CHUNK_GEN SpawnReasons. 2012-02-10 07:17:03 -05:00
Feildmaster
6b119f2dbb [Bleeding] setLastDamageCaused to ComplexEntityPart parent. 2012-02-09 19:52:53 -05:00
md_5
4c8cd25d91 [Bleeding] Add the ability for plugins to ignore cancelled events when
using the new event system.
2012-02-09 15:51:56 -05:00
Aidan Matzko
623ddc1bdd [Bleeding] Deprecate Enderman events in favor of EntityChangeBlock 2012-02-09 11:32:12 -05:00
Wesley Wolfe
643ee73c41 [Bleeding] Implemented customizable permission messages. 2012-02-09 04:02:11 -05:00
Meaglin
c05887b956 Properly unregister plugin channels when a plugin gets disabled. 2012-02-09 03:49:51 -05:00
craftycreeper
71eb1b25bb Added EntityTeleportEvent. Fixes BUKKIT-366 2012-02-09 03:20:08 -05:00
EvilSeph
8caca5f10d Added SpawnReason.BUILD_SNOWMAN. 2012-02-08 18:27:49 -05:00
EvilSeph
4ac909792f Added RegainReason.ENDER_CRYSTAL. 2012-02-08 10:54:30 -05:00
EvilSeph
b5a19bb632 setCancelled should probably not be hard-coded to true or it could put
fernferrets in danger of self-implosion.
2012-02-05 02:01:11 -05:00