Skip to content

Commit

Permalink
Add setSeed method to WorldProperties
Browse files Browse the repository at this point in the history
I think this was originally skipped as it does cause some nasty generation
errors at the edge of currently generated chunks. But some plugins which
are drastically modifying chunk generation may not care about this and
could use this functionality.
  • Loading branch information
Deamon5550 committed Mar 11, 2017
1 parent 4fe3fff commit 43b286d
Showing 1 changed file with 10 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,16 @@ public interface WorldProperties extends DataSerializable {
*/
long getSeed();

/**
* Sets the seed of this world.
*
* <p>Warning: this may cause the edge of currently generated chunks to no
* longer align with newly generated chunks.</p>
*
* @param seed The new world seed
*/
void setSeed(long seed);

/**
* Gets the number of ticks which have occurred since the world was created.
*
Expand Down

0 comments on commit 43b286d

Please sign in to comment.