Class BlendingData

java.lang.Object
net.minecraft.world.gen.chunk.BlendingData

public class BlendingData extends Object
Mappings:
Namespace Name
official dic
intermediary net/minecraft/class_6749
named net/minecraft/world/gen/chunk/BlendingData
  • Field Details

    • field_35514

      private static final double field_35514
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official f Ldic;f:D
      intermediary field_35514 Lnet/minecraft/class_6749;field_35514:D
      named field_35514 Lnet/minecraft/world/gen/chunk/BlendingData;field_35514:D
    • field_36280

      protected static final int field_36280
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official a Ldic;a:I
      intermediary field_36280 Lnet/minecraft/class_6749;field_36280:I
      named field_36280 Lnet/minecraft/world/gen/chunk/BlendingData;field_36280:I
    • field_35511

      protected static final int field_35511
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official b Ldic;b:I
      intermediary field_35511 Lnet/minecraft/class_6749;field_35511:I
      named field_35511 Lnet/minecraft/world/gen/chunk/BlendingData;field_35511:I
    • field_36281

      protected static final int field_36281
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official c Ldic;c:I
      intermediary field_36281 Lnet/minecraft/class_6749;field_36281:I
      named field_36281 Lnet/minecraft/world/gen/chunk/BlendingData;field_36281:I
    • field_37704

      private static final double field_37704
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official g Ldic;g:D
      intermediary field_37704 Lnet/minecraft/class_6749;field_37704:D
      named field_37704 Lnet/minecraft/world/gen/chunk/BlendingData;field_37704:D
    • field_37705

      private static final double field_37705
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official h Ldic;h:D
      intermediary field_37705 Lnet/minecraft/class_6749;field_37705:D
      named field_37705 Lnet/minecraft/world/gen/chunk/BlendingData;field_37705:D
    • field_35516

      private static final int field_35516
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official i Ldic;i:I
      intermediary field_35516 Lnet/minecraft/class_6749;field_35516:I
      named field_35516 Lnet/minecraft/world/gen/chunk/BlendingData;field_35516:I
    • BIOMES_PER_CHUNK

      private static final int BIOMES_PER_CHUNK
      Mappings:
      Namespace Name Mixin selector
      official j Ldic;j:I
      intermediary field_35683 Lnet/minecraft/class_6749;field_35683:I
      named BIOMES_PER_CHUNK Lnet/minecraft/world/gen/chunk/BlendingData;BIOMES_PER_CHUNK:I
    • LAST_CHUNK_BIOME_INDEX

      private static final int LAST_CHUNK_BIOME_INDEX
      Mappings:
      Namespace Name Mixin selector
      official k Ldic;k:I
      intermediary field_35684 Lnet/minecraft/class_6749;field_35684:I
      named LAST_CHUNK_BIOME_INDEX Lnet/minecraft/world/gen/chunk/BlendingData;LAST_CHUNK_BIOME_INDEX:I
    • CHUNK_BIOME_END_INDEX

      private static final int CHUNK_BIOME_END_INDEX
      Mappings:
      Namespace Name Mixin selector
      official l Ldic;l:I
      intermediary field_35685 Lnet/minecraft/class_6749;field_35685:I
      named CHUNK_BIOME_END_INDEX Lnet/minecraft/world/gen/chunk/BlendingData;CHUNK_BIOME_END_INDEX:I
    • NORTH_WEST_END_INDEX

      private static final int NORTH_WEST_END_INDEX
      Mappings:
      Namespace Name Mixin selector
      official m Ldic;m:I
      intermediary field_35686 Lnet/minecraft/class_6749;field_35686:I
      named NORTH_WEST_END_INDEX Lnet/minecraft/world/gen/chunk/BlendingData;NORTH_WEST_END_INDEX:I
    • SOUTH_EAST_END_INDEX_PART

      private static final int SOUTH_EAST_END_INDEX_PART
      Mappings:
      Namespace Name Mixin selector
      official n Ldic;n:I
      intermediary field_35687 Lnet/minecraft/class_6749;field_35687:I
      named SOUTH_EAST_END_INDEX_PART Lnet/minecraft/world/gen/chunk/BlendingData;SOUTH_EAST_END_INDEX_PART:I
    • HORIZONTAL_BIOME_COUNT

      private static final int HORIZONTAL_BIOME_COUNT
      Mappings:
      Namespace Name Mixin selector
      official o Ldic;o:I
      intermediary field_35518 Lnet/minecraft/class_6749;field_35518:I
      named HORIZONTAL_BIOME_COUNT Lnet/minecraft/world/gen/chunk/BlendingData;HORIZONTAL_BIOME_COUNT:I
    • SURFACE_BLOCKS

      private static final List<Block> SURFACE_BLOCKS
      Mappings:
      Namespace Name Mixin selector
      official q Ldic;q:Ljava/util/List;
      intermediary field_35519 Lnet/minecraft/class_6749;field_35519:Ljava/util/List;
      named SURFACE_BLOCKS Lnet/minecraft/world/gen/chunk/BlendingData;SURFACE_BLOCKS:Ljava/util/List;
    • field_35513

      protected static final double field_35513
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official d Ldic;d:D
      intermediary field_35513 Lnet/minecraft/class_6749;field_35513:D
      named field_35513 Lnet/minecraft/world/gen/chunk/BlendingData;field_35513:D
    • DOUBLE_ARRAY_CODEC

      private static final com.mojang.serialization.Codec<double[]> DOUBLE_ARRAY_CODEC
      Mappings:
      Namespace Name Mixin selector
      official v Ldic;v:Lcom/mojang/serialization/Codec;
      intermediary field_35695 Lnet/minecraft/class_6749;field_35695:Lcom/mojang/serialization/Codec;
      named DOUBLE_ARRAY_CODEC Lnet/minecraft/world/gen/chunk/BlendingData;DOUBLE_ARRAY_CODEC:Lcom/mojang/serialization/Codec;
    • CODEC

      public static final com.mojang.serialization.Codec<BlendingData> CODEC
      Mappings:
      Namespace Name Mixin selector
      official e Ldic;e:Lcom/mojang/serialization/Codec;
      intermediary field_35682 Lnet/minecraft/class_6749;field_35682:Lcom/mojang/serialization/Codec;
      named CODEC Lnet/minecraft/world/gen/chunk/BlendingData;CODEC:Lcom/mojang/serialization/Codec;
    • oldHeightLimit

      private final HeightLimitView oldHeightLimit
      Mappings:
      Namespace Name Mixin selector
      official p Ldic;p:Lcmk;
      intermediary field_35515 Lnet/minecraft/class_6749;field_35515:Lnet/minecraft/class_5539;
      named oldHeightLimit Lnet/minecraft/world/gen/chunk/BlendingData;oldHeightLimit:Lnet/minecraft/world/HeightLimitView;
    • initializedBlendingData

      private boolean initializedBlendingData
      Mappings:
      Namespace Name Mixin selector
      official r Ldic;r:Z
      intermediary field_35690 Lnet/minecraft/class_6749;field_35690:Z
      named initializedBlendingData Lnet/minecraft/world/gen/chunk/BlendingData;initializedBlendingData:Z
    • surfaceHeights

      private final double[] surfaceHeights
      Mappings:
      Namespace Name Mixin selector
      official s Ldic;s:[D
      intermediary field_35692 Lnet/minecraft/class_6749;field_35692:[D
      named surfaceHeights Lnet/minecraft/world/gen/chunk/BlendingData;surfaceHeights:[D
    • biomes

      private final List<List<RegistryEntry<Biome>>> biomes
      Mappings:
      Namespace Name Mixin selector
      official t Ldic;t:Ljava/util/List;
      intermediary field_36345 Lnet/minecraft/class_6749;field_36345:Ljava/util/List;
      named biomes Lnet/minecraft/world/gen/chunk/BlendingData;biomes:Ljava/util/List;
    • collidableBlockDensities

      private final transient double[][] collidableBlockDensities
      Mappings:
      Namespace Name Mixin selector
      official u Ldic;u:[[D
      intermediary field_35693 Lnet/minecraft/class_6749;field_35693:[[D
      named collidableBlockDensities Lnet/minecraft/world/gen/chunk/BlendingData;collidableBlockDensities:[[D
  • Constructor Details

    • BlendingData

      private BlendingData(int oldBottomSectionY, int oldTopSectionY, Optional<double[]> heights)
      Mappings:
      Namespace Name Mixin selector
      official <init> Ldic;<init>(IILjava/util/Optional;)V
      intermediary <init> Lnet/minecraft/class_6749;<init>(IILjava/util/Optional;)V
      named <init> Lnet/minecraft/world/gen/chunk/BlendingData;<init>(IILjava/util/Optional;)V
  • Method Details

    • validate

      private static com.mojang.serialization.DataResult<BlendingData> validate(BlendingData data)
      Mappings:
      Namespace Name Mixin selector
      official a Ldic;a(Ldic;)Lcom/mojang/serialization/DataResult;
      intermediary method_39573 Lnet/minecraft/class_6749;method_39573(Lnet/minecraft/class_6749;)Lcom/mojang/serialization/DataResult;
      named validate Lnet/minecraft/world/gen/chunk/BlendingData;validate(Lnet/minecraft/world/gen/chunk/BlendingData;)Lcom/mojang/serialization/DataResult;
    • getBlendingData

      @Nullable public static @Nullable BlendingData getBlendingData(ChunkRegion chunkRegion, int chunkX, int chunkZ)
      Mappings:
      Namespace Name Mixin selector
      official a Ldic;a(Laiw;II)Ldic;
      intermediary method_39570 Lnet/minecraft/class_6749;method_39570(Lnet/minecraft/class_3233;II)Lnet/minecraft/class_6749;
      named getBlendingData Lnet/minecraft/world/gen/chunk/BlendingData;getBlendingData(Lnet/minecraft/world/ChunkRegion;II)Lnet/minecraft/world/gen/chunk/BlendingData;
    • getAdjacentChunksWithNoise

      public static Set<EightWayDirection> getAdjacentChunksWithNoise(StructureWorldAccess access, int chunkX, int chunkZ, boolean oldNoise)
      Mappings:
      Namespace Name Mixin selector
      official a Ldic;a(Lcnb;IIZ)Ljava/util/Set;
      intermediary method_39579 Lnet/minecraft/class_6749;method_39579(Lnet/minecraft/class_5281;IIZ)Ljava/util/Set;
      named getAdjacentChunksWithNoise Lnet/minecraft/world/gen/chunk/BlendingData;getAdjacentChunksWithNoise(Lnet/minecraft/world/StructureWorldAccess;IIZ)Ljava/util/Set;
    • initChunkBlendingData

      private void initChunkBlendingData(Chunk chunk, Set<EightWayDirection> newNoiseChunkDirections)
      Mappings:
      Namespace Name Mixin selector
      official a Ldic;a(Lddn;Ljava/util/Set;)V
      intermediary method_39572 Lnet/minecraft/class_6749;method_39572(Lnet/minecraft/class_2791;Ljava/util/Set;)V
      named initChunkBlendingData Lnet/minecraft/world/gen/chunk/BlendingData;initChunkBlendingData(Lnet/minecraft/world/chunk/Chunk;Ljava/util/Set;)V
    • initBlockColumn

      private void initBlockColumn(int index, Chunk chunk, int chunkBlockX, int chunkBlockZ)
      Mappings:
      Namespace Name Mixin selector
      official a Ldic;a(ILddn;II)V
      intermediary method_39347 Lnet/minecraft/class_6749;method_39347(ILnet/minecraft/class_2791;II)V
      named initBlockColumn Lnet/minecraft/world/gen/chunk/BlendingData;initBlockColumn(ILnet/minecraft/world/chunk/Chunk;II)V
    • getSurfaceBlockY

      private int getSurfaceBlockY(Chunk chunk, int blockX, int blockZ)
      Mappings:
      Namespace Name Mixin selector
      official a Ldic;a(Lddn;II)I
      intermediary method_39349 Lnet/minecraft/class_6749;method_39349(Lnet/minecraft/class_2791;II)I
      named getSurfaceBlockY Lnet/minecraft/world/gen/chunk/BlendingData;getSurfaceBlockY(Lnet/minecraft/world/chunk/Chunk;II)I
    • getAboveCollidableBlockValue

      private static double getAboveCollidableBlockValue(Chunk chunk, BlockPos.Mutable mutablePos)
      Returns 1.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
      official a Ldic;a(Lddn;Lgt$a;)D
      intermediary method_39905 Lnet/minecraft/class_6749;method_39905(Lnet/minecraft/class_2791;Lnet/minecraft/class_2338$class_2339;)D
      named getAboveCollidableBlockValue Lnet/minecraft/world/gen/chunk/BlendingData;getAboveCollidableBlockValue(Lnet/minecraft/world/chunk/Chunk;Lnet/minecraft/util/math/BlockPos$Mutable;)D
    • getCollidableBlockDensityBelow

      private static double getCollidableBlockDensityBelow(Chunk chunk, BlockPos.Mutable mutablePos)
      Parameters:
      mutablePos - will be moved down by seven blocks by this method
      Mappings:
      Namespace Name Mixin selector
      official b Ldic;b(Lddn;Lgt$a;)D
      intermediary method_39906 Lnet/minecraft/class_6749;method_39906(Lnet/minecraft/class_2791;Lnet/minecraft/class_2338$class_2339;)D
      named getCollidableBlockDensityBelow Lnet/minecraft/world/gen/chunk/BlendingData;getCollidableBlockDensityBelow(Lnet/minecraft/world/chunk/Chunk;Lnet/minecraft/util/math/BlockPos$Mutable;)D
    • calculateCollidableBlockDensityColumn

      private double[] calculateCollidableBlockDensityColumn(Chunk chunk, int chunkBlockX, int chunkBlockZ, int surfaceHeight)
      Mappings:
      Namespace Name Mixin selector
      official a Ldic;a(Lddn;III)[D
      intermediary method_39354 Lnet/minecraft/class_6749;method_39354(Lnet/minecraft/class_2791;III)[D
      named calculateCollidableBlockDensityColumn Lnet/minecraft/world/gen/chunk/BlendingData;calculateCollidableBlockDensityColumn(Lnet/minecraft/world/chunk/Chunk;III)[D
    • getVerticalBiomeSections

      private List<RegistryEntry<Biome>> getVerticalBiomeSections(Chunk chunk, int chunkBlockX, int chunkBlockZ)
      Mappings:
      Namespace Name Mixin selector
      official b Ldic;b(Lddn;II)Ljava/util/List;
      intermediary method_41566 Lnet/minecraft/class_6749;method_41566(Lnet/minecraft/class_2791;II)Ljava/util/List;
      named getVerticalBiomeSections Lnet/minecraft/world/gen/chunk/BlendingData;getVerticalBiomeSections(Lnet/minecraft/world/chunk/Chunk;II)Ljava/util/List;
    • isCollidableAndNotTreeAt

      private static boolean isCollidableAndNotTreeAt(Chunk chunk, BlockPos pos)
      Mappings:
      Namespace Name Mixin selector
      official a Ldic;a(Lddn;Lgt;)Z
      intermediary method_39350 Lnet/minecraft/class_6749;method_39350(Lnet/minecraft/class_2791;Lnet/minecraft/class_2338;)Z
      named isCollidableAndNotTreeAt Lnet/minecraft/world/gen/chunk/BlendingData;isCollidableAndNotTreeAt(Lnet/minecraft/world/chunk/Chunk;Lnet/minecraft/util/math/BlockPos;)Z
    • getHeight

      protected double getHeight(int biomeX, int biomeY, int biomeZ)
      Mappings:
      Namespace Name Mixin selector
      official a Ldic;a(III)D
      intermediary method_39344 Lnet/minecraft/class_6749;method_39344(III)D
      named getHeight Lnet/minecraft/world/gen/chunk/BlendingData;getHeight(III)D
    • getCollidableBlockDensity

      private double getCollidableBlockDensity(@Nullable @org.jetbrains.annotations.Nullable double[] collidableBlockDensityColumn, int halfSectionY)
      Mappings:
      Namespace Name Mixin selector
      official a Ldic;a([DI)D
      intermediary method_39575 Lnet/minecraft/class_6749;method_39575([DI)D
      named getCollidableBlockDensity Lnet/minecraft/world/gen/chunk/BlendingData;getCollidableBlockDensity([DI)D
    • getCollidableBlockDensity

      protected double getCollidableBlockDensity(int chunkBiomeX, int halfSectionY, int chunkBiomeZ)
      Mappings:
      Namespace Name Mixin selector
      official b Ldic;b(III)D
      intermediary method_39345 Lnet/minecraft/class_6749;method_39345(III)D
      named getCollidableBlockDensity Lnet/minecraft/world/gen/chunk/BlendingData;getCollidableBlockDensity(III)D
    • acceptBiomes

      protected void acceptBiomes(int biomeX, int biomeY, int biomeZ, BlendingData.BiomeConsumer consumer)
      Mappings:
      Namespace Name Mixin selector
      official a Ldic;a(IIILdic$a;)V
      intermediary method_40028 Lnet/minecraft/class_6749;method_40028(IIILnet/minecraft/class_6749$class_6853;)V
      named acceptBiomes Lnet/minecraft/world/gen/chunk/BlendingData;acceptBiomes(IIILnet/minecraft/world/gen/chunk/BlendingData$BiomeConsumer;)V
    • acceptHeights

      protected void acceptHeights(int biomeX, int biomeZ, BlendingData.HeightConsumer consumer)
      Mappings:
      Namespace Name Mixin selector
      official a Ldic;a(IILdic$c;)V
      intermediary method_39351 Lnet/minecraft/class_6749;method_39351(IILnet/minecraft/class_6749$class_6751;)V
      named acceptHeights Lnet/minecraft/world/gen/chunk/BlendingData;acceptHeights(IILnet/minecraft/world/gen/chunk/BlendingData$HeightConsumer;)V
    • acceptCollidableBlockDensities

      protected void acceptCollidableBlockDensities(int biomeX, int biomeZ, int minHalfSectionY, int maxHalfSectionY, BlendingData.CollidableBlockDensityConsumer consumer)
      Mappings:
      Namespace Name Mixin selector
      official a Ldic;a(IIIILdic$b;)V
      intermediary method_39346 Lnet/minecraft/class_6749;method_39346(IIIILnet/minecraft/class_6749$class_6750;)V
      named acceptCollidableBlockDensities Lnet/minecraft/world/gen/chunk/BlendingData;acceptCollidableBlockDensities(IIIILnet/minecraft/world/gen/chunk/BlendingData$CollidableBlockDensityConsumer;)V
    • getVerticalHalfSectionCount

      private int getVerticalHalfSectionCount()
      Mappings:
      Namespace Name Mixin selector
      official b Ldic;b()I
      intermediary method_39576 Lnet/minecraft/class_6749;method_39576()I
      named getVerticalHalfSectionCount Lnet/minecraft/world/gen/chunk/BlendingData;getVerticalHalfSectionCount()I
    • getVerticalBiomeCount

      private int getVerticalBiomeCount()
      Mappings:
      Namespace Name Mixin selector
      official c Ldic;c()I
      intermediary method_41567 Lnet/minecraft/class_6749;method_41567()I
      named getVerticalBiomeCount Lnet/minecraft/world/gen/chunk/BlendingData;getVerticalBiomeCount()I
    • getOneAboveBottomHalfSectionY

      private int getOneAboveBottomHalfSectionY()
      Mappings:
      Namespace Name Mixin selector
      official d Ldic;d()I
      intermediary method_39581 Lnet/minecraft/class_6749;method_39581()I
      named getOneAboveBottomHalfSectionY Lnet/minecraft/world/gen/chunk/BlendingData;getOneAboveBottomHalfSectionY()I
    • getBottomHalfSectionY

      private int getBottomHalfSectionY()
      Mappings:
      Namespace Name Mixin selector
      official e Ldic;e()I
      intermediary method_39583 Lnet/minecraft/class_6749;method_39583()I
      named getBottomHalfSectionY Lnet/minecraft/world/gen/chunk/BlendingData;getBottomHalfSectionY()I
    • getHalfSectionHeight

      private int getHalfSectionHeight(int halfSectionY)
      Mappings:
      Namespace Name Mixin selector
      official a Ldic;a(I)I
      intermediary method_41565 Lnet/minecraft/class_6749;method_41565(I)I
      named getHalfSectionHeight Lnet/minecraft/world/gen/chunk/BlendingData;getHalfSectionHeight(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 be 0 for this method to work properly.
      Parameters:
      chunkBiomeX - the chunk-local biome X coordinate
      chunkBiomeZ - the chunk-local biome Z coordinate
      Returns:
      the north west index
      Mappings:
      Namespace Name Mixin selector
      official a Ldic;a(II)I
      intermediary method_39578 Lnet/minecraft/class_6749;method_39578(II)I
      named getNorthWestIndex Lnet/minecraft/world/gen/chunk/BlendingData;getNorthWestIndex(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 be CHUNK_BIOME_END_INDEX (4) for this method to work properly.
      Parameters:
      chunkBiomeX - the chunk-local biome X coordinate
      chunkBiomeZ - the chunk-local biome Z coordinate
      Returns:
      the south east index
      Mappings:
      Namespace Name Mixin selector
      official b Ldic;b(II)I
      intermediary method_39582 Lnet/minecraft/class_6749;method_39582(II)I
      named getSouthEastIndex Lnet/minecraft/world/gen/chunk/BlendingData;getSouthEastIndex(II)I
    • getX

      private static int getX(int index)
      Mappings:
      Namespace Name Mixin selector
      official b Ldic;b(I)I
      intermediary method_39343 Lnet/minecraft/class_6749;method_39343(I)I
      named getX Lnet/minecraft/world/gen/chunk/BlendingData;getX(I)I
    • getZ

      private static int getZ(int index)
      Mappings:
      Namespace Name Mixin selector
      official c Ldic;c(I)I
      intermediary method_39352 Lnet/minecraft/class_6749;method_39352(I)I
      named getZ Lnet/minecraft/world/gen/chunk/BlendingData;getZ(I)I
    • method_39355

      private static int method_39355(int int2)
      Mappings:
      Namespace Name Mixin selector
      official d Ldic;d(I)I
      intermediary method_39355 Lnet/minecraft/class_6749;method_39355(I)I
      named method_39355 Lnet/minecraft/world/gen/chunk/BlendingData;method_39355(I)I
    • getOldHeightLimit

      public HeightLimitView getOldHeightLimit()
      Mappings:
      Namespace Name Mixin selector
      official a Ldic;a()Lcmk;
      intermediary method_41564 Lnet/minecraft/class_6749;method_41564()Lnet/minecraft/class_5539;
      named getOldHeightLimit Lnet/minecraft/world/gen/chunk/BlendingData;getOldHeightLimit()Lnet/minecraft/world/HeightLimitView;