102 Commits

Author SHA1 Message Date
Wesley Wolfe
9620ac7d3e Deprecate magic values 2013-08-28 01:44:09 -05:00
Edmond Poon
12f5b169e0 Pulling all pending Bukkit-JavaDoc changes 2013-08-03 21:46:30 -04:00
Edmond Poon
02d11a0525 Pulling all pending Bukkit-JavaDoc changes 2013-04-02 00:11:22 -04:00
Wesley Wolfe
90faffc339 Pulling all pending Bukkit-JavaDoc changes 2013-02-22 22:49:38 -06:00
feildmaster
05c2c55fce Improve javadoc in 26 files.
Addresses:
BUKKIT-1643, BUKKIT-1868, BUKKIT-1846, BUKKIT-2632, BUKKIT-3196,
BUKKIT-3187, BUKKIT-3198, BUKKIT-3200, BUKKIT-3201 and BUKKIT-3417.
2013-01-22 16:41:00 -06:00
feildmaster
6cf0821f0a Add API for creating explosions without damaging blocks. Fixes BUKKIT-3061 2012-11-27 19:35:03 -06:00
Travis Watkins
eca0b6524f Add API for ambient mob spawn limit. Adds BUKKIT-2765 2012-10-31 13:01:29 -04:00
feildmaster
0eb215cd8f Add API for managing and using GameRules. Adds BUKKIT-2757 2012-10-31 03:44:26 -04:00
feildmaster
5cc04e5398 Add API for Sound, and playing the sounds for Worlds and Players. Adds BUKKIT-1430, BUKKIT-1226 and BUKKIT-2019 2012-08-21 17:15:48 -05:00
Mike Primm
88e837ae5d Add isChunkInUse() to World. Addresses BUKKIT-2330 2012-08-19 07:56:39 -04:00
feildmaster
11fd4acb56 Add interface for spawning FallingBlocks and correctly spawn a FallingBlock with the spawn(Location, FallingBlock.class) method. Adds BUKKIT-2282
Also add FallingBlock and methods.

