Class AbstractCountPlacementModifier

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

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

    • AbstractCountPlacementModifier

      public AbstractCountPlacementModifier()
  • Method Details

    • getCount

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