Class AbstractConditionalPlacementModifier

java.lang.Object
net.minecraft.world.gen.placementmodifier.PlacementModifier
net.minecraft.world.gen.placementmodifier.AbstractConditionalPlacementModifier
Direct Known Subclasses:
BiomePlacementModifier, BlockFilterPlacementModifier, RarityFilterPlacementModifier, SurfaceThresholdFilterPlacementModifier, SurfaceWaterDepthFilterPlacementModifier

public abstract class AbstractConditionalPlacementModifier extends PlacementModifier
Mappings:
Namespace Name
named net/minecraft/world/gen/placementmodifier/AbstractConditionalPlacementModifier
intermediary net/minecraft/class_6661
official eis
  • Constructor Details

    • AbstractConditionalPlacementModifier

      public AbstractConditionalPlacementModifier()
  • Method Details

    • getPositions

      public final 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;
    • shouldPlace

      protected abstract boolean shouldPlace(FeaturePlacementContext context, Random random, BlockPos pos)
      Mappings:
      Namespace Name Mixin selector
      named shouldPlace Lnet/minecraft/world/gen/placementmodifier/AbstractConditionalPlacementModifier;shouldPlace(Lnet/minecraft/world/gen/feature/FeaturePlacementContext;Lnet/minecraft/util/math/random/Random;Lnet/minecraft/util/math/BlockPos;)Z
      intermediary method_38918 Lnet/minecraft/class_6661;method_38918(Lnet/minecraft/class_5444;Lnet/minecraft/class_5819;Lnet/minecraft/class_2338;)Z
      official a Leis;a(Leir;Layv;Ljd;)Z