2021-11-22 09:00:00 +11:00
|
|
|
--- a/net/minecraft/world/level/chunk/ChunkSection.java
|
|
|
|
+++ b/net/minecraft/world/level/chunk/ChunkSection.java
|
2024-10-23 02:15:00 +11:00
|
|
|
@@ -23,7 +23,7 @@
|
2022-06-08 02:00:00 +10:00
|
|
|
private short tickingBlockCount;
|
|
|
|
private short tickingFluidCount;
|
|
|
|
private final DataPaletteBlock<IBlockData> states;
|
|
|
|
- private PalettedContainerRO<Holder<BiomeBase>> biomes;
|
2024-10-23 02:15:00 +11:00
|
|
|
+ private DataPaletteBlock<Holder<BiomeBase>> biomes; // CraftBukkit - read/write
|
|
|
|
|
|
|
|
private ChunkSection(ChunkSection chunksection) {
|
|
|
|
this.nonEmptyBlockCount = chunksection.nonEmptyBlockCount;
|
|
|
|
@@ -33,7 +33,7 @@
|
|
|
|
this.biomes = chunksection.biomes.copy();
|
|
|
|
}
|
2022-06-08 02:00:00 +10:00
|
|
|
|
2023-06-08 01:30:00 +10:00
|
|
|
- public ChunkSection(DataPaletteBlock<IBlockData> datapaletteblock, PalettedContainerRO<Holder<BiomeBase>> palettedcontainerro) {
|
2024-10-23 02:15:00 +11:00
|
|
|
+ public ChunkSection(DataPaletteBlock<IBlockData> datapaletteblock, DataPaletteBlock<Holder<BiomeBase>> palettedcontainerro) { // CraftBukkit - read/write
|
2022-06-08 02:00:00 +10:00
|
|
|
this.states = datapaletteblock;
|
|
|
|
this.biomes = palettedcontainerro;
|
2023-06-08 01:30:00 +10:00
|
|
|
this.recalcBlockCounts();
|
2024-10-23 02:15:00 +11:00
|
|
|
@@ -196,6 +196,12 @@
|
2025-03-26 03:05:00 +11:00
|
|
|
return this.biomes.get(i, j, k);
|
2021-11-22 09:00:00 +11:00
|
|
|
}
|
|
|
|
|
|
|
|
+ // CraftBukkit start
|
2022-03-01 02:00:00 +11:00
|
|
|
+ public void setBiome(int i, int j, int k, Holder<BiomeBase> biome) {
|
2021-11-22 09:00:00 +11:00
|
|
|
+ this.biomes.set(i, j, k, biome);
|
|
|
|
+ }
|
|
|
|
+ // CraftBukkit end
|
|
|
|
+
|
2023-06-08 01:30:00 +10:00
|
|
|
public void fillBiomesFromNoise(BiomeResolver biomeresolver, Climate.Sampler climate_sampler, int i, int j, int k) {
|
2022-06-08 02:00:00 +10:00
|
|
|
DataPaletteBlock<Holder<BiomeBase>> datapaletteblock = this.biomes.recreate();
|
2025-03-26 03:05:00 +11:00
|
|
|
int l = 4;
|