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/BlendingDataintermediary net/minecraft/class_6749official eis
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected static interfaceprotected static interfaceprotected static interfacestatic final record -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final List<List<RegistryEntry<Biome>>> private static final intprivate static final intprivate final double[][]protected static final intprotected static final doubleprivate static final doubleprivate static final intprotected static final intprotected static final intprivate static final doubleprivate static final double(package private) static final intprivate booleanprivate static final intprivate static final intprivate final HeightLimitViewprivate static final intprivate final double[] -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateBlendingData(int oldBottomSectionY, int oldTopSectionY, Optional<double[]> heights) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidacceptBiomes(int biomeX, int biomeY, int biomeZ, BlendingData.BiomeConsumer consumer) protected voidacceptCollidableBlockDensities(int biomeX, int biomeZ, int minHalfSectionY, int maxHalfSectionY, BlendingData.CollidableBlockDensityConsumer consumer) protected voidacceptHeights(int biomeX, int biomeZ, BlendingData.HeightConsumer consumer) private double[]calculateCollidableBlockDensityColumn(Chunk chunk, int chunkBlockX, int chunkBlockZ, int surfaceHeight) static @Nullable BlendingDatafromSerialized(@Nullable BlendingData.Serialized serialized) private static doublegetAboveCollidableBlockValue(Chunk chunk, BlockPos.Mutable mutablePos) Returns1.0if there is a collidable block below, otherwise-1.static Set<EightWayDirection> getAdjacentChunksWithNoise(StructureWorldAccess access, int chunkX, int chunkZ, boolean oldNoise) static @Nullable BlendingDatagetBlendingData(ChunkRegion chunkRegion, int chunkX, int chunkZ) private intprivate doublegetCollidableBlockDensity(@org.jetbrains.annotations.Nullable double[] collidableBlockDensityColumn, int halfSectionY) protected doublegetCollidableBlockDensity(int chunkBiomeX, int halfSectionY, int chunkBiomeZ) private static doublegetCollidableBlockDensityBelow(Chunk chunk, BlockPos.Mutable mutablePos) private intgetHalfSectionHeight(int halfSectionY) protected doublegetHeight(int biomeX, int biomeY, int biomeZ) private static intgetNorthWestIndex(int chunkBiomeX, int chunkBiomeZ) Gets the north east index for the given chunk-local biome coordinates.private intprivate static intgetSouthEastIndex(int chunkBiomeX, int chunkBiomeZ) Gets the south east index for the given chunk-local biome coordinates.private intgetSurfaceBlockY(Chunk chunk, int blockX, int blockZ) private intprivate List<RegistryEntry<Biome>> getVerticalBiomeSections(Chunk chunk, int chunkBlockX, int chunkBlockZ) private intprivate static intgetX(int index) private static intgetZ(int index) private voidinitBlockColumn(int index, Chunk chunk, int chunkBlockX, int chunkBlockZ) private voidinitChunkBlendingData(Chunk chunk, Set<EightWayDirection> newNoiseChunkDirections) private static booleanisCollidableAndNotTreeAt(Chunk chunk, BlockPos pos) private static intmethod_39355(int int2)
-
Field Details
-
field_35514
private static final double field_35514- See Also:
- Mappings:
Namespace Name Mixin selector named field_35514Lnet/minecraft/world/gen/chunk/BlendingData;field_35514:Dintermediary field_35514Lnet/minecraft/class_6749;field_35514:Dofficial eLeis;e:D
-
field_36280
protected static final int field_36280- See Also:
- Mappings:
Namespace Name Mixin selector named field_36280Lnet/minecraft/world/gen/chunk/BlendingData;field_36280:Iintermediary field_36280Lnet/minecraft/class_6749;field_36280:Iofficial aLeis;a:I
-
field_35511
protected static final int field_35511- See Also:
- Mappings:
Namespace Name Mixin selector named field_35511Lnet/minecraft/world/gen/chunk/BlendingData;field_35511:Iintermediary field_35511Lnet/minecraft/class_6749;field_35511:Iofficial bLeis;b:I
-
field_36281
protected static final int field_36281- See Also:
- Mappings:
Namespace Name Mixin selector named field_36281Lnet/minecraft/world/gen/chunk/BlendingData;field_36281:Iintermediary field_36281Lnet/minecraft/class_6749;field_36281:Iofficial cLeis;c:I
-
field_37704
private static final double field_37704- See Also:
- Mappings:
Namespace Name Mixin selector named field_37704Lnet/minecraft/world/gen/chunk/BlendingData;field_37704:Dintermediary field_37704Lnet/minecraft/class_6749;field_37704:Dofficial fLeis;f:D
-
field_37705
private static final double field_37705- See Also:
- Mappings:
Namespace Name Mixin selector named field_37705Lnet/minecraft/world/gen/chunk/BlendingData;field_37705:Dintermediary field_37705Lnet/minecraft/class_6749;field_37705:Dofficial gLeis;g:D
-
field_35516
private static final int field_35516- See Also:
- Mappings:
Namespace Name Mixin selector named field_35516Lnet/minecraft/world/gen/chunk/BlendingData;field_35516:Iintermediary field_35516Lnet/minecraft/class_6749;field_35516:Iofficial hLeis;h:I
-
BIOMES_PER_CHUNK
private static final int BIOMES_PER_CHUNK- Mappings:
Namespace Name Mixin selector named BIOMES_PER_CHUNKLnet/minecraft/world/gen/chunk/BlendingData;BIOMES_PER_CHUNK:Iintermediary field_35683Lnet/minecraft/class_6749;field_35683:Iofficial iLeis;i:I
-
LAST_CHUNK_BIOME_INDEX
private static final int LAST_CHUNK_BIOME_INDEX- Mappings:
Namespace Name Mixin selector named LAST_CHUNK_BIOME_INDEXLnet/minecraft/world/gen/chunk/BlendingData;LAST_CHUNK_BIOME_INDEX:Iintermediary field_35684Lnet/minecraft/class_6749;field_35684:Iofficial jLeis;j:I
-
CHUNK_BIOME_END_INDEX
private static final int CHUNK_BIOME_END_INDEX- Mappings:
Namespace Name Mixin selector named CHUNK_BIOME_END_INDEXLnet/minecraft/world/gen/chunk/BlendingData;CHUNK_BIOME_END_INDEX:Iintermediary field_35685Lnet/minecraft/class_6749;field_35685:Iofficial kLeis;k:I
-
NORTH_WEST_END_INDEX
private static final int NORTH_WEST_END_INDEX- Mappings:
Namespace Name Mixin selector named NORTH_WEST_END_INDEXLnet/minecraft/world/gen/chunk/BlendingData;NORTH_WEST_END_INDEX:Iintermediary field_35686Lnet/minecraft/class_6749;field_35686:Iofficial lLeis;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_PARTLnet/minecraft/world/gen/chunk/BlendingData;SOUTH_EAST_END_INDEX_PART:Iintermediary field_35687Lnet/minecraft/class_6749;field_35687:Iofficial mLeis;m:I
-
HORIZONTAL_BIOME_COUNT
static final int HORIZONTAL_BIOME_COUNT- Mappings:
Namespace Name Mixin selector named HORIZONTAL_BIOME_COUNTLnet/minecraft/world/gen/chunk/BlendingData;HORIZONTAL_BIOME_COUNT:Iintermediary field_35518Lnet/minecraft/class_6749;field_35518:Iofficial nLeis;n:I
-
SURFACE_BLOCKS
- Mappings:
Namespace Name Mixin selector named SURFACE_BLOCKSLnet/minecraft/world/gen/chunk/BlendingData;SURFACE_BLOCKS:Ljava/util/List;intermediary field_35519Lnet/minecraft/class_6749;field_35519:Ljava/util/List;official pLeis;p:Ljava/util/List;
-
field_35513
protected static final double field_35513- See Also:
- Mappings:
Namespace Name Mixin selector named field_35513Lnet/minecraft/world/gen/chunk/BlendingData;field_35513:Dintermediary field_35513Lnet/minecraft/class_6749;field_35513:Dofficial dLeis;d:D
-
oldHeightLimit
- Mappings:
Namespace Name Mixin selector named oldHeightLimitLnet/minecraft/world/gen/chunk/BlendingData;oldHeightLimit:Lnet/minecraft/world/HeightLimitView;intermediary field_35515Lnet/minecraft/class_6749;field_35515:Lnet/minecraft/class_5539;official oLeis;o:Ldkl;
-
initializedBlendingData
private boolean initializedBlendingData- Mappings:
Namespace Name Mixin selector named initializedBlendingDataLnet/minecraft/world/gen/chunk/BlendingData;initializedBlendingData:Zintermediary field_35690Lnet/minecraft/class_6749;field_35690:Zofficial qLeis;q:Z
-
surfaceHeights
private final double[] surfaceHeights- Mappings:
Namespace Name Mixin selector named surfaceHeightsLnet/minecraft/world/gen/chunk/BlendingData;surfaceHeights:[Dintermediary field_35692Lnet/minecraft/class_6749;field_35692:[Dofficial rLeis;r:[D
-
biomes
- Mappings:
Namespace Name Mixin selector named biomesLnet/minecraft/world/gen/chunk/BlendingData;biomes:Ljava/util/List;intermediary field_36345Lnet/minecraft/class_6749;field_36345:Ljava/util/List;official sLeis;s:Ljava/util/List;
-
collidableBlockDensities
private final transient double[][] collidableBlockDensities- Mappings:
Namespace Name Mixin selector named collidableBlockDensitiesLnet/minecraft/world/gen/chunk/BlendingData;collidableBlockDensities:[[Dintermediary field_35693Lnet/minecraft/class_6749;field_35693:[[Dofficial tLeis;t:[[D
-
-
Constructor Details
-
BlendingData
- Mappings:
Namespace Name Mixin selector named <init>Lnet/minecraft/world/gen/chunk/BlendingData;<init>(IILjava/util/Optional;)Vintermediary <init>Lnet/minecraft/class_6749;<init>(IILjava/util/Optional;)Vofficial <init>Leis;<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 fromSerializedLnet/minecraft/world/gen/chunk/BlendingData;fromSerialized(Lnet/minecraft/world/gen/chunk/BlendingData$Serialized;)Lnet/minecraft/world/gen/chunk/BlendingData;intermediary method_61807Lnet/minecraft/class_6749;method_61807(Lnet/minecraft/class_6749$class_9899;)Lnet/minecraft/class_6749;official aLeis;a(Leis$d;)Leis;
-
toSerialized
- Mappings:
Namespace Name Mixin selector named toSerializedLnet/minecraft/world/gen/chunk/BlendingData;toSerialized()Lnet/minecraft/world/gen/chunk/BlendingData$Serialized;intermediary method_61806Lnet/minecraft/class_6749;method_61806()Lnet/minecraft/class_6749$class_9899;official aLeis;a()Leis$d;
-
getBlendingData
@Nullable public static @Nullable BlendingData getBlendingData(ChunkRegion chunkRegion, int chunkX, int chunkZ) - Mappings:
Namespace Name Mixin selector named getBlendingDataLnet/minecraft/world/gen/chunk/BlendingData;getBlendingData(Lnet/minecraft/world/ChunkRegion;II)Lnet/minecraft/world/gen/chunk/BlendingData;intermediary method_39570Lnet/minecraft/class_6749;method_39570(Lnet/minecraft/class_3233;II)Lnet/minecraft/class_6749;official aLeis;a(Lasj;II)Leis;
-
getAdjacentChunksWithNoise
public static Set<EightWayDirection> getAdjacentChunksWithNoise(StructureWorldAccess access, int chunkX, int chunkZ, boolean oldNoise) - Mappings:
Namespace Name Mixin selector named getAdjacentChunksWithNoiseLnet/minecraft/world/gen/chunk/BlendingData;getAdjacentChunksWithNoise(Lnet/minecraft/world/StructureWorldAccess;IIZ)Ljava/util/Set;intermediary method_39579Lnet/minecraft/class_6749;method_39579(Lnet/minecraft/class_5281;IIZ)Ljava/util/Set;official aLeis;a(Ldli;IIZ)Ljava/util/Set;
-
initChunkBlendingData
- Mappings:
Namespace Name Mixin selector named initChunkBlendingDataLnet/minecraft/world/gen/chunk/BlendingData;initChunkBlendingData(Lnet/minecraft/world/chunk/Chunk;Ljava/util/Set;)Vintermediary method_39572Lnet/minecraft/class_6749;method_39572(Lnet/minecraft/class_2791;Ljava/util/Set;)Vofficial aLeis;a(Ledn;Ljava/util/Set;)V
-
initBlockColumn
- Mappings:
Namespace Name Mixin selector named initBlockColumnLnet/minecraft/world/gen/chunk/BlendingData;initBlockColumn(ILnet/minecraft/world/chunk/Chunk;II)Vintermediary method_39347Lnet/minecraft/class_6749;method_39347(ILnet/minecraft/class_2791;II)Vofficial aLeis;a(ILedn;II)V
-
getSurfaceBlockY
- Mappings:
Namespace Name Mixin selector named getSurfaceBlockYLnet/minecraft/world/gen/chunk/BlendingData;getSurfaceBlockY(Lnet/minecraft/world/chunk/Chunk;II)Iintermediary method_39349Lnet/minecraft/class_6749;method_39349(Lnet/minecraft/class_2791;II)Iofficial aLeis;a(Ledn;II)I
-
getAboveCollidableBlockValue
Returns1.0if there is a collidable block below, otherwise-1.- Parameters:
mutablePos- will be moved down by one block by this method- Returns:
1.0if there is a collidable block below, otherwise-1- Mappings:
Namespace Name Mixin selector named getAboveCollidableBlockValueLnet/minecraft/world/gen/chunk/BlendingData;getAboveCollidableBlockValue(Lnet/minecraft/world/chunk/Chunk;Lnet/minecraft/util/math/BlockPos$Mutable;)Dintermediary method_39905Lnet/minecraft/class_6749;method_39905(Lnet/minecraft/class_2791;Lnet/minecraft/class_2338$class_2339;)Dofficial aLeis;a(Ledn;Liw$a;)D
-
getCollidableBlockDensityBelow
- Parameters:
mutablePos- will be moved down by seven blocks by this method- Mappings:
Namespace Name Mixin selector named getCollidableBlockDensityBelowLnet/minecraft/world/gen/chunk/BlendingData;getCollidableBlockDensityBelow(Lnet/minecraft/world/chunk/Chunk;Lnet/minecraft/util/math/BlockPos$Mutable;)Dintermediary method_39906Lnet/minecraft/class_6749;method_39906(Lnet/minecraft/class_2791;Lnet/minecraft/class_2338$class_2339;)Dofficial bLeis;b(Ledn;Liw$a;)D
-
calculateCollidableBlockDensityColumn
private double[] calculateCollidableBlockDensityColumn(Chunk chunk, int chunkBlockX, int chunkBlockZ, int surfaceHeight) - Mappings:
Namespace Name Mixin selector named calculateCollidableBlockDensityColumnLnet/minecraft/world/gen/chunk/BlendingData;calculateCollidableBlockDensityColumn(Lnet/minecraft/world/chunk/Chunk;III)[Dintermediary method_39354Lnet/minecraft/class_6749;method_39354(Lnet/minecraft/class_2791;III)[Dofficial aLeis;a(Ledn;III)[D
-
getVerticalBiomeSections
private List<RegistryEntry<Biome>> getVerticalBiomeSections(Chunk chunk, int chunkBlockX, int chunkBlockZ) - Mappings:
Namespace Name Mixin selector named getVerticalBiomeSectionsLnet/minecraft/world/gen/chunk/BlendingData;getVerticalBiomeSections(Lnet/minecraft/world/chunk/Chunk;II)Ljava/util/List;intermediary method_41566Lnet/minecraft/class_6749;method_41566(Lnet/minecraft/class_2791;II)Ljava/util/List;official bLeis;b(Ledn;II)Ljava/util/List;
-
isCollidableAndNotTreeAt
- Mappings:
Namespace Name Mixin selector named isCollidableAndNotTreeAtLnet/minecraft/world/gen/chunk/BlendingData;isCollidableAndNotTreeAt(Lnet/minecraft/world/chunk/Chunk;Lnet/minecraft/util/math/BlockPos;)Zintermediary method_39350Lnet/minecraft/class_6749;method_39350(Lnet/minecraft/class_2791;Lnet/minecraft/class_2338;)Zofficial aLeis;a(Ledn;Liw;)Z
-
getHeight
protected double getHeight(int biomeX, int biomeY, int biomeZ) - Mappings:
Namespace Name Mixin selector named getHeightLnet/minecraft/world/gen/chunk/BlendingData;getHeight(III)Dintermediary method_39344Lnet/minecraft/class_6749;method_39344(III)Dofficial aLeis;a(III)D
-
getCollidableBlockDensity
private double getCollidableBlockDensity(@Nullable @org.jetbrains.annotations.Nullable double[] collidableBlockDensityColumn, int halfSectionY) - Mappings:
Namespace Name Mixin selector named getCollidableBlockDensityLnet/minecraft/world/gen/chunk/BlendingData;getCollidableBlockDensity([DI)Dintermediary method_39575Lnet/minecraft/class_6749;method_39575([DI)Dofficial aLeis;a([DI)D
-
getCollidableBlockDensity
protected double getCollidableBlockDensity(int chunkBiomeX, int halfSectionY, int chunkBiomeZ) - Mappings:
Namespace Name Mixin selector named getCollidableBlockDensityLnet/minecraft/world/gen/chunk/BlendingData;getCollidableBlockDensity(III)Dintermediary method_39345Lnet/minecraft/class_6749;method_39345(III)Dofficial bLeis;b(III)D
-
acceptBiomes
protected void acceptBiomes(int biomeX, int biomeY, int biomeZ, BlendingData.BiomeConsumer consumer) - Mappings:
Namespace Name Mixin selector named acceptBiomesLnet/minecraft/world/gen/chunk/BlendingData;acceptBiomes(IIILnet/minecraft/world/gen/chunk/BlendingData$BiomeConsumer;)Vintermediary method_40028Lnet/minecraft/class_6749;method_40028(IIILnet/minecraft/class_6749$class_6853;)Vofficial aLeis;a(IIILeis$a;)V
-
acceptHeights
- Mappings:
Namespace Name Mixin selector named acceptHeightsLnet/minecraft/world/gen/chunk/BlendingData;acceptHeights(IILnet/minecraft/world/gen/chunk/BlendingData$HeightConsumer;)Vintermediary method_39351Lnet/minecraft/class_6749;method_39351(IILnet/minecraft/class_6749$class_6751;)Vofficial aLeis;a(IILeis$c;)V
-
acceptCollidableBlockDensities
protected void acceptCollidableBlockDensities(int biomeX, int biomeZ, int minHalfSectionY, int maxHalfSectionY, BlendingData.CollidableBlockDensityConsumer consumer) - Mappings:
Namespace Name Mixin selector named acceptCollidableBlockDensitiesLnet/minecraft/world/gen/chunk/BlendingData;acceptCollidableBlockDensities(IIIILnet/minecraft/world/gen/chunk/BlendingData$CollidableBlockDensityConsumer;)Vintermediary method_39346Lnet/minecraft/class_6749;method_39346(IIIILnet/minecraft/class_6749$class_6750;)Vofficial aLeis;a(IIIILeis$b;)V
-
getVerticalHalfSectionCount
private int getVerticalHalfSectionCount()- Mappings:
Namespace Name Mixin selector named getVerticalHalfSectionCountLnet/minecraft/world/gen/chunk/BlendingData;getVerticalHalfSectionCount()Iintermediary method_39576Lnet/minecraft/class_6749;method_39576()Iofficial cLeis;c()I
-
getVerticalBiomeCount
private int getVerticalBiomeCount()- Mappings:
Namespace Name Mixin selector named getVerticalBiomeCountLnet/minecraft/world/gen/chunk/BlendingData;getVerticalBiomeCount()Iintermediary method_41567Lnet/minecraft/class_6749;method_41567()Iofficial dLeis;d()I
-
getOneAboveBottomHalfSectionY
private int getOneAboveBottomHalfSectionY()- Mappings:
Namespace Name Mixin selector named getOneAboveBottomHalfSectionYLnet/minecraft/world/gen/chunk/BlendingData;getOneAboveBottomHalfSectionY()Iintermediary method_39581Lnet/minecraft/class_6749;method_39581()Iofficial eLeis;e()I
-
getBottomHalfSectionY
private int getBottomHalfSectionY()- Mappings:
Namespace Name Mixin selector named getBottomHalfSectionYLnet/minecraft/world/gen/chunk/BlendingData;getBottomHalfSectionY()Iintermediary method_39583Lnet/minecraft/class_6749;method_39583()Iofficial fLeis;f()I
-
getHalfSectionHeight
private int getHalfSectionHeight(int halfSectionY) - Mappings:
Namespace Name Mixin selector named getHalfSectionHeightLnet/minecraft/world/gen/chunk/BlendingData;getHalfSectionHeight(I)Iintermediary method_41565Lnet/minecraft/class_6749;method_41565(I)Iofficial aLeis;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 be0for 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 getNorthWestIndexLnet/minecraft/world/gen/chunk/BlendingData;getNorthWestIndex(II)Iintermediary method_39578Lnet/minecraft/class_6749;method_39578(II)Iofficial aLeis;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 getSouthEastIndexLnet/minecraft/world/gen/chunk/BlendingData;getSouthEastIndex(II)Iintermediary method_39582Lnet/minecraft/class_6749;method_39582(II)Iofficial bLeis;b(II)I
-
getX
private static int getX(int index) - Mappings:
Namespace Name Mixin selector named getXLnet/minecraft/world/gen/chunk/BlendingData;getX(I)Iintermediary method_39343Lnet/minecraft/class_6749;method_39343(I)Iofficial bLeis;b(I)I
-
getZ
private static int getZ(int index) - Mappings:
Namespace Name Mixin selector named getZLnet/minecraft/world/gen/chunk/BlendingData;getZ(I)Iintermediary method_39352Lnet/minecraft/class_6749;method_39352(I)Iofficial cLeis;c(I)I
-
method_39355
private static int method_39355(int int2) - Mappings:
Namespace Name Mixin selector named method_39355Lnet/minecraft/world/gen/chunk/BlendingData;method_39355(I)Iintermediary method_39355Lnet/minecraft/class_6749;method_39355(I)Iofficial dLeis;d(I)I
-
getOldHeightLimit
- Mappings:
Namespace Name Mixin selector named getOldHeightLimitLnet/minecraft/world/gen/chunk/BlendingData;getOldHeightLimit()Lnet/minecraft/world/HeightLimitView;intermediary method_41564Lnet/minecraft/class_6749;method_41564()Lnet/minecraft/class_5539;official bLeis;b()Ldkl;
-