Package net.minecraft.world.gen.chunk
Class BlendingData
java.lang.Object
net.minecraft.world.gen.chunk.BlendingData
- Mappings:
Namespace Name named net/minecraft/world/gen/chunk/BlendingData
intermediary net/minecraft/class_6749
official ees
-
Nested Class Summary
Modifier and TypeClassDescriptionprotected static interface
protected static interface
protected static interface
static final record
-
Field Summary
Modifier and TypeFieldDescriptionprivate final List
<List<RegistryEntry<Biome>>> private static final int
private static final int
private final double[][]
protected static final int
protected static final double
private static final double
private static final int
protected static final int
protected static final int
private static final double
private static final double
(package private) static final int
private boolean
private static final int
private static final int
private final HeightLimitView
private static final int
private final double[]
-
Constructor Summary
ModifierConstructorDescriptionprivate
BlendingData
(int oldBottomSectionY, int oldTopSectionY, Optional<double[]> heights) -
Method Summary
Modifier and TypeMethodDescriptionprotected void
acceptBiomes
(int biomeX, int biomeY, int biomeZ, BlendingData.BiomeConsumer consumer) protected void
acceptCollidableBlockDensities
(int biomeX, int biomeZ, int minHalfSectionY, int maxHalfSectionY, BlendingData.CollidableBlockDensityConsumer consumer) protected void
acceptHeights
(int biomeX, int biomeZ, BlendingData.HeightConsumer consumer) private double[]
calculateCollidableBlockDensityColumn
(Chunk chunk, int chunkBlockX, int chunkBlockZ, int surfaceHeight) static @Nullable BlendingData
fromSerialized
(@Nullable BlendingData.Serialized serialized) private static double
getAboveCollidableBlockValue
(Chunk chunk, BlockPos.Mutable mutablePos) Returns1.0
if there is a collidable block below, otherwise-1
.static Set
<EightWayDirection> getAdjacentChunksWithNoise
(StructureWorldAccess access, int chunkX, int chunkZ, boolean oldNoise) static @Nullable BlendingData
getBlendingData
(ChunkRegion chunkRegion, int chunkX, int chunkZ) private int
private double
getCollidableBlockDensity
(@org.jetbrains.annotations.Nullable double[] collidableBlockDensityColumn, int halfSectionY) protected double
getCollidableBlockDensity
(int chunkBiomeX, int halfSectionY, int chunkBiomeZ) private static double
getCollidableBlockDensityBelow
(Chunk chunk, BlockPos.Mutable mutablePos) private int
getHalfSectionHeight
(int halfSectionY) protected double
getHeight
(int biomeX, int biomeY, int biomeZ) private static int
getNorthWestIndex
(int chunkBiomeX, int chunkBiomeZ) Gets the north east index for the given chunk-local biome coordinates.private int
private static int
getSouthEastIndex
(int chunkBiomeX, int chunkBiomeZ) Gets the south east index for the given chunk-local biome coordinates.private int
getSurfaceBlockY
(Chunk chunk, int blockX, int blockZ) private int
private List
<RegistryEntry<Biome>> getVerticalBiomeSections
(Chunk chunk, int chunkBlockX, int chunkBlockZ) private int
private static int
getX
(int index) private static int
getZ
(int index) private void
initBlockColumn
(int index, Chunk chunk, int chunkBlockX, int chunkBlockZ) private void
initChunkBlendingData
(Chunk chunk, Set<EightWayDirection> newNoiseChunkDirections) private static boolean
isCollidableAndNotTreeAt
(Chunk chunk, BlockPos pos) private static int
method_39355
(int int2)
-
Field Details
-
field_35514
private static final double field_35514- See Also:
- Mappings:
Namespace Name Mixin selector named field_35514
Lnet/minecraft/world/gen/chunk/BlendingData;field_35514:D
intermediary field_35514
Lnet/minecraft/class_6749;field_35514:D
official e
Lees;e:D
-
field_36280
protected static final int field_36280- See Also:
- Mappings:
Namespace Name Mixin selector named field_36280
Lnet/minecraft/world/gen/chunk/BlendingData;field_36280:I
intermediary field_36280
Lnet/minecraft/class_6749;field_36280:I
official a
Lees;a:I
-
field_35511
protected static final int field_35511- See Also:
- Mappings:
Namespace Name Mixin selector named field_35511
Lnet/minecraft/world/gen/chunk/BlendingData;field_35511:I
intermediary field_35511
Lnet/minecraft/class_6749;field_35511:I
official b
Lees;b:I
-
field_36281
protected static final int field_36281- See Also:
- Mappings:
Namespace Name Mixin selector named field_36281
Lnet/minecraft/world/gen/chunk/BlendingData;field_36281:I
intermediary field_36281
Lnet/minecraft/class_6749;field_36281:I
official c
Lees;c:I
-
field_37704
private static final double field_37704- See Also:
- Mappings:
Namespace Name Mixin selector named field_37704
Lnet/minecraft/world/gen/chunk/BlendingData;field_37704:D
intermediary field_37704
Lnet/minecraft/class_6749;field_37704:D
official f
Lees;f:D
-
field_37705
private static final double field_37705- See Also:
- Mappings:
Namespace Name Mixin selector named field_37705
Lnet/minecraft/world/gen/chunk/BlendingData;field_37705:D
intermediary field_37705
Lnet/minecraft/class_6749;field_37705:D
official g
Lees;g:D
-
field_35516
private static final int field_35516- See Also:
- Mappings:
Namespace Name Mixin selector named field_35516
Lnet/minecraft/world/gen/chunk/BlendingData;field_35516:I
intermediary field_35516
Lnet/minecraft/class_6749;field_35516:I
official h
Lees;h:I
-
BIOMES_PER_CHUNK
private static final int BIOMES_PER_CHUNK- Mappings:
Namespace Name Mixin selector named BIOMES_PER_CHUNK
Lnet/minecraft/world/gen/chunk/BlendingData;BIOMES_PER_CHUNK:I
intermediary field_35683
Lnet/minecraft/class_6749;field_35683:I
official i
Lees;i:I
-
LAST_CHUNK_BIOME_INDEX
private static final int LAST_CHUNK_BIOME_INDEX- Mappings:
Namespace Name Mixin selector named LAST_CHUNK_BIOME_INDEX
Lnet/minecraft/world/gen/chunk/BlendingData;LAST_CHUNK_BIOME_INDEX:I
intermediary field_35684
Lnet/minecraft/class_6749;field_35684:I
official j
Lees;j:I
-
CHUNK_BIOME_END_INDEX
private static final int CHUNK_BIOME_END_INDEX- Mappings:
Namespace Name Mixin selector named CHUNK_BIOME_END_INDEX
Lnet/minecraft/world/gen/chunk/BlendingData;CHUNK_BIOME_END_INDEX:I
intermediary field_35685
Lnet/minecraft/class_6749;field_35685:I
official k
Lees;k:I
-
NORTH_WEST_END_INDEX
private static final int NORTH_WEST_END_INDEX- Mappings:
Namespace Name Mixin selector named NORTH_WEST_END_INDEX
Lnet/minecraft/world/gen/chunk/BlendingData;NORTH_WEST_END_INDEX:I
intermediary field_35686
Lnet/minecraft/class_6749;field_35686:I
official l
Lees;l:I
-
SOUTH_EAST_END_INDEX_PART
private static final int SOUTH_EAST_END_INDEX_PART- Mappings:
Namespace Name Mixin selector named SOUTH_EAST_END_INDEX_PART
Lnet/minecraft/world/gen/chunk/BlendingData;SOUTH_EAST_END_INDEX_PART:I
intermediary field_35687
Lnet/minecraft/class_6749;field_35687:I
official m
Lees;m:I
-
HORIZONTAL_BIOME_COUNT
static final int HORIZONTAL_BIOME_COUNT- Mappings:
Namespace Name Mixin selector named HORIZONTAL_BIOME_COUNT
Lnet/minecraft/world/gen/chunk/BlendingData;HORIZONTAL_BIOME_COUNT:I
intermediary field_35518
Lnet/minecraft/class_6749;field_35518:I
official n
Lees;n:I
-
SURFACE_BLOCKS
- Mappings:
Namespace Name Mixin selector named SURFACE_BLOCKS
Lnet/minecraft/world/gen/chunk/BlendingData;SURFACE_BLOCKS:Ljava/util/List;
intermediary field_35519
Lnet/minecraft/class_6749;field_35519:Ljava/util/List;
official p
Lees;p:Ljava/util/List;
-
field_35513
protected static final double field_35513- See Also:
- Mappings:
Namespace Name Mixin selector named field_35513
Lnet/minecraft/world/gen/chunk/BlendingData;field_35513:D
intermediary field_35513
Lnet/minecraft/class_6749;field_35513:D
official d
Lees;d:D
-
oldHeightLimit
- Mappings:
Namespace Name Mixin selector named oldHeightLimit
Lnet/minecraft/world/gen/chunk/BlendingData;oldHeightLimit:Lnet/minecraft/world/HeightLimitView;
intermediary field_35515
Lnet/minecraft/class_6749;field_35515:Lnet/minecraft/class_5539;
official o
Lees;o:Ldhj;
-
initializedBlendingData
private boolean initializedBlendingData- Mappings:
Namespace Name Mixin selector named initializedBlendingData
Lnet/minecraft/world/gen/chunk/BlendingData;initializedBlendingData:Z
intermediary field_35690
Lnet/minecraft/class_6749;field_35690:Z
official q
Lees;q:Z
-
surfaceHeights
private final double[] surfaceHeights- Mappings:
Namespace Name Mixin selector named surfaceHeights
Lnet/minecraft/world/gen/chunk/BlendingData;surfaceHeights:[D
intermediary field_35692
Lnet/minecraft/class_6749;field_35692:[D
official r
Lees;r:[D
-
biomes
- Mappings:
Namespace Name Mixin selector named biomes
Lnet/minecraft/world/gen/chunk/BlendingData;biomes:Ljava/util/List;
intermediary field_36345
Lnet/minecraft/class_6749;field_36345:Ljava/util/List;
official s
Lees;s:Ljava/util/List;
-
collidableBlockDensities
private final transient double[][] collidableBlockDensities- Mappings:
Namespace Name Mixin selector named collidableBlockDensities
Lnet/minecraft/world/gen/chunk/BlendingData;collidableBlockDensities:[[D
intermediary field_35693
Lnet/minecraft/class_6749;field_35693:[[D
official t
Lees;t:[[D
-
-
Constructor Details
-
BlendingData
- Mappings:
Namespace Name Mixin selector named <init>
Lnet/minecraft/world/gen/chunk/BlendingData;<init>(IILjava/util/Optional;)V
intermediary <init>
Lnet/minecraft/class_6749;<init>(IILjava/util/Optional;)V
official <init>
Lees;<init>(IILjava/util/Optional;)V
-
-
Method Details
-
fromSerialized
@Nullable public static @Nullable BlendingData fromSerialized(@Nullable @Nullable BlendingData.Serialized serialized) - Mappings:
Namespace Name Mixin selector named fromSerialized
Lnet/minecraft/world/gen/chunk/BlendingData;fromSerialized(Lnet/minecraft/world/gen/chunk/BlendingData$Serialized;)Lnet/minecraft/world/gen/chunk/BlendingData;
intermediary method_61807
Lnet/minecraft/class_6749;method_61807(Lnet/minecraft/class_6749$class_9899;)Lnet/minecraft/class_6749;
official a
Lees;a(Lees$d;)Lees;
-
toSerialized
- Mappings:
Namespace Name Mixin selector named toSerialized
Lnet/minecraft/world/gen/chunk/BlendingData;toSerialized()Lnet/minecraft/world/gen/chunk/BlendingData$Serialized;
intermediary method_61806
Lnet/minecraft/class_6749;method_61806()Lnet/minecraft/class_6749$class_9899;
official a
Lees;a()Lees$d;
-
getBlendingData
@Nullable public static @Nullable BlendingData getBlendingData(ChunkRegion chunkRegion, int chunkX, int chunkZ) - Mappings:
Namespace Name Mixin selector named getBlendingData
Lnet/minecraft/world/gen/chunk/BlendingData;getBlendingData(Lnet/minecraft/world/ChunkRegion;II)Lnet/minecraft/world/gen/chunk/BlendingData;
intermediary method_39570
Lnet/minecraft/class_6749;method_39570(Lnet/minecraft/class_3233;II)Lnet/minecraft/class_6749;
official a
Lees;a(Lasp;II)Lees;
-
getAdjacentChunksWithNoise
public static Set<EightWayDirection> getAdjacentChunksWithNoise(StructureWorldAccess access, int chunkX, int chunkZ, boolean oldNoise) - Mappings:
Namespace Name Mixin selector named getAdjacentChunksWithNoise
Lnet/minecraft/world/gen/chunk/BlendingData;getAdjacentChunksWithNoise(Lnet/minecraft/world/StructureWorldAccess;IIZ)Ljava/util/Set;
intermediary method_39579
Lnet/minecraft/class_6749;method_39579(Lnet/minecraft/class_5281;IIZ)Ljava/util/Set;
official a
Lees;a(Ldif;IIZ)Ljava/util/Set;
-
initChunkBlendingData
- Mappings:
Namespace Name Mixin selector named initChunkBlendingData
Lnet/minecraft/world/gen/chunk/BlendingData;initChunkBlendingData(Lnet/minecraft/world/chunk/Chunk;Ljava/util/Set;)V
intermediary method_39572
Lnet/minecraft/class_6749;method_39572(Lnet/minecraft/class_2791;Ljava/util/Set;)V
official a
Lees;a(Ldzp;Ljava/util/Set;)V
-
initBlockColumn
- Mappings:
Namespace Name Mixin selector named initBlockColumn
Lnet/minecraft/world/gen/chunk/BlendingData;initBlockColumn(ILnet/minecraft/world/chunk/Chunk;II)V
intermediary method_39347
Lnet/minecraft/class_6749;method_39347(ILnet/minecraft/class_2791;II)V
official a
Lees;a(ILdzp;II)V
-
getSurfaceBlockY
- Mappings:
Namespace Name Mixin selector named getSurfaceBlockY
Lnet/minecraft/world/gen/chunk/BlendingData;getSurfaceBlockY(Lnet/minecraft/world/chunk/Chunk;II)I
intermediary method_39349
Lnet/minecraft/class_6749;method_39349(Lnet/minecraft/class_2791;II)I
official a
Lees;a(Ldzp;II)I
-
getAboveCollidableBlockValue
Returns1.0
if there is a collidable block below, otherwise-1
.- Parameters:
mutablePos
- will be moved down by one block by this method- Returns:
1.0
if there is a collidable block below, otherwise-1
- Mappings:
Namespace Name Mixin selector named getAboveCollidableBlockValue
Lnet/minecraft/world/gen/chunk/BlendingData;getAboveCollidableBlockValue(Lnet/minecraft/world/chunk/Chunk;Lnet/minecraft/util/math/BlockPos$Mutable;)D
intermediary method_39905
Lnet/minecraft/class_6749;method_39905(Lnet/minecraft/class_2791;Lnet/minecraft/class_2338$class_2339;)D
official a
Lees;a(Ldzp;Ljh$a;)D
-
getCollidableBlockDensityBelow
- Parameters:
mutablePos
- will be moved down by seven blocks by this method- Mappings:
Namespace Name Mixin selector named getCollidableBlockDensityBelow
Lnet/minecraft/world/gen/chunk/BlendingData;getCollidableBlockDensityBelow(Lnet/minecraft/world/chunk/Chunk;Lnet/minecraft/util/math/BlockPos$Mutable;)D
intermediary method_39906
Lnet/minecraft/class_6749;method_39906(Lnet/minecraft/class_2791;Lnet/minecraft/class_2338$class_2339;)D
official b
Lees;b(Ldzp;Ljh$a;)D
-
calculateCollidableBlockDensityColumn
private double[] calculateCollidableBlockDensityColumn(Chunk chunk, int chunkBlockX, int chunkBlockZ, int surfaceHeight) - Mappings:
Namespace Name Mixin selector named calculateCollidableBlockDensityColumn
Lnet/minecraft/world/gen/chunk/BlendingData;calculateCollidableBlockDensityColumn(Lnet/minecraft/world/chunk/Chunk;III)[D
intermediary method_39354
Lnet/minecraft/class_6749;method_39354(Lnet/minecraft/class_2791;III)[D
official a
Lees;a(Ldzp;III)[D
-
getVerticalBiomeSections
private List<RegistryEntry<Biome>> getVerticalBiomeSections(Chunk chunk, int chunkBlockX, int chunkBlockZ) - Mappings:
Namespace Name Mixin selector named getVerticalBiomeSections
Lnet/minecraft/world/gen/chunk/BlendingData;getVerticalBiomeSections(Lnet/minecraft/world/chunk/Chunk;II)Ljava/util/List;
intermediary method_41566
Lnet/minecraft/class_6749;method_41566(Lnet/minecraft/class_2791;II)Ljava/util/List;
official b
Lees;b(Ldzp;II)Ljava/util/List;
-
isCollidableAndNotTreeAt
- Mappings:
Namespace Name Mixin selector named isCollidableAndNotTreeAt
Lnet/minecraft/world/gen/chunk/BlendingData;isCollidableAndNotTreeAt(Lnet/minecraft/world/chunk/Chunk;Lnet/minecraft/util/math/BlockPos;)Z
intermediary method_39350
Lnet/minecraft/class_6749;method_39350(Lnet/minecraft/class_2791;Lnet/minecraft/class_2338;)Z
official a
Lees;a(Ldzp;Ljh;)Z
-
getHeight
protected double getHeight(int biomeX, int biomeY, int biomeZ) - Mappings:
Namespace Name Mixin selector named getHeight
Lnet/minecraft/world/gen/chunk/BlendingData;getHeight(III)D
intermediary method_39344
Lnet/minecraft/class_6749;method_39344(III)D
official a
Lees;a(III)D
-
getCollidableBlockDensity
private double getCollidableBlockDensity(@Nullable @org.jetbrains.annotations.Nullable double[] collidableBlockDensityColumn, int halfSectionY) - Mappings:
Namespace Name Mixin selector named getCollidableBlockDensity
Lnet/minecraft/world/gen/chunk/BlendingData;getCollidableBlockDensity([DI)D
intermediary method_39575
Lnet/minecraft/class_6749;method_39575([DI)D
official a
Lees;a([DI)D
-
getCollidableBlockDensity
protected double getCollidableBlockDensity(int chunkBiomeX, int halfSectionY, int chunkBiomeZ) - Mappings:
Namespace Name Mixin selector named getCollidableBlockDensity
Lnet/minecraft/world/gen/chunk/BlendingData;getCollidableBlockDensity(III)D
intermediary method_39345
Lnet/minecraft/class_6749;method_39345(III)D
official b
Lees;b(III)D
-
acceptBiomes
protected void acceptBiomes(int biomeX, int biomeY, int biomeZ, BlendingData.BiomeConsumer consumer) - Mappings:
Namespace Name Mixin selector named acceptBiomes
Lnet/minecraft/world/gen/chunk/BlendingData;acceptBiomes(IIILnet/minecraft/world/gen/chunk/BlendingData$BiomeConsumer;)V
intermediary method_40028
Lnet/minecraft/class_6749;method_40028(IIILnet/minecraft/class_6749$class_6853;)V
official a
Lees;a(IIILees$a;)V
-
acceptHeights
- Mappings:
Namespace Name Mixin selector named acceptHeights
Lnet/minecraft/world/gen/chunk/BlendingData;acceptHeights(IILnet/minecraft/world/gen/chunk/BlendingData$HeightConsumer;)V
intermediary method_39351
Lnet/minecraft/class_6749;method_39351(IILnet/minecraft/class_6749$class_6751;)V
official a
Lees;a(IILees$c;)V
-
acceptCollidableBlockDensities
protected void acceptCollidableBlockDensities(int biomeX, int biomeZ, int minHalfSectionY, int maxHalfSectionY, BlendingData.CollidableBlockDensityConsumer consumer) - Mappings:
Namespace Name Mixin selector named acceptCollidableBlockDensities
Lnet/minecraft/world/gen/chunk/BlendingData;acceptCollidableBlockDensities(IIIILnet/minecraft/world/gen/chunk/BlendingData$CollidableBlockDensityConsumer;)V
intermediary method_39346
Lnet/minecraft/class_6749;method_39346(IIIILnet/minecraft/class_6749$class_6750;)V
official a
Lees;a(IIIILees$b;)V
-
getVerticalHalfSectionCount
private int getVerticalHalfSectionCount()- Mappings:
Namespace Name Mixin selector named getVerticalHalfSectionCount
Lnet/minecraft/world/gen/chunk/BlendingData;getVerticalHalfSectionCount()I
intermediary method_39576
Lnet/minecraft/class_6749;method_39576()I
official c
Lees;c()I
-
getVerticalBiomeCount
private int getVerticalBiomeCount()- Mappings:
Namespace Name Mixin selector named getVerticalBiomeCount
Lnet/minecraft/world/gen/chunk/BlendingData;getVerticalBiomeCount()I
intermediary method_41567
Lnet/minecraft/class_6749;method_41567()I
official d
Lees;d()I
-
getOneAboveBottomHalfSectionY
private int getOneAboveBottomHalfSectionY()- Mappings:
Namespace Name Mixin selector named getOneAboveBottomHalfSectionY
Lnet/minecraft/world/gen/chunk/BlendingData;getOneAboveBottomHalfSectionY()I
intermediary method_39581
Lnet/minecraft/class_6749;method_39581()I
official e
Lees;e()I
-
getBottomHalfSectionY
private int getBottomHalfSectionY()- Mappings:
Namespace Name Mixin selector named getBottomHalfSectionY
Lnet/minecraft/world/gen/chunk/BlendingData;getBottomHalfSectionY()I
intermediary method_39583
Lnet/minecraft/class_6749;method_39583()I
official f
Lees;f()I
-
getHalfSectionHeight
private int getHalfSectionHeight(int halfSectionY) - Mappings:
Namespace Name Mixin selector named getHalfSectionHeight
Lnet/minecraft/world/gen/chunk/BlendingData;getHalfSectionHeight(I)I
intermediary method_41565
Lnet/minecraft/class_6749;method_41565(I)I
official a
Lees;a(I)I
-
getNorthWestIndex
private static int getNorthWestIndex(int chunkBiomeX, int chunkBiomeZ) Gets the north east index for the given chunk-local biome coordinates. At least one of these coordinates must be0
for this method to work properly.- Parameters:
chunkBiomeX
- the chunk-local biome X coordinatechunkBiomeZ
- the chunk-local biome Z coordinate- Returns:
- the north west index
- Mappings:
Namespace Name Mixin selector named getNorthWestIndex
Lnet/minecraft/world/gen/chunk/BlendingData;getNorthWestIndex(II)I
intermediary method_39578
Lnet/minecraft/class_6749;method_39578(II)I
official a
Lees;a(II)I
-
getSouthEastIndex
private static int getSouthEastIndex(int chunkBiomeX, int chunkBiomeZ) Gets the south east index for the given chunk-local biome coordinates. At least one of these coordinates must beCHUNK_BIOME_END_INDEX
(4
) for this method to work properly.- Parameters:
chunkBiomeX
- the chunk-local biome X coordinatechunkBiomeZ
- the chunk-local biome Z coordinate- Returns:
- the south east index
- Mappings:
Namespace Name Mixin selector named getSouthEastIndex
Lnet/minecraft/world/gen/chunk/BlendingData;getSouthEastIndex(II)I
intermediary method_39582
Lnet/minecraft/class_6749;method_39582(II)I
official b
Lees;b(II)I
-
getX
private static int getX(int index) - Mappings:
Namespace Name Mixin selector named getX
Lnet/minecraft/world/gen/chunk/BlendingData;getX(I)I
intermediary method_39343
Lnet/minecraft/class_6749;method_39343(I)I
official b
Lees;b(I)I
-
getZ
private static int getZ(int index) - Mappings:
Namespace Name Mixin selector named getZ
Lnet/minecraft/world/gen/chunk/BlendingData;getZ(I)I
intermediary method_39352
Lnet/minecraft/class_6749;method_39352(I)I
official c
Lees;c(I)I
-
method_39355
private static int method_39355(int int2) - Mappings:
Namespace Name Mixin selector named method_39355
Lnet/minecraft/world/gen/chunk/BlendingData;method_39355(I)I
intermediary method_39355
Lnet/minecraft/class_6749;method_39355(I)I
official d
Lees;d(I)I
-
getOldHeightLimit
- Mappings:
Namespace Name Mixin selector named getOldHeightLimit
Lnet/minecraft/world/gen/chunk/BlendingData;getOldHeightLimit()Lnet/minecraft/world/HeightLimitView;
intermediary method_41564
Lnet/minecraft/class_6749;method_41564()Lnet/minecraft/class_5539;
official b
Lees;b()Ldhj;
-