Class AbstractCountDecorator<DC extends DecoratorConfig>

java.lang.Object
net.minecraft.world.gen.decorator.Decorator<DC>
net.minecraft.world.gen.decorator.AbstractCountDecorator<DC>
Direct Known Subclasses:
ChanceDecorator, CountDecorator, CountExtraDecorator, CountNoiseBiasedDecorator, CountNoiseDecorator, LavaLakeDecorator

public abstract class AbstractCountDecorator<DC extends DecoratorConfig> extends Decorator<DC>
Mappings:
Namespace Name
official dah
intermediary net/minecraft/class_5857
named net/minecraft/world/gen/decorator/AbstractCountDecorator
  • Constructor Details

    • AbstractCountDecorator

      public AbstractCountDecorator(com.mojang.serialization.Codec<DC> configCodec)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lczx;<init>(Lcom/mojang/serialization/Codec;)V
      intermediary <init> Lnet/minecraft/class_3284;<init>(Lcom/mojang/serialization/Codec;)V
      named <init> Lnet/minecraft/world/gen/decorator/Decorator;<init>(Lcom/mojang/serialization/Codec;)V
  • Method Details

    • getCount

      protected abstract int getCount(Random random, DC config, BlockPos pos)
      Mappings:
      Namespace Name Mixin selector
      official a Ldah;a(Ljava/util/Random;Lcvb;Lgg;)I
      intermediary method_14452 Lnet/minecraft/class_5857;method_14452(Ljava/util/Random;Lnet/minecraft/class_2998;Lnet/minecraft/class_2338;)I
      named getCount Lnet/minecraft/world/gen/decorator/AbstractCountDecorator;getCount(Ljava/util/Random;Lnet/minecraft/world/gen/decorator/DecoratorConfig;Lnet/minecraft/util/math/BlockPos;)I
    • getPositions

      public Stream<BlockPos> getPositions(DecoratorContext context, Random random, DC config, BlockPos pos)
      Specified by:
      getPositions in class Decorator<DC extends DecoratorConfig>
      Mappings:
      Namespace Name Mixin selector
      official a Lczx;a(Lczv;Ljava/util/Random;Lcvb;Lgg;)Ljava/util/stream/Stream;
      intermediary method_14452 Lnet/minecraft/class_3284;method_14452(Lnet/minecraft/class_5444;Ljava/util/Random;Lnet/minecraft/class_2998;Lnet/minecraft/class_2338;)Ljava/util/stream/Stream;
      named getPositions Lnet/minecraft/world/gen/decorator/Decorator;getPositions(Lnet/minecraft/world/gen/decorator/DecoratorContext;Ljava/util/Random;Lnet/minecraft/world/gen/decorator/DecoratorConfig;Lnet/minecraft/util/math/BlockPos;)Ljava/util/stream/Stream;