Class HeightRangePlacementModifier

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

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

    • MODIFIER_CODEC

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

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

    • HeightRangePlacementModifier

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

    • of

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

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

      public static HeightRangePlacementModifier trapezoid(YOffset minOffset, YOffset maxOffset)
      Mappings:
      Namespace Name Mixin selector
      named trapezoid Lnet/minecraft/world/gen/placementmodifier/HeightRangePlacementModifier;trapezoid(Lnet/minecraft/world/gen/YOffset;Lnet/minecraft/world/gen/YOffset;)Lnet/minecraft/world/gen/placementmodifier/HeightRangePlacementModifier;
      intermediary method_39637 Lnet/minecraft/class_6795;method_39637(Lnet/minecraft/class_5843;Lnet/minecraft/class_5843;)Lnet/minecraft/class_6795;
      official b Leil;b(Ldzp;Ldzp;)Leil;
    • 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_ Leit;a_(Leir;Layv;Ljd;)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 Leit;b()Leiu;