|
4 | 4 | import se.llbit.chunky.chunk.BlockPalette; |
5 | 5 | import se.llbit.chunky.chunk.ChunkData; |
6 | 6 | import se.llbit.chunky.chunk.EmptyChunkData; |
7 | | -import se.llbit.chunky.chunk.GenericChunkData; |
8 | 7 | import se.llbit.chunky.map.IconLayer; |
9 | 8 | import se.llbit.chunky.map.SurfaceLayer; |
10 | 9 | import se.llbit.chunky.world.region.ImposterCubicRegion; |
11 | | -import se.llbit.math.QuickMath; |
12 | | -import se.llbit.nbt.*; |
13 | | -import se.llbit.util.BitBuffer; |
| 10 | +import se.llbit.nbt.CompoundTag; |
| 11 | +import se.llbit.nbt.ListTag; |
| 12 | +import se.llbit.nbt.SpecificTag; |
| 13 | +import se.llbit.nbt.Tag; |
14 | 14 | import se.llbit.util.Mutable; |
15 | | -import se.llbit.util.NotNull; |
16 | 15 |
|
17 | 16 | import java.util.HashSet; |
18 | 17 | import java.util.Map; |
19 | 18 | import java.util.Set; |
20 | 19 |
|
21 | 20 | import static se.llbit.chunky.world.World.VERSION_1_12_2; |
22 | 21 |
|
| 22 | +/** |
| 23 | + * An implementation of a cube wrapper for pre flattening cubic chunks (1.10, 1.11, 1.12) |
| 24 | + * |
| 25 | + * Represents an infinitely tall column of 16x16x16 Cubes |
| 26 | + */ |
23 | 27 | public class ImposterCubicChunk extends Chunk { |
24 | 28 | private final CubicWorld world; |
25 | 29 |
|
@@ -100,7 +104,7 @@ private void loadSurfaceCubic(Map<Integer, Map<String, Tag>> data, ChunkData chu |
100 | 104 |
|
101 | 105 | int[] heightmapData = extractHeightmapDataCubic(null, chunkData); |
102 | 106 | updateHeightmap(heightmap, position, chunkData, heightmapData, palette, yMax); |
103 | | - surface = new SurfaceLayer(world.currentDimension(), chunkData, palette, yMin, yMax); |
| 107 | + surface = new SurfaceLayer(world.currentDimension(), chunkData, palette, yMin, yMax, heightmapData); |
104 | 108 | } |
105 | 109 |
|
106 | 110 | private int[] extractHeightmapDataCubic(Map<String, Tag> cubeData, ChunkData chunkData) { |
|
0 commit comments