Class HeightmapPlacementModifier

java.lang.Object
net.minecraft.world.gen.placementmodifier.PlacementModifier
net.minecraft.world.gen.placementmodifier.HeightmapPlacementModifier

public class HeightmapPlacementModifier extends PlacementModifier
Mappings:
Namespace Name
named net/minecraft/world/gen/placementmodifier/HeightmapPlacementModifier
intermediary net/minecraft/class_5925
official enj
  • Field Details

    • MODIFIER_CODEC

      public static final com.mojang.serialization.MapCodec<HeightmapPlacementModifier> MODIFIER_CODEC
      Mappings:
      Namespace Name Mixin selector
      named MODIFIER_CODEC Lnet/minecraft/world/gen/placementmodifier/HeightmapPlacementModifier;MODIFIER_CODEC:Lcom/mojang/serialization/MapCodec;
      intermediary field_29265 Lnet/minecraft/class_5925;field_29265:Lcom/mojang/serialization/MapCodec;
      official a Lenj;a:Lcom/mojang/serialization/MapCodec;
    • heightmap

      private final Heightmap.Type heightmap
      Mappings:
      Namespace Name Mixin selector
      named heightmap Lnet/minecraft/world/gen/placementmodifier/HeightmapPlacementModifier;heightmap:Lnet/minecraft/world/Heightmap$Type;
      intermediary field_29266 Lnet/minecraft/class_5925;field_29266:Lnet/minecraft/class_2902$class_2903;
      official c Lenj;c:Ledp$a;
  • Constructor Details

    • HeightmapPlacementModifier

      private HeightmapPlacementModifier(Heightmap.Type heightmap)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/world/gen/placementmodifier/HeightmapPlacementModifier;<init>(Lnet/minecraft/world/Heightmap$Type;)V
      intermediary <init> Lnet/minecraft/class_5925;<init>(Lnet/minecraft/class_2902$class_2903;)V
      official <init> Lenj;<init>(Ledp$a;)V
  • Method Details

    • of

      public static HeightmapPlacementModifier of(Heightmap.Type heightmap)
      Mappings:
      Namespace Name Mixin selector
      named of Lnet/minecraft/world/gen/placementmodifier/HeightmapPlacementModifier;of(Lnet/minecraft/world/Heightmap$Type;)Lnet/minecraft/world/gen/placementmodifier/HeightmapPlacementModifier;
      intermediary method_39638 Lnet/minecraft/class_5925;method_39638(Lnet/minecraft/class_2902$class_2903;)Lnet/minecraft/class_5925;
      official a Lenj;a(Ledp$a;)Lenj;
    • getPositions

      public Stream<BlockPos> getPositions(FeaturePlacementContext context, Random random, BlockPos pos)
      Applies this placement modifier to the given position.
      Specified by:
      getPositions in class PlacementModifier
      Mappings:
      Namespace Name Mixin selector
      named getPositions Lnet/minecraft/world/gen/placementmodifier/PlacementModifier;getPositions(Lnet/minecraft/world/gen/feature/FeaturePlacementContext;Lnet/minecraft/util/math/random/Random;Lnet/minecraft/util/math/BlockPos;)Ljava/util/stream/Stream;
      intermediary method_14452 Lnet/minecraft/class_6797;method_14452(Lnet/minecraft/class_5444;Lnet/minecraft/class_5819;Lnet/minecraft/class_2338;)Ljava/util/stream/Stream;
      official a_ Lenq;a_(Leno;Lbam;Ljh;)Ljava/util/stream/Stream;
    • getType

      public PlacementModifierType<?> getType()
      Specified by:
      getType in class PlacementModifier
      Mappings:
      Namespace Name Mixin selector
      named getType Lnet/minecraft/world/gen/placementmodifier/PlacementModifier;getType()Lnet/minecraft/world/gen/placementmodifier/PlacementModifierType;
      intermediary method_39615 Lnet/minecraft/class_6797;method_39615()Lnet/minecraft/class_6798;
      official b Lenq;b()Lenr;