| Commit message (Collapse) | Author | Age | Lines |
... | |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
|
|
|
| |
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.
|
| |
|
|
|
|
| |
add a junit test to ensure both these problems will be caught in future.
|
|
|
|
| |
Use launchProjectile in place of individual throwSnowball, throwEgg, and shootArrow methods
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
| |
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.
|
| |
|
| |
|
|
|
|
| |
to @zml2008 & @lahwran.
|
|
|
|
|
|
| |
prefixes messages with the plugin name.
Note: the server when enabling or disabling a plugin will now by default log this.
|
|
|
|
| |
methods. Added unit tests for ChatColor
|
| |
|
|
|
|
| |
ItemStack is properly serializable. Big thanks to GICodeWarrior for the PR. This fixes BUKKIT-425
|
| |
|
| |
|
| |
|
|
|
|
| |
http://dinnerbone.com/blog/2012/01/13/minecraft-plugin-channels-messaging/
|
|
|
|
| |
contents, and made it trim the initial newlines of any existing config header
|
| |
|
|
|
|
| |
where possible. This fixes BUKKIT-290
|
| |
|
| |
|
| |
|
| |
|
|
|
|
| |
the header from default config, if there is one.
|
| |
|
| |
|
| |
|
| |
|
|
|