From f08bedf2fe8bc5d1e09840e1ec3d9d9af36694bd Mon Sep 17 00:00:00 2001 From: Shoghi Cervantes Date: Fri, 28 Feb 2014 20:04:41 +0100 Subject: [PATCH] Added Biome methods to Level --- src/world/Level.php | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/world/Level.php b/src/world/Level.php index e961358c4..200c8ac55 100644 --- a/src/world/Level.php +++ b/src/world/Level.php @@ -313,6 +313,14 @@ class Level{ return $ret; } + public function getBiome($x, $z){ + return $this->level->getBiome((int) $x, (int) $z); + } + + public function setBiome($x, $z, $biome){ + return $this->level->getBiome((int) $x, (int) $z, $biome); + } + public function getEntities(){ return $this->entities; }