реорганизуем chunk
This commit is contained in:
@@ -1,21 +0,0 @@
|
|||||||
/*
|
|
||||||
* DmitriyMX <dimon550@gmail.com>
|
|
||||||
* 2018-04-15
|
|
||||||
*/
|
|
||||||
package mc.core.world;
|
|
||||||
|
|
||||||
import mc.core.Location;
|
|
||||||
|
|
||||||
public interface Block {
|
|
||||||
Location getLocation();
|
|
||||||
void setLocation(Location location);
|
|
||||||
|
|
||||||
int getType();
|
|
||||||
void setType(int value);
|
|
||||||
|
|
||||||
int getMetadata();
|
|
||||||
void setMetadata(int value);
|
|
||||||
|
|
||||||
int getLight();
|
|
||||||
void setLight(int value);
|
|
||||||
}
|
|
||||||
@@ -6,9 +6,6 @@ package mc.core.world;
|
|||||||
|
|
||||||
/* 16x256x16 */
|
/* 16x256x16 */
|
||||||
public interface Chunk {
|
public interface Chunk {
|
||||||
Block getBlock(int x, int y, int z);
|
|
||||||
void setBlock(Block block);
|
|
||||||
|
|
||||||
int getBlockType(int x, int y, int z);
|
int getBlockType(int x, int y, int z);
|
||||||
void setBlockType(int x, int y, int z, int type);
|
void setBlockType(int x, int y, int z, int type);
|
||||||
|
|
||||||
@@ -20,4 +17,10 @@ public interface Chunk {
|
|||||||
|
|
||||||
int getSkyLight(int x, int y, int z);
|
int getSkyLight(int x, int y, int z);
|
||||||
void setSkyLight(int x, int y, int z, int lightLevel);
|
void setSkyLight(int x, int y, int z, int lightLevel);
|
||||||
|
|
||||||
|
int getAddition(int x, int y, int z);
|
||||||
|
void setAddition(int x, int y, int z, int value);
|
||||||
|
|
||||||
|
int getBiome(int x, int y, int z);
|
||||||
|
void setBiome(int x, int y, int z, int value);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user