--- a/net/minecraft/world/level/chunk/ChunkSection.java +++ b/net/minecraft/world/level/chunk/ChunkSection.java @@ -25,9 +25,11 @@ private short tickingBlockCount; private short tickingFluidCount; private final DataPaletteBlock states; - private PalettedContainerRO> biomes; + // CraftBukkit start - read/write + private DataPaletteBlock> biomes; - public ChunkSection(int i, DataPaletteBlock datapaletteblock, PalettedContainerRO> palettedcontainerro) { + public ChunkSection(int i, DataPaletteBlock datapaletteblock, DataPaletteBlock> palettedcontainerro) { + // CraftBukkit end this.bottomBlockY = getBottomBlockY(i); this.states = datapaletteblock; this.biomes = palettedcontainerro; @@ -200,6 +202,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) { DataPaletteBlock> datapaletteblock = this.biomes.recreate(); int k = QuartPos.fromBlock(this.bottomBlockY());