Deprecated FallingSand to emphasize FallingBlock.
2012-08-14 07:39:44 -05:00
V10lator
f735129254 Deprecate spawnCreature and add spawnEntity. Addresses BUKKIT-1168 2012-06-23 10:57:59 -05:00
feildmaster
062a3df78d Javadoc updates
Fixes BUKKIT-1653, Fixes BUKKIT-1383 and Fixes BUKKIT-1644
2012-06-03 05:40:54 -05:00
Travis Watkins
78f7c8038d Add API for managing mob spawn limits per-world. Fixes BUKKIT-1565 2012-04-23 21:53:52 -04:00
Mike Primm
1bf2a25506 [Bleeding] Add APIs for editing biome data. Addresses BUKKIT-1075 2012-03-08 01:52:01 -05:00
Celtic Minstrel
ac51658471 Adding/expanding documentation 2012-02-29 21:31:33 -05:00
Celtic Minstrel
d839b6d639 Fix javadoc errors/warnings 2012-02-29 21:31:28 -05:00
Celtic Minstrel
0db822f609 Implementation of richer playEffect methods. Addresses BUKKIT-857 2012-02-29 15:02:59 -05:00
rmichela
cd732ee3f7 [Bleeding] Added a Metadata framework for Entities, Blocks, and Worlds
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.
2012-02-29 19:16:04 +01:00
Celtic Minstrel
ce4a390b00 [Bleeding] Added EntityType to replace CreatureType. 2012-02-22 22:06:19 -05:00
Mike Primm
d87fb0e92b Add getEntitiesByClass(Class<T>) and getEntitiesByClasses(Class<?>...), deprecate getEntitiesByClass(Class<T>...) 2012-02-18 21:36:06 -05:00
Erik Broes
049a7cc1d0 Deprecation cleanup. 2012-02-18 13:05:58 -05:00
EvilSeph
ec01da91bb Added configurable animal and monster ticks per spawn setting. 2012-02-10 12:52:41 -05:00
Eric Stokes
67301a1d29 Added 'generate-structure' setting support and WorldCreator property.
Fixes BUKKIT-655 and BUKKIT-592
2012-01-29 13:06:23 -05:00
Mike Primm
b52aa71501 [Bleeding] Added: <T extends Entity> Collection<T> World.getEntitiesByClass(Class<T>... classes) 2012-01-17 19:44:41 +01:00
Nathan Adams
2e547c5b33 Added a World.getWorldType() method 2012-01-15 17:43:53 +00:00
Erik Broes
88c17a7f86 Generic cleaning 2012-01-15 14:37:43 +01:00
Nathan Adams
ce4f4af087 Implemented new Plugin Message API - see http://dinnerbone.com/blog/2012/01/13/minecraft-plugin-channels-messaging/ 2012-01-13 08:53:14 +00:00
Erik Broes
b9fca3c04d Generic cleanup of warnings, whitespace and style. 2011-12-25 16:02:30 +01:00
Nathan Adams
8cb9352259 Added world.getWorldFolder, server.getWorldContainer 2011-11-25 03:46:47 +00:00
Nathan Adams
7c6e0e8bb1 BREAKING CHANGE: Renamed Environment.SKYLANDS to THE_END 2011-11-21 22:38:06 +00:00
EvilSeph
233d314482 Added Difficulty API. 2011-10-03 10:11:46 -04:00
Dinnerbone
fe4f4c5f58 Many javadoc fixes thanks to Celtic Minstrel 2011-09-25 02:56:40 +01:00
Dinnerbone
ef0834736a Added world.getSeaLevel() 2011-09-25 01:05:32 +01:00
Dinnerbone
dc3379f6da Added new autosave methods to World 2011-09-02 20:46:44 +01:00
EvilSeph
6f5747d8b8 Revert "Interface for changing the view distance." 2011-08-15 14:26:42 -04:00
Andrew Ardill
1c4aba8d1f Interface for changing the view distance.
Can be changed server wide, per world and per player.
Only server wide changes are kept between server restarts.

Setting the server or world view distance should fail if the
view distance is not between 3 and 15
2011-08-15 15:11:34 +10:00
Rigby
fd2b5f3ec5 Implemented per world setting to keep the spawn in memory or not. 2011-08-05 14:37:56 -04:00
EvilSeph
bf3af40b2d Added various utility methods to make chunk handling easier. Thanks Meaglin! 2011-07-28 00:32:28 -04:00
Dinnerbone
8836bf8419 Added world.getMaxHeight (currently static until 1.8) 2011-07-20 00:03:16 +01:00
Erik Broes
6ff9f7cad6 Remove superfluous javadocs 2011-07-17 17:20:22 +02:00
Erik Broes
c771cb355c Remove some deprecated methods in World 2011-07-17 17:02:37 +02:00
Dinnerbone
4c36e7903e Added helper methods World.getHighestBlockAt, Block.isEmpty, Block.isLiquid. Added methods to safely retrieve biome/temperature/humidity data for a block without generating the block. 2011-07-13 10:39:41 +01:00
Tahg
5851edd31f uuid changes 2011-07-13 00:15:47 -04:00
Rigby
3f2bbab7e6 Implements World UID. 2011-07-07 13:56:29 -04:00
EvilSeph
3b7f86ba5b Added API to allow plugins to set the world's spawn flags. 2011-06-19 06:34:07 -04:00
EvilSeph
79815f7d9a Added ChunkSnapShot improvements. Thanks mikeprimm!
Added support for biome data to chunk snapshot
Added method for returning empty chunk snapshot (for ungenerated chunks)
2011-06-17 09:21:56 -04:00
sunkid
ad19b8736b Added a general spawn method. 2011-06-17 01:57:12 -04:00
sunkid
91ae9cbf92 Added setFire option to createExplosion methods. 2011-06-17 01:42:26 -04:00
Erik Broes
0ac6a0bfe6 Generic cleanup 2011-06-12 12:49:08 +02:00