Class LowerHeightmapPlacement

java.lang.Object
net.minecraft.world.level.levelgen.placement.PlacementModifier
net.frozenblock.lib.worldgen.feature.api.placementmodifier.LowerHeightmapPlacement

public class LowerHeightmapPlacement extends net.minecraft.world.level.levelgen.placement.PlacementModifier
  • Field Details

    • CODEC

      public static final com.mojang.serialization.Codec<LowerHeightmapPlacement> CODEC
    • HEIGHTMAP_MOTION_BLOCKING

      public static final net.minecraft.world.level.levelgen.placement.PlacementModifier HEIGHTMAP_MOTION_BLOCKING
    • HEIGHTMAP_TOP_SOLID

      public static final net.minecraft.world.level.levelgen.placement.PlacementModifier HEIGHTMAP_TOP_SOLID
    • HEIGHTMAP_WORLD_SURFACE

      public static final net.minecraft.world.level.levelgen.placement.PlacementModifier HEIGHTMAP_WORLD_SURFACE
    • HEIGHTMAP_OCEAN_FLOOR

      public static final net.minecraft.world.level.levelgen.placement.PlacementModifier HEIGHTMAP_OCEAN_FLOOR
  • Method Details

    • onHeightmap

      public static LowerHeightmapPlacement onHeightmap(net.minecraft.world.level.levelgen.Heightmap.Types heightmap)
    • getPositions

      @NotNull public @NotNull Stream<net.minecraft.core.BlockPos> getPositions(net.minecraft.world.level.levelgen.placement.PlacementContext context, @NotNull @NotNull net.minecraft.util.RandomSource random, net.minecraft.core.BlockPos pos)
      Specified by:
      getPositions in class net.minecraft.world.level.levelgen.placement.PlacementModifier
    • type

      @NotNull public @NotNull net.minecraft.world.level.levelgen.placement.PlacementModifierType<?> type()
      Specified by:
      type in class net.minecraft.world.level.levelgen.placement.PlacementModifier