Class ChanceDecorator


public class ChanceDecorator extends ConditionalDecorator<ChanceDecoratorConfig>
Mappings:
Namespace Name
official dco
intermediary net/minecraft/class_3241
named net/minecraft/world/gen/decorator/ChanceDecorator
  • Constructor Details

    • ChanceDecorator

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

    • shouldPlace

      protected boolean shouldPlace(DecoratorContext decoratorContext, Random random, ChanceDecoratorConfig chanceDecoratorConfig, BlockPos blockPos)
      Specified by:
      shouldPlace in class ConditionalDecorator<ChanceDecoratorConfig>
      Mappings:
      Namespace Name Mixin selector
      official a Ldco;a(Ldcx;Ljava/util/Random;Ldcp;Lgh;)Z
      intermediary method_38921 Lnet/minecraft/class_3241;method_38921(Lnet/minecraft/class_5444;Ljava/util/Random;Lnet/minecraft/class_3297;Lnet/minecraft/class_2338;)Z
      named shouldPlace Lnet/minecraft/world/gen/decorator/ChanceDecorator;shouldPlace(Lnet/minecraft/world/gen/decorator/DecoratorContext;Ljava/util/Random;Lnet/minecraft/world/gen/decorator/ChanceDecoratorConfig;Lnet/minecraft/util/math/BlockPos;)Z