2021-11-21 23:00:00 +01:00
|
|
|
--- a/net/minecraft/world/level/chunk/ChunkSection.java
|
|
|
|
+++ b/net/minecraft/world/level/chunk/ChunkSection.java
|
2023-06-07 17:30:00 +02:00
|
|
|
@@ -23,9 +23,11 @@
|
2022-06-07 18:00:00 +02:00
|
|
|
private short tickingBlockCount;
|
|
|
|
private short tickingFluidCount;
|
|
|
|
private final DataPaletteBlock<IBlockData> states;
|
|
|
|
- private PalettedContainerRO<Holder<BiomeBase>> biomes;
|
|
|
|
+ // CraftBukkit start - read/write
|
|
|
|
+ private DataPaletteBlock<Holder<BiomeBase>> biomes;
|
|
|
|
|
2023-06-07 17:30:00 +02:00
|
|
|
- public ChunkSection(DataPaletteBlock<IBlockData> datapaletteblock, PalettedContainerRO<Holder<BiomeBase>> palettedcontainerro) {
|
|
|
|
+ public ChunkSection(DataPaletteBlock<IBlockData> datapaletteblock, DataPaletteBlock<Holder<BiomeBase>> palettedcontainerro) {
|
2022-06-07 18:00:00 +02:00
|
|
|
+ // CraftBukkit end
|
|
|
|
this.states = datapaletteblock;
|
|
|
|
this.biomes = palettedcontainerro;
|
2023-06-07 17:30:00 +02:00
|
|
|
this.recalcBlockCounts();
|
|
|
|
@@ -188,6 +190,12 @@
|
2022-02-28 16:00:00 +01:00
|
|
|
return (Holder) this.biomes.get(i, j, k);
|
2021-11-21 23:00:00 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
+ // CraftBukkit start
|
2022-02-28 16:00:00 +01:00
|
|
|
+ public void setBiome(int i, int j, int k, Holder<BiomeBase> biome) {
|
2021-11-21 23:00:00 +01:00
|
|
|
+ this.biomes.set(i, j, k, biome);
|
|
|
|
+ }
|
|
|
|
+ // CraftBukkit end
|
|
|
|
+
|
2023-06-07 17:30:00 +02:00
|
|
|
public void fillBiomesFromNoise(BiomeResolver biomeresolver, Climate.Sampler climate_sampler, int i, int j, int k) {
|
2022-06-07 18:00:00 +02:00
|
|
|
DataPaletteBlock<Holder<BiomeBase>> datapaletteblock = this.biomes.recreate();
|
2023-06-07 17:30:00 +02:00
|
|
|
boolean flag = true;
|