summaryrefslogtreecommitdiffstats
path: root/src/main
Commit message (Collapse)AuthorAgeLines
* Moved all specific minecart entities to sub-package.Wesley Wolfe2013-03-16-33/+107
| | | | | | | | | | | | | | | | | | | This change is breaking for the new API for 1.5, including the interfaces for the three new Minecart types and the name of the previously TNT_MINECART material. This change also deprecates the two previous specific minecart types located in the org.bukkit.entity package. This deprecation is not a breaking change and will still be internally supported. Each minecart type has new javadoc to be slightly more descriptive. Included with this are specific references to the interface for each respective EntityType entry. Another package-info.java file has been included as well. All specific minecart types extend minecart, each with a more descriptive name. The naming will also follow the old convention. In addition, the minecart with no specific designation is now more closely referred to as a rideable minecart.
* Use proper naming convention for boolean methods.Travis Watkins2013-03-15-1/+1
|
* Update Bukkit for Minecraft 1.5Travis Watkins2013-03-15-4/+107
|
* Removed superfluous recalculation call; Fixes BUKKIT-3728Jeffrey Wardian2013-03-12-2/+0
| | | | | | | | | The permission attachment interface provides two methods each for setting and unsetting permissions. Each one also provides an extra call to the recalculatePermissions() method on the permissible, which degrades performance. This commit removes the duplicate call to recalculate permissions.
* Convert name to lower case for removePermission; Fixes BUKKIT-3726Max A2013-03-11-2/+2
| | | | | | | Permissions are stored as lower case names and referenced as such in all appropriate methods but removePermission. This changes removePermission to also convert names to lower case to be consistent with the rest of the API.
* Add PlayerItemConsumeEvent. Adds BUKKIT-2349Travis Watkins2013-03-02-0/+75
|
* Pulling all pending Bukkit-JavaDoc changesWesley Wolfe2013-02-22-14/+292
|
* Fix ClassCastException for malformed plugin.yml. Fixes BUKKIT-3563Wesley Wolfe2013-02-03-2/+9
| | | | | | If the plugin.yml gets loaded but wasn't in the form of a map, the server would crash. This safely checks to see if it can be cast, throwing invalid description if it cannot.
* Fix invalid integers in spawnpoint command. Fixes BUKKIT-3509feildmaster2013-01-26-5/+19
| | | | | getInteger returns min value on illegal number formats, so we change behavior to throw an exception when requested.
* Only use TravelAgent if supplied; Addresses BUKKIT-3466EdGruberman2013-01-24-1/+1
| | | | If there is no TravelAgent assigned, it can not be used.
* Don't try listing something that may not exist. Fixes BUKKIT-3471feildmaster2013-01-23-0/+2
| | | | | The player name may not be provided, in which case the command will fail hard.
* Improve javadoc in 26 files.feildmaster2013-01-22-144/+253
| | | | | | Addresses: BUKKIT-1643, BUKKIT-1868, BUKKIT-1846, BUKKIT-2632, BUKKIT-3196, BUKKIT-3187, BUKKIT-3198, BUKKIT-3200, BUKKIT-3201 and BUKKIT-3417.
* [Bleeding] Add experimental support for entity portal travelingEdGruberman2013-01-19-2/+107
| | | | | | | | | EntityPortalEvent is called when an entity is about to portal to a new location. This event is cancellable on top of being able to change the exit location. EntityPortalExitEvent is called when exiting the portal, allowing for adjustment of the exit velocity.
* 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.