Commit Graph
122 Commits
Author SHA1 Message Date
EvilSeph 8ea590bbcc Revert "Implements interface for changing the view distance." 2011-08-15 14:27:02 -04:00
Andrew Ardill 12e377501e Implements interface for changing the view distance.
Uses default view distance if player's view distance is not set

Throws an illegal argument exception if view distance is set too high
or too low.

Pushes notifications of server and world view distance changes to the player.
Move view distance functions from PlayerManger to WorldServer.
Set player minimum view distance to 1 for now.
Reset player's 'last known' position when recalculating visible chunks.

Use per-player view distance in chunk distance checks
2011-08-15 14:57:25 +10:00
Rigby 96a0e87068 Fixed chunks being overwritten with empty chunks when the memory setting is immediately changed after a world loads. 2011-08-12 21:19:53 -04:00
Rigby 4117d6b65e Implemented per world setting to keep the spawn in memory or not. 2011-08-05 15:52:38 -04:00
EvilSeph 5b7b46593c Added various utility methods to make chunk handling easier. Thanks Meaglin! 2011-07-28 00:32:58 -04:00
Dinnerbone 7ad853a51b Implemented maxheight 2011-07-20 00:03:47 +01:00
Erik Broes cc9ccc8976 Removed some old deprecated code and clean up javadocs + warnings 2011-07-17 18:14:45 +02:00
Dinnerbone e4edbf288d Don't use weak/soft references for keys, attempt to lessen memory impact further 2011-07-16 02:55:54 +01:00
Dinnerbone a507add4ea Fixed huge memory leak (gigabytes/hour!) by placing a bukkit under the ceiling. 2011-07-15 20:52:54 +01:00
Dinnerbone 3d28c67c08 Implemented helper methods + new biome methods 2011-07-13 10:44:03 +01:00
Tahg d0f904fc50 uuid changes 2011-07-13 00:06:07 -04:00
Rigby 9ced39421f Implements a World UID. 2011-07-07 14:20:05 -04:00
Erik Broes a98c7ba2c7 Massive renaming update in nms. If you bypassed Bukkit, you will likely break.
Also minimized all the nms diffs and generic cleanups all around.
2011-06-27 00:47:03 +02:00
EvilSeph 79337d3aab Added SpawnReasons to CreatureSpawn events. Thanks winsock! 2011-06-21 16:37:07 -04:00
sunkid 214d412505 Added the abitility to spawn fireballs. 2011-06-20 16:26:22 -04:00
sunkid 6cf0fc4a7b No more ghastly pigs! 2011-06-19 18:39:47 -04:00
sk89q 57d677d1e8 Fixed CraftWorld.spawn() having all the inheritance checks backwards. 2011-06-19 12:59:36 -07:00
EvilSeph cb7b82d452 Added API to allow plugins to set the world's spawn flags. 2011-06-19 06:34:22 -04:00
sunkid 546e1306d8 Fix for spawnMinecart. 2011-06-18 21:56:42 -04:00
EvilSeph 10fb5dc843 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:23:19 -04:00
EvilSeph cc1b0a005c Added per player time support. Thanks eisental, Shamebot and needspeed10! 2011-06-17 02:29:16 -04:00
sunkid a70a5abc3d Added implementation of general spawn method. 2011-06-17 01:57:33 -04:00
sunkid a8817b7bd1 Implemented extended createExplosion methods. 2011-06-17 01:44:32 -04:00
Dinnerbone 7e22faf9d6 Moved some craftbukkit stuff down from WorldServer to World; should fix a few NPEs during generation, and saves on a lot of casting 2011-06-17 03:06:45 +01:00
Erik Broes 9adc03abab Generic cleanup of the org.bukkit.craftbukkit classes. 2011-06-12 12:51:54 +02:00
sk89q e5c6b329d5 Whoops, need this commit too. 2011-06-09 23:56:42 -07:00
sk89q ccabbcbf0a Added World.createExplosion() that takes a Location, instead of just raw X, Y, Z values. 2011-06-09 23:13:38 -07:00
sk89q e45c502ec1 Moved playSound/Effect(Player, ...) to Player.playEffect(Location, ...) to be consistent, and because the code didn't really do what the Javadoc said. 2011-06-09 23:08:00 -07:00
sk89q 846bd468d4 Changed sound playing to effect dispatching, since these seem more like more like encompassing effect than mere sounds. 2011-06-09 22:57:32 -07:00
sk89q baf9a9f501 Merge branch 'sound' of https://github.com/sunkid/CraftBukkit 2011-06-09 22:38:44 -07:00
sunkid 5fe9ac362b implementations of the playSound methods 2011-06-09 12:37:27 -07:00
EvilSeph 4a0eb0a4a1 Added method to create an explosion in world. Thanks Zaraza107! 2011-06-09 04:17:19 -04:00
Dinnerbone fedcbdf256 Implemented custom chunk generators and block populators 2011-06-06 18:38:47 +01:00
Tahg 5f684ef163 fixed environments 2011-06-03 18:36:14 -04:00
Erik Broes 309846d732 Whitespace + general cleanup 2011-05-15 13:41:46 +02:00
sk89q 6cbd4cdf9e Added World.strikeLightningEffect() that does no damage. 2011-05-06 19:25:44 -07:00
Rigby f342db744a Added per world PVP setting support. 2011-05-02 00:32:26 -04:00
EvilSeph d2a4c510b3 Added events related to weather in 1.5. Thanks wizjany! 2011-04-25 19:47:25 -04:00
Rigby 5fff84c5a9 Added the ability to retrieve a world's Seed. 2011-04-25 16:49:24 -04:00
sk89q a042ee1e26 Add methods to control thunder. 2011-04-22 03:13:21 -07:00
sk89q c3ce6ce3ab Added weather control methods. 2011-04-22 02:18:13 -07:00
sk89q 6739d6d75c Added World.strikeLightning(). Also renamed WeatherStorm -> LightningStrike. 2011-04-22 01:25:55 -07:00
Erik Broes a6c8a36dce Update for 1.5_02. 2011-04-21 04:25:46 -04:00
Erik Broes 483a878b8b Update for 1.4_00_01 -- if you bypassed Bukkit, you will most likely break. 2011-04-20 19:05:14 +02:00
afforess adb13029bc Forces clients to update to the new time immediately when setTime or setFullTime is called. 2011-04-02 17:17:17 +02:00
William Bowers 325f4e0c22 Implemented the new SpawnChangeEvent in CraftWorld.setSpawnLocation() 2011-04-02 16:58:50 +02:00
Erik Broes 09cfbfbf73 Fix world.getFullTime() 2011-04-01 09:24:42 +02:00
Dinnerbone 87c36febeb Updated to Minecraft version 1.4 2011-03-31 21:40:00 +01:00
Erik Broes e9cc4bbb05 world.spawnCreature cast fix 2011-03-30 00:41:07 +02:00
Celtic Minstrel cd50683f78 World.spawnCreature now returns LivingEntity instead of Creature, to allow Ghasts and Slimes to be spawned using the command. 2011-03-26 17:52:04 +01:00