Class HeightmapPlacementModifier

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

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

    • MODIFIER_CODEC

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

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

    • HeightmapPlacementModifier

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

    • of

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

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

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