PocketMine-MP  1.4 - API 1.10.0
 All Classes Namespaces Functions Variables Pages
ChunkSection.php
1 <?php
2 
3 /*
4  *
5  * ____ _ _ __ __ _ __ __ ____
6  * | _ \ ___ ___| | _____| |_| \/ (_)_ __ ___ | \/ | _ \
7  * | |_) / _ \ / __| |/ / _ \ __| |\/| | | '_ \ / _ \_____| |\/| | |_) |
8  * | __/ (_) | (__| < __/ |_| | | | | | | | __/_____| | | | __/
9  * |_| \___/ \___|_|\_\___|\__|_| |_|_|_| |_|\___| |_| |_|_|
10  *
11  * This program is free software: you can redistribute it and/or modify
12  * it under the terms of the GNU Lesser General Public License as published by
13  * the Free Software Foundation, either version 3 of the License, or
14  * (at your option) any later version.
15  *
16  * @author PocketMine Team
17  * @link http://www.pocketmine.net/
18  *
19  *
20 */
21 
22 namespace pocketmine\level\format;
23 
24 interface ChunkSection{
25 
29  public function getY();
30 
38  public function getBlockId($x, $y, $z);
39 
46  public function setBlockId($x, $y, $z, $id);
47 
55  public function getBlockData($x, $y, $z);
56 
63  public function setBlockData($x, $y, $z, $data);
64 
76  public function getBlock($x, $y, $z, &$blockId, &$meta = null);
77 
87  public function getFullBlock($x, $y, $z);
88 
98  public function setBlock($x, $y, $z, $blockId = null, $meta = null);
99 
107  public function getBlockSkyLight($x, $y, $z);
108 
115  public function setBlockSkyLight($x, $y, $z, $level);
116 
124  public function getBlockLight($x, $y, $z);
125 
132  public function setBlockLight($x, $y, $z, $level);
133 
142  public function getBlockIdColumn($x, $z);
143 
152  public function getBlockDataColumn($x, $z);
153 
162  public function getBlockSkyLightColumn($x, $z);
163 
172  public function getBlockLightColumn($x, $z);
173 
174  public function getIdArray();
175 
176  public function getDataArray();
177 
178  public function getSkyLightArray();
179 
180  public function getLightArray();
181 
182 }
getBlock($x, $y, $z, &$blockId, &$meta=null)
setBlock($x, $y, $z, $blockId=null, $meta=null)
setBlockSkyLight($x, $y, $z, $level)