Archived
0

Chunk changes

This commit is contained in:
Forwolk
2018-07-27 08:17:19 +03:00
parent ec67dc328e
commit bf2352c747
4 changed files with 63 additions and 5 deletions

View File

@@ -17,7 +17,7 @@ import java.util.UUID;
public class FlatWorld implements World {
@Getter@Setter
private UUID worldId;
private UUID worldId = UUID.fromString("00000000-0000-0000-C000-000000000046");
@Getter
@Setter

View File

@@ -4,6 +4,8 @@
*/
package mc.world.flat;
import mc.core.block.Block;
import mc.core.world.Biome;
import mc.core.world.Chunk;
public class SimpleChunk implements Chunk {
@@ -62,12 +64,37 @@ public class SimpleChunk implements Chunk {
}
@Override
public int getBiome(int x, int z) {
public Biome getBiome(int x, int z) {
return Biome.PLAIN;
}
@Override
public void setBiome(int x, int z, Biome biome) {
}
@Override
public int getX() {
return 0;
}
@Override
public void setBiome(int x, int z, int value) {
public int getY() {
return 0;
}
@Override
public int getZ() {
return 0;
}
@Override
public Block[] getNotAirBlocks() {
return new Block[0];
}
@Override
public void setBlock(int x, int y, int z, Block block) {
}
}