Archived
0

уточнение алгоритма сериализации чанков (ChunkDataPacket)

This commit is contained in:
2018-08-16 11:40:04 +03:00
parent 54992d8b59
commit e17acb812b
7 changed files with 95 additions and 26 deletions

View File

@@ -4,12 +4,17 @@
*/
package mc.world.flat;
import mc.core.world.Biome;
import mc.core.world.World;
import mc.core.world.block.Block;
import mc.core.world.block.BlockFactory;
import mc.core.world.block.BlockType;
import mc.core.world.chunk.Chunk;
import mc.core.world.chunk.ChunkSection;
import java.lang.ref.Reference;
import java.lang.ref.WeakReference;
public class SimpleChunkSection implements ChunkSection {
@Override
public int getSkyLight(int x, int y, int z) {
@@ -19,7 +24,6 @@ public class SimpleChunkSection implements ChunkSection {
@Override
public void setSkyLight(int x, int y, int z, int lightLevel) {
}
@Override
@@ -29,7 +33,11 @@ public class SimpleChunkSection implements ChunkSection {
@Override
public void setAddition(int x, int y, int z, int value) {
}
@Override
public Biome getBiome(int localX, int localZ) {
return Biome.PLAINS;
}
@Override
@@ -49,7 +57,6 @@ public class SimpleChunkSection implements ChunkSection {
@Override
public void setBlock(Block block) {
}
@Override