Class HeightRangePlacementModifier

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

public class HeightRangePlacementModifier extends PlacementModifier
Mappings:
Namespace Name
official ddh
intermediary net/minecraft/class_6795
named net/minecraft/world/gen/decorator/HeightRangePlacementModifier
  • Field Details

    • MODIFIER_CODEC

      public static final com.mojang.serialization.Codec<HeightRangePlacementModifier> MODIFIER_CODEC
      Mappings:
      Namespace Name Mixin selector
      official a Lddh;a:Lcom/mojang/serialization/Codec;
      intermediary field_35725 Lnet/minecraft/class_6795;field_35725:Lcom/mojang/serialization/Codec;
      named MODIFIER_CODEC Lnet/minecraft/world/gen/decorator/HeightRangePlacementModifier;MODIFIER_CODEC:Lcom/mojang/serialization/Codec;
    • height

      private final HeightProvider height
      Mappings:
      Namespace Name Mixin selector
      official c Lddh;c:Ldcp;
      intermediary field_35726 Lnet/minecraft/class_6795;field_35726:Lnet/minecraft/class_6122;
      named height Lnet/minecraft/world/gen/decorator/HeightRangePlacementModifier;height:Lnet/minecraft/world/gen/heightprovider/HeightProvider;
  • Constructor Details

    • HeightRangePlacementModifier

      private HeightRangePlacementModifier(HeightProvider height)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lddh;<init>(Ldcp;)V
      intermediary <init> Lnet/minecraft/class_6795;<init>(Lnet/minecraft/class_6122;)V
      named <init> Lnet/minecraft/world/gen/decorator/HeightRangePlacementModifier;<init>(Lnet/minecraft/world/gen/heightprovider/HeightProvider;)V
  • Method Details

    • of

      public static HeightRangePlacementModifier of(HeightProvider height)
      Mappings:
      Namespace Name Mixin selector
      official a Lddh;a(Ldcp;)Lddh;
      intermediary method_39635 Lnet/minecraft/class_6795;method_39635(Lnet/minecraft/class_6122;)Lnet/minecraft/class_6795;
      named of Lnet/minecraft/world/gen/decorator/HeightRangePlacementModifier;of(Lnet/minecraft/world/gen/heightprovider/HeightProvider;)Lnet/minecraft/world/gen/decorator/HeightRangePlacementModifier;
    • uniform

      public static HeightRangePlacementModifier uniform(YOffset minOffset, YOffset maxOffset)
      Mappings:
      Namespace Name Mixin selector
      official a Lddh;a(Lctp;Lctp;)Lddh;
      intermediary method_39634 Lnet/minecraft/class_6795;method_39634(Lnet/minecraft/class_5843;Lnet/minecraft/class_5843;)Lnet/minecraft/class_6795;
      named uniform Lnet/minecraft/world/gen/decorator/HeightRangePlacementModifier;uniform(Lnet/minecraft/world/gen/YOffset;Lnet/minecraft/world/gen/YOffset;)Lnet/minecraft/world/gen/decorator/HeightRangePlacementModifier;
    • trapezoid

      public static HeightRangePlacementModifier trapezoid(YOffset minOffset, YOffset maxOffset)
      Mappings:
      Namespace Name Mixin selector
      official b Lddh;b(Lctp;Lctp;)Lddh;
      intermediary method_39637 Lnet/minecraft/class_6795;method_39637(Lnet/minecraft/class_5843;Lnet/minecraft/class_5843;)Lnet/minecraft/class_6795;
      named trapezoid Lnet/minecraft/world/gen/decorator/HeightRangePlacementModifier;trapezoid(Lnet/minecraft/world/gen/YOffset;Lnet/minecraft/world/gen/YOffset;)Lnet/minecraft/world/gen/decorator/HeightRangePlacementModifier;
    • getPositions

      public Stream<BlockPos> getPositions(DecoratorContext context, Random random, BlockPos pos)
      Specified by:
      getPositions in class PlacementModifier
      Mappings:
      Namespace Name Mixin selector
      official a_ Lddp;a_(Lddn;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 Lddp;b()Lddq;
      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;