summaryrefslogtreecommitdiffstats
path: root/src/test
Commit message (Collapse)AuthorAgeLines
...
* [Bleeding] Added a Metadata framework for Entities, Blocks, and Worldsrmichela2012-02-29-4/+444
| | | | | | | | | | | | | | | | | | | | 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.
* [Bleeding] Cleaned up unsafe casts. Addresses BUKKIT-844Wesley Wolfe2012-02-29-1/+1
| | | | | | | | | | 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.
* [Bleeding] Fixed potion tests.Celtic Minstrel2012-02-25-13/+28
|
* [Bleeding] Add missing methods to Bukkit class, fix non-static methods, and ↵Celtic Minstrel2012-02-25-0/+19
| | | | add a junit test to ensure both these problems will be caught in future.
* [Bleeding] Added launchProjectile.aPunch2012-02-23-0/+5
| | | | Use launchProjectile in place of individual throwSnowball, throwEgg, and shootArrow methods
* [Bleeding] Added EntityType to replace CreatureType.Celtic Minstrel2012-02-22-0/+5
|
* [Bleeding] Added Enchantment and misc tests to ItemStack (de)serializationWesley Wolfe2012-02-19-0/+76
|
* Deprecation cleanup.Erik Broes2012-02-18-45/+0
|
* [Bleeding] Added Potions API. Fixes BUKKIT-389fullwall2012-02-10-0/+136
|
* [Bleeding] Added Vanish API for hiding players from each other.Travis Watkins2012-02-03-0/+12
| | | | | | | Adds Player.hidePlayer, Player.showPlayer, and Player.canSee for managing what players are hidden from a player. When someone is hidden from a player the player cannot see them in the user list or /list and they cannot /tell them so they appear to be completely gone from the server.
* Add some testingErik Broes2012-01-29-29/+491
|
* Add Player.setBedSpawnLocation(Location). Thanks md_5Erik Broes2012-01-17-0/+4
|
* [Bleeding] Changed event system into a new, much faster design. Huge thanks ↵Nathan Adams2012-01-17-5/+5
| | | | to @zml2008 & @lahwran.
* [Bleeding] Added Plugin.getLogger() which returns a java.util.Logger that ↵rmichela2012-01-17-0/+5
| | | | | | prefixes messages with the plugin name. Note: the server when enabling or disabling a plugin will now by default log this.
* Added ChatColor.MAGIC, changed to char based values and deprecated old ↵Nathan Adams2012-01-16-0/+58
| | | | methods. Added unit tests for ChatColor
* Generic cleaningErik Broes2012-01-15-40/+39
|
* Configurations now properly support lists of serializable objects, and ↵Nathan Adams2012-01-15-0/+29
| | | | ItemStack is properly serializable. Big thanks to GICodeWarrior for the PR. This fixes BUKKIT-425
* Added Player set/getAllowFlight methods. Thanks to Qala for the PR.Nathan Adams2012-01-15-0/+8
|
* Fix unambiguous importErik Broes2012-01-15-1/+0
|
* Added entity.playEffect, thanks to main-- in an (unfortunately old) PR.Nathan Adams2012-01-14-10/+5
|
* Implemented new Plugin Message API - see ↵Nathan Adams2012-01-13-0/+1038
| | | | http://dinnerbone.com/blog/2012/01/13/minecraft-plugin-channels-messaging/
* Fixed YamlConfiguration creating empty lines when reading a file with no ↵Nathan Adams2012-01-08-4/+25
| | | | contents, and made it trim the initial newlines of any existing config header
* Generic cleanup of warnings, whitespace and style.Erik Broes2011-12-25-106/+100
|
* Configuration methods .getX (int/double/etc) now try to cast existing values ↵Nathan Adams2011-12-12-2/+14
| | | | where possible. This fixes BUKKIT-290
* Removed redundant TestEnum fileNathan Adams2011-11-13-1/+0
|
* Added createSection(String path, Map<String, object> map)Feildmaster2011-11-05-1/+14
|
* Added helper methods such as getStringList to ConfigurationSectionNathan Adams2011-10-26-1/+17
|
* Fixed issues with loading YamlConfigurations with typed keysNathan Adams2011-10-26-4/+6
|
* Added new FileConfigurationOptions.copyHeader, defaulting to true. Copies ↵Nathan Adams2011-10-12-52/+74
| | | | the header from default config, if there is one.
* Loading a FileConfiguration (Yaml/) should remember the previously saved headerNathan Adams2011-10-12-0/+19
|
* YamlConfiguration now correctly writes extra blank lines at the end if requestedNathan Adams2011-10-12-2/+16
|
* Fixed removing entries in the new Configuration (via set(x, null))Nathan Adams2011-10-11-0/+8
|
* Small javadoc cleanupNathan Adams2011-10-10-2/+0
|
* Added new Configuration classesDinnerbone2011-10-10-0/+845