Class ConditionalDecorator<DC extends DecoratorConfig>

java.lang.Object
net.minecraft.world.gen.decorator.Decorator<DC>
net.minecraft.world.gen.decorator.ConditionalDecorator<DC>
Direct Known Subclasses:
BlockFilterDecorator, BlockSurvivesFilterDecorator, ChanceDecorator, LavaLakeDecorator, SurfaceRelativeThresholdDecorator, WaterDepthThresholdDecorator

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

    • ConditionalDecorator

      public ConditionalDecorator(com.mojang.serialization.Codec<DC> configCodec)
      Mappings:
      Namespace Name Mixin selector
      official <init> Ldco;<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

    • 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_ Ldco;a_(Ldck;Ljava/util/Random;Lcxi;Lgh;)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;
    • shouldPlace

      protected abstract boolean shouldPlace(DecoratorContext context, Random random, DC config, BlockPos pos)
      Mappings:
      Namespace Name Mixin selector
      official a Ldcp;a(Ldck;Ljava/util/Random;Lcxi;Lgh;)Z
      intermediary method_38918 Lnet/minecraft/class_6661;method_38918(Lnet/minecraft/class_5444;Ljava/util/Random;Lnet/minecraft/class_2998;Lnet/minecraft/class_2338;)Z
      named shouldPlace Lnet/minecraft/world/gen/decorator/ConditionalDecorator;shouldPlace(Lnet/minecraft/world/gen/decorator/DecoratorContext;Ljava/util/Random;Lnet/minecraft/world/gen/decorator/DecoratorConfig;Lnet/minecraft/util/math/BlockPos;)Z