summaryrefslogtreecommitdiffstats
path: root/src/main
Commit message (Collapse)AuthorAgeLines
...
* Added negative id check to Material.getMaterial(int). Fixes BUKKIT-3414MikeMatrix2013-01-15-1/+1
| | | | Negative id values would try to access the array out of bounds and throw an java.lang.ArrayIndexOutOfBoundsException.
* Switch DyeColor firework Colors. Fixes BUKKIT-3382Wesley Wolfe2013-01-05-16/+16
| | | | | The firework colors were based on the respective wool data values. This means the colors were in reverse order.
* Clarify dye and wool color datas in DyeColor. Addresses BUKKIT-2786Wesley Wolfe2013-01-05-33/+92
| | | | | | | | | | | | DyeColor used the wool data for getData(), which is very misleading based on class name. The old method has been deprecated and replaced with getWoolData() and getDyeData() for the appropriate types of data values. The MaterialData classes Dye and Wool were updated appropriately, especially Dye innapropriately using a DyeColor data value compensation. Unit tests were added for the new methods, as well as the getColor on Dye and Wool.
* Add experience methods for PlayerFishEvent. Adds BUKKIT-3348feildmaster2013-01-01-0/+23
|
* Don't allow nulls in PlayerRespawnEvent. Fixes BUKKIT-2571feildmaster2012-12-29-0/+4
|
* Add method to get defult leather color. Adds BUKKIT-3203Wesley Wolfe2012-12-27-3/+12
| | | | | The default leather color is already used internally in place of null. The javadocs were updated appropriately to indicate as such.
* Use correct warning in JavaPluginLoader. Fixes BUKKIT-3315Wesley Wolfe2012-12-27-2/+2
| | | | | The warning message printed with the stack traces on the deprecated methods mistakingly use the wrong method signature in the description.
* Add methods to set and reset max health. Adds BUKKIT-266feildmaster2012-12-23-40/+61
|
* Remove duplicate message for console. Fixes BUKKIT-3267Travis Watkins2012-12-23-4/+0
|
* Add firework api to get and set Firework ItemMetafeildmaster2012-12-21-0/+14
|
* Add Skull BlockState and Type enum. Adds BUKKIT-3258meiskam2012-12-21-0/+71
|
* Add enchantment storage meta. Adds BUKKIT-3237Wesley Wolfe2012-12-21-0/+65
| | | | | | | | | | | Books can 'store' enchantments that can be applied to other items later. These enchantments exist seperately of enchantments that actually effect the item, and are as stated 'stored' in the book instead of the book being enchanted. The meta is generically named as the concept could be applied to other item types later, such as a enchantment scroll. All of the methods mimic those in the base meta, but instead specify 'stored' in each method name.
* Add FireworkEffect and respective item metas. Adds BUKKIT-3236Wesley Wolfe2012-12-21-24/+595
| | | | | | | | | FireworkEffect is an immutable class that requires the builder pattern to construct, to reduce ambiguity and help make code uses more readable. FireworkMeta contains a list of effects, as well as a flight height. FireworkEffectMeta contains a single effect for charges.
* Add API to allow plugins to request players switch to a texture pack. Adds ↵Wojciech Stryjewski2012-12-20-0/+23
| | | | | | | | | | BUKKIT-2579 The setTexturePack method causes the player's client to download and switch to a texture pack specified by a URL. Note: Players can disable server textures on their client, in which case this API would not affect them.
* Update Bukkit to Minecraft 1.4.6feildmaster2012-12-20-1/+72
|
* Apply commandBlockOutput to broadcastMessage. Addresses BUKKIT-3117feildmaster2012-12-18-1/+7
|
* Refactor get/setChestPlate to Chestplate. Addresses BUKKIT-3189feildmaster2012-12-18-2/+2
| | | | This method was inconsistent with previous methods.
* Fix MaterialData directions being incorrect. Fixes BUKKIT-3160feildmaster2012-12-18-86/+113
| | | | | | | | Prior to 49690f9, BlockFaces were mostly correct in their respective MaterialData classes. However, a lot of things were not updated since implementation and broke without being addressed. This fixes any discrepancies with Block data.
* Deprecate methods in JavaPluginLoader and PluginClassLoaderWesley Wolfe2012-12-18-35/+172
| | | | | | | | | | | | | | These methods are unnecessarily exposed. They are specific to a type of implementation for the class loaders, and should have no external use. Because these methods are exposed, it limits the versatility to change how the internal class loading system works, including an inherent class loader leak for some situations. They are now replaced with internal, package-private methods. The public facing methods will print a stack trace the first time one is activated. Extending the classes also produces a stack trace, to indicate that extension is not actively supported.
* Clarify functionality in Inventory. Fixes BUKKIT-3097Wesley Wolfe2012-12-17-31/+46
| | | | | | | | | | Mainly javadoc changes to be specific in functionality and outcomes. This is mixed with specifying that null Material should throw IllegalArgumentException instead of the previous undefined NullPointerException. Included is a clarification on how contains(ItemStack, int) works, and a new method containsAtLeast(ItemStack, int) for counting the number of a specific item.
* Add ItemMeta factory and interfaces. This adds BUKKIT-15Wesley Wolfe2012-12-17-79/+1289
| | | | | | Included with ItemMeta is a new serializable class Color. PotionEffects are now serializable.
* Add Material methods. Adds BUKKIT-3161, BUKKIT-3162, BUKKIT-3163,Wesley Wolfe2012-12-14-22/+232
| | | | | | | | | | | | BUKKIT-3164 This adds an isFlammable method, to indicate if a block can catch fire. This adds an isTransparent method, to check if light can pass through. This adds an isOccluding method, to check if it fully blocks vision. This adds an isBurnable method, to indicate if a block can burn away.
* Add EntityEquipment API. Adds BUKKIT-3103feildmaster2012-12-10-0/+231
|
* Add isSolid() to Material. Adds BUKKIT-3131Wesley Wolfe2012-12-09-0/+118
| | | | | A 'solid' material indicates that it is a block and cannot be passed through.
* An executor set to null will now use the plugin. Fixes BUKKIT-3127feildmaster2012-12-09-1/+1
|
* Add FurnaceExtractEvent. Addresses BUKKIT-2114feildmaster2012-12-09-32/+96
| | | | Added a "BlockExpEvent" to hold experience and the handlers for the events
* Provide a faster way to get a location. Adds BUKKIT-3120Travis Watkins2012-12-07-0/+24
| | | | | | | | | | | | | | | | Currently when a plugin wants to get the location of something it calls getLocation() which returns a new Location object. In some scenarios this can cause enough object creation/destruction churn to be a significant overhead. For this cases we add a method that updates a provided Location object so there is no object creation done. This allows well written code to work on several locations with only a single Location object getting created. Providing a more efficient way to set a location was also looked at but the current solution is the fastest we can provide. You are not required to create a new Location object every time you want to set something's location so, with proper design, you can set locations with only a single Location object being created.
* Add API to get and set collar colors of wolvesfeildmaster2012-12-05-0/+15
|
* Deprecate the scheduleAsync methods.Wesley Wolfe2012-12-05-0/+6
| | | | | The name is misleading, as it can be misconstrued to mean "a sync" instead of properly understanding it as "an async"
* Add getShutdownMessage() and stop command arguments. Adds BUKKIT-3031feildmaster2012-12-05-2/+23
|
* [BREAKING] EntityChangeBlockEvent can be non-living. Adds BUKKIT-3078Wesley Wolfe2012-12-04-10/+24
| | | | Non-living entities can change blocks, specifically falling blocks. This change is a small source break, but mainly a byte-code break (requires plugins to recompile).
* Add API for controlling mob despawn away from players. Adds BUKKIT-2986Travis Watkins2012-12-04-0/+15
|
* [BREAKING] Update BlockFace directions. Fixes BUKKIT-1567, BUKKIT-3069feildmaster2012-12-01-237/+237
| | | | | | | If you use BlockFace in any way, to compensate the directionals being incorrect, you can still have backwards compatibility if you add in the handling in your plugin: boolean legacyBlockFace = BlockFace.NORTH().getModX() == -1; (and then handle it accordingly) If you didn't special case your directions to fix what's being fixed here... Hurray! Your plugin should now work.
* Add data values for entity change block event. Adds BUKKIT-3077, BUKKIT-3076Wesley Wolfe2012-11-30-0/+15
|
* Add API for creating explosions without damaging blocks. Fixes BUKKIT-3061feildmaster2012-11-27-0/+14
|
* Make RECORD_12 a record. Fixes BUKKIT-3023Wesley Wolfe2012-11-24-1/+1
| | | | Record 12 was missed when added to the Material enum.
* Cache material data constructors. Fixes BUKKIT-2980Darth Android2012-11-24-23/+22
| | | | | | Reobtaining a constructor is not a trivial operation, this change makes the Material enum store the respective constructors for each MaterialData. Additionally 'fixed' the material tests to use proper generics.
* Add DamageCause for FallingBlocks. Adds BUKKIT-2781feildmaster2012-11-20-2/+10
|
* Add ability to pass 'max' as 'level' for EnchantCommand.EvilSeph2012-11-18-4/+7
|
* Update sounds for Minecraft 1.4.2 changes. Fixes BUKKIT-2849Karl Fritsche2012-11-17-5/+46
|
* Add API for getting and setting Skeleton and Zombie types. Fixes BUKKIT-2818James Clarke2012-11-17-2/+84
|
* Add default EnchantCommand. Tim, The Enchanter - I AM DEATH! Adds BUKKIT-2961EvilSeph2012-11-17-0/+177
|
* Essential core commands shouldn't be overriden. Fixes BUKKIT-1546EvilSeph2012-11-17-4/+4
|
* Add aliases to TellCommand to bring us in line with Vanilla behaviour.EvilSeph2012-11-15-1/+1
|
* Remove unnecessary Overrides in Default commands.EvilSeph2012-11-15-145/+0
|
* Made KillCommand set the player health to 0 to allow it to work in Creative. ↵EvilSeph2012-11-15-1/+1
| | | | Fixes BUKKIT-2949
* Added proper feedback to default commands.EvilSeph2012-11-15-16/+21
|
* Make some JavaPlugin methods final. Fixes BUKKIT-2916Wesley Wolfe2012-11-13-22/+20
| | | | | | These methods were never intended to be overwritten, and bukkit relies on their internal functionality. Additionally, the methods were inlined in JavaPlugin, but the finality maintains intention.
* Update Bukkit for Minecraft 1.4.4 changes.Travis Watkins2012-11-13-0/+1
|
* Add yaw and rotation to default TeleportCommand. Fixes BUKKIT-2774EvilSeph2012-10-31-7/+11
|