DeeperWorld
DeeperWorld copied to clipboard
Feature/deeper world#25
This PR completes DeeperWorld#25
- Add depth calculation to the WorldManager API in the form of getDepthFor functions
- I changed the algorithm a bit compared to how it was in MineInAbyss, to allow for any variation in the sections configuration. The MineInAbyss logic only worked if all sections were configured along the same horizontal axis.
- Introduce a height property to the Section class
- Add a "depth" command that returns the depth of a given player (or the executor, if it is a player)
I'll change MineInAbyss to use the new methods after this PR is merged.