summaryrefslogtreecommitdiffstats
path: root/src/test/java
Commit message (Collapse)AuthorAgeLines
* Update to Minecraft 1.11md_52016-11-17-2/+2
|
* BUILDTOOLS-251: Make much of Bukkit locale independentmd_52016-06-26-1/+1
|
* Add method to check configuration path existence, ignoring defaults.FakeNeth2016-04-09-0/+12
|
* SPIGOT-2013 Added Comparator/Hopper material, enhanced Dioderyanbennitt2016-03-26-0/+109
|
* SPIGOT-1682: Fixed block data for Beetrootryanbennitt2016-03-26-0/+62
|
* SPIGOT-1464: Fixed setting Mushroom facesryanbennitt2016-03-26-0/+28
|
* SPIGOT-1638 / SPIGOT-1673: Rework Potions APIt00thpick12016-03-12-170/+0
|
* SPIGOT-1389: Fixed issues with setting tree species by expanding APIryanbennitt2016-03-01-0/+173
|
* SPIGOT-1393: Fixed door direction maskryanbennitt2016-01-12-0/+61
|
* SPIGOT-918: Add constructor for DyeColor to Dyet7seven7t2015-09-15-0/+1
|
* Fix an issue with the potion testThinkofdeath2015-07-24-16/+38
|
* SPIGOT-893: Fix bridge method registering generic listeners twiceJonas Konrad2015-05-18-0/+49
|
* Rewrite BukkitMirrorTestWesley Wolfe2014-06-03-6/+62
|
* Add unit tests for org.bukkit.util.StringUtilWesley Wolfe2014-01-04-0/+147
|
* Pulling all pending Bukkit-JavaDoc changesWesley Wolfe2013-12-15-289/+295
| | | | A special thanks goes to @aerouk for almost all of the changes found here.
* Add Location.setDirection(Vector). Adds BUKKIT-4862Wesley Wolfe2013-12-11-0/+196
| | | | | | | | | | This commit adds an additional method to Location to set the direction of facing. Included are a set of unit tests that ensure the consistency of getDirection and setDirection using a set of cardinal directions and arbituary data points. Javadocs were also added to pitch and yaw methods that explain the unit and points of origin.
* Update Update Bukkit to 1.7.2mbax2013-11-30-38/+8
|
* [BREAKING] Use event class instead of event for timings. Fixes BUKKIT-4664Score_Under2013-08-07-0/+56
| | | | | | | | | | | | | | | TimedRegisteredListener uses a reference to the first event fired. This causes a memory leak in the server for any references that event has. This changes TimedRegisteredListener to only store a reference to the class of the event. This change is intentionally a breaking change, as it is an obscure part of the API. A non-breaking change would require the leak to be maintained or an immediate update for any plugins using the method, as it would be an indirect break. A unit test is also included to check behavior of shared superclass functionality.
* Add ConfigurationSerializable-Serializable compatibility. Adds BUKKIT-4662Wesley Wolfe2013-08-06-0/+173
| | | | | | | | | | This commit adds a comaptibility layer for use between ConfigurationSerializable and Java Serializable, such that when using the Bukkit object streams, any ConfigurationSerializable acts as if it implements Serializable for purposes of that wrapped stream. Included are a set of unit tests for the stream with a check for backward compatibility across versions.
* Improve speed and memory use of FixedMetadataValue. Fixes BUKKIT-1460crast2013-04-04-13/+25
| | | | | | | | | | | | FixedMetadataValue currently just extends LazyMetadataValue with a value that never changes. While this works it is a lot of unneeded overhead that causes FixedMetadataValue to be a lot slower and use a lot more memory than one would expect. To correct this we store the value directly in FixedMetadataValue and override the the appropriate methods to use it. Ideally we would modify FixedMetadataValue to no longer extend LazyMetadataValue as this would give a very large memory savings. However, this is not currently done for backwards compatibility reasons.
* Refactor common metadata code into base class. Fixes BUKKIT-3624crast2013-04-04-0/+97
| | | | | | Implementing the MetadataValue interface is significant work due to having to provide a large amount of conversion stub methods. This commit adds a new optional abstract base class to aid in implementation.
* Test PluginManager.removePermissionEdGruberman2013-03-11-25/+129
| | | | | | | | | | | | | | | Static methods are death to testability. However, irrelevant static methods can be negotiated with until a later time in which they can be removed. When instantiating a new Permission object, static calls are made to the Bukkit class during a recalculatePermissibles logic path. This recalculatePermissibles call should probably be moved appropriately, but until the time such testing can be accomplished itself, these tests work around that situation by simply verifying the static Bukkit server references are satisfied since what is called as a result is irrelevant currently. This commit also updates a few other tests for PluginManagerTest to work towards the standard of using the Hamcrest unit testing library.
* Added negative id check to Material.getMaterial(int). Fixes BUKKIT-3414MikeMatrix2013-01-15-0/+1
| | | | Negative id values would try to access the array out of bounds and throw an java.lang.ArrayIndexOutOfBoundsException.
* Clarify dye and wool color datas in DyeColor. Addresses BUKKIT-2786Wesley Wolfe2013-01-05-5/+60
| | | | | | | | | | | | 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 ItemMeta factory and interfaces. This adds BUKKIT-15Wesley Wolfe2012-12-17-109/+366
| | | | | | Included with ItemMeta is a new serializable class Color. PotionEffects are now serializable.
* Cache material data constructors. Fixes BUKKIT-2980Darth Android2012-11-24-9/+5
| | | | | | 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 a tab completion API for chat messages. Adds BUKKIT-2607Wesley Wolfe2012-10-17-0/+28
| | | | | | This implementation provides access to a (mutable) list and the base message. Also provided is a convenience method for getting the last 'token' in the provided string.
* Add tab-completion API. Fixes BUKKIT-2181. Adds BUKKIT-2602Score_Under2012-10-16-0/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | CommandMap contains a method that will auto-complete commands appropriately. Before the first space, it searches for commands of which the sender has permission. After the first space, it delegates to the individual command. Vanilla commands contain implementations to mimic vanilla implementation. Exception would be give, that allows for name matching; a feature we already allowed as part of the command is now supported for auto-complete as well. Plugin commands can get a tab completer set to delegate the completion for. If no tab completer is set, it can check the executor to see if it implements the tab completion interface. It will also attempt to chain calls if null gets returned from these interfaces. Plugins also implement the new TabCompleter interface, to add ease-of-use for plugin developers, similar to the onCommand() method. The default command implementation simply searches for player names. To help facilitate command completion, a utility class was added with two functions. One checks two strings, to see if the specified string starts with (ignoring case) the second. The other method uses the first to selectively copy elements from one collection to another.
* Change Player usage in unit tests to proxiesWesley Wolfe2012-08-10-767/+47
|
* Add API to get a players experience to level (getExpToLevel). Implements ↵feildmaster2012-07-11-0/+4
| | | | | | BUKKIT-1906 This is the total experience one needs to gain a level.
* Add an isValid() method to Entity. Addresses BUKKIT-810TomyLobo2012-06-28-0/+4
|
* Add LivingEntity.hasLineOfSight. Addresses BUKKIT-1255TomyLobo2012-06-23-0/+4
|
* Support asynchronous events; Addresses BUKKIT-1212Wesley Wolfe2012-06-13-0/+185
|
* Optimize ChatColor.getLastColors.Travis Watkins2012-05-16-0/+10
| | | | | | | | ChatColor searches from the start to the end of a string for chat format characters but this always has to search the entire string. By starting from the end of the string and working backwards we can stop searching once we find a color code or a reset code as any previous formatting is wiped out by these.
* Fix createSection getting sections from itself. Fixes BUKKIT-1513feildmaster2012-04-14-0/+21
|
* [Bleeding] Removing the last metadata item for a key now sets ↵rmichela2012-03-28-0/+9
| | | | hasMetadata(key) to false. Addresses BUKKIT-1380
* [Bleeding] MetadataBase now properly takes the metadata key into account ↵rmichela2012-03-28-0/+7
| | | | when computing hasMetadata(). Addresses BUKKIT-1211
* Added missing tests to TestPlayer.EvilSeph2012-03-22-0/+8
|
* [Bleeding] Fixed some issues with no-effect potions, and added more potion ↵Celtic Minstrel2012-03-21-30/+54
| | | | tests. Fixes BUKKIT-1251
* [Bleeding] Added ChatColor.translateAlternateColorCodes(). Addresses BUKKIT-1191rmichela2012-03-16-0/+8
|
* Updated tests with isBlocking().EvilSeph2012-03-14-0/+4
|
* Added Enchantment.conflictsWith() and EnchantmentTarget.includes(). ↵Celtic Minstrel2012-03-13-0/+5
| | | | Addresses BUKKIT-1159 and addresses BUKKIT-1160
* [Bleeding] ChatPaginator now preserves the color of a line after wrapping ↵rmichela2012-03-08-37/+46
| | | | the line of text. Fixes BUKKIT-1048
* [Bleeding] Added ConversationAbandonedEvent and supporting infrastructure. ↵rmichela2012-03-08-0/+11
| | | | 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
* [Bleeding] Added Help API. Addresses BUKKIT-863rmichela2012-03-01-0/+161
|
* [Bleeding] Added Conversations API. Addresses BUKKIT-864rmichela2012-03-01-0/+381
|
* [Bleeding] Added sharp() and natural() factory functions to mirror the ↵Celtic Minstrel2012-02-29-2/+58
| | | | flat() one, sharped() and flattened() functions to get a note from an existing note, a toString(), and more tests. Addresses BUKKIT-861
* Revert Plugin to Interface, added PluginBaseFeildmaster2012-02-29-31/+7
| | | | Fixed Tests, moved TestPlugin out of messaging
* [Bleeding] Inventory framework and events. Addresses BUKKIT-856Celtic Minstrel2012-02-29-0/+39
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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).
* Implementation of richer playEffect methods. Addresses BUKKIT-857Celtic Minstrel2012-02-29-0/+4
|