--- a/net/minecraft/world/level/chunk/ChunkSection.java +++ b/net/minecraft/world/level/chunk/ChunkSection.java @@ -23,9 +23,11 @@ private short tickingBlockCount; private short tickingFluidCount; private final DataPaletteBlock states; - private PalettedContainerRO> biomes; + // CraftBukkit start - read/write + private DataPaletteBlock> biomes; - public ChunkSection(DataPaletteBlock datapaletteblock, PalettedContainerRO> palettedcontainerro) { + public ChunkSection(DataPaletteBlock datapaletteblock, DataPaletteBlock> palettedcontainerro) { + // CraftBukkit end this.states = datapaletteblock; this.biomes = palettedcontainerro; this.recalcBlockCounts(); @@ -188,6 +190,12 @@ return (Holder) this.biomes.get(i, j, k); } + // CraftBukkit start + public void setBiome(int i, int j, int k, Holder biome) { + this.biomes.set(i, j, k, biome); + } + // CraftBukkit end + public void fillBiomesFromNoise(BiomeResolver biomeresolver, Climate.Sampler climate_sampler, int i, int j, int k) { DataPaletteBlock> datapaletteblock = this.biomes.recreate(); boolean flag = true;