Class AbstractCountPlacementModifier

java.lang.Object
net.minecraft.world.gen.placementmodifier.PlacementModifier
net.minecraft.world.gen.placementmodifier.AbstractCountPlacementModifier
Direct Known Subclasses:
CountPlacementModifier, NoiseBasedCountPlacementModifier, NoiseThresholdCountPlacementModifier

public abstract class AbstractCountPlacementModifier extends PlacementModifier
Mappings:
Namespace Name
named net/minecraft/world/gen/placementmodifier/AbstractCountPlacementModifier
intermediary net/minecraft/class_5857
official enu
  • Constructor Details

    • AbstractCountPlacementModifier

      public AbstractCountPlacementModifier()
  • Method Details

    • getCount

      protected abstract int getCount(Random random, BlockPos pos)
      Mappings:
      Namespace Name Mixin selector
      named getCount Lnet/minecraft/world/gen/placementmodifier/AbstractCountPlacementModifier;getCount(Lnet/minecraft/util/math/random/Random;Lnet/minecraft/util/math/BlockPos;)I
      intermediary method_14452 Lnet/minecraft/class_5857;method_14452(Lnet/minecraft/class_5819;Lnet/minecraft/class_2338;)I
      official a Lenu;a(Lbam;Ljh;)I
    • 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;