Class Decorator<DC extends DecoratorConfig>

java.lang.Object
net.minecraft.world.gen.decorator.Decorator<DC>
Direct Known Subclasses:
AbstractCountDecorator, AbstractHeightmapDecorator, AbstractRangeDecorator, CarvingMaskDecorator, CountMultilayerDecorator, DarkOakTreeDecorator, DecoratedDecorator, IcebergDecorator, NopeDecorator, SquareDecorator

public abstract class Decorator<DC extends DecoratorConfig>
extends Object
Mappings:
Namespace Name
official cws
intermediary net/minecraft/class_3284
named net/minecraft/world/gen/decorator/Decorator
  • Field Details

    • NOPE

      public static final Decorator<NopeDecoratorConfig> NOPE
      Mappings:
      Namespace Name Mixin selector
      official a Lcws;a:Lcws;
      intermediary field_14250 Lnet/minecraft/class_3284;field_14250:Lnet/minecraft/class_3284;
      named NOPE Lnet/minecraft/world/gen/decorator/Decorator;NOPE:Lnet/minecraft/world/gen/decorator/Decorator;
    • DECORATED

      public static final Decorator<DecoratedDecoratorConfig> DECORATED
      Mappings:
      Namespace Name Mixin selector
      official b Lcws;b:Lcws;
      intermediary field_25859 Lnet/minecraft/class_3284;field_25859:Lnet/minecraft/class_3284;
      named DECORATED Lnet/minecraft/world/gen/decorator/Decorator;DECORATED:Lnet/minecraft/world/gen/decorator/Decorator;
    • CARVING_MASK

      public static final Decorator<CarvingMaskDecoratorConfig> CARVING_MASK
      Mappings:
      Namespace Name Mixin selector
      official c Lcws;c:Lcws;
      intermediary field_14229 Lnet/minecraft/class_3284;field_14229:Lnet/minecraft/class_3284;
      named CARVING_MASK Lnet/minecraft/world/gen/decorator/Decorator;CARVING_MASK:Lnet/minecraft/world/gen/decorator/Decorator;
    • COUNT_MULTILAYER

      public static final Decorator<CountConfig> COUNT_MULTILAYER
      Mappings:
      Namespace Name Mixin selector
      official d Lcws;d:Lcws;
      intermediary field_25860 Lnet/minecraft/class_3284;field_25860:Lnet/minecraft/class_3284;
      named COUNT_MULTILAYER Lnet/minecraft/world/gen/decorator/Decorator;COUNT_MULTILAYER:Lnet/minecraft/world/gen/decorator/Decorator;
    • SQUARE

      public static final Decorator<NopeDecoratorConfig> SQUARE
      Mappings:
      Namespace Name Mixin selector
      official e Lcws;e:Lcws;
      intermediary field_25866 Lnet/minecraft/class_3284;field_25866:Lnet/minecraft/class_3284;
      named SQUARE Lnet/minecraft/world/gen/decorator/Decorator;SQUARE:Lnet/minecraft/world/gen/decorator/Decorator;
    • DARK_OAK_TREE

      public static final Decorator<NopeDecoratorConfig> DARK_OAK_TREE
      Mappings:
      Namespace Name Mixin selector
      official f Lcws;f:Lcws;
      intermediary field_14239 Lnet/minecraft/class_3284;field_14239:Lnet/minecraft/class_3284;
      named DARK_OAK_TREE Lnet/minecraft/world/gen/decorator/Decorator;DARK_OAK_TREE:Lnet/minecraft/world/gen/decorator/Decorator;
    • ICEBERG

      public static final Decorator<NopeDecoratorConfig> ICEBERG
      Mappings:
      Namespace Name Mixin selector
      official g Lcws;g:Lcws;
      intermediary field_14243 Lnet/minecraft/class_3284;field_14243:Lnet/minecraft/class_3284;
      named ICEBERG Lnet/minecraft/world/gen/decorator/Decorator;ICEBERG:Lnet/minecraft/world/gen/decorator/Decorator;
    • CHANCE

      public static final Decorator<ChanceDecoratorConfig> CHANCE
      Mappings:
      Namespace Name Mixin selector
      official h Lcws;h:Lcws;
      intermediary field_25861 Lnet/minecraft/class_3284;field_25861:Lnet/minecraft/class_3284;
      named CHANCE Lnet/minecraft/world/gen/decorator/Decorator;CHANCE:Lnet/minecraft/world/gen/decorator/Decorator;
    • COUNT

      public static final Decorator<CountConfig> COUNT
      Mappings:
      Namespace Name Mixin selector
      official i Lcws;i:Lcws;
      intermediary field_25862 Lnet/minecraft/class_3284;field_25862:Lnet/minecraft/class_3284;
      named COUNT Lnet/minecraft/world/gen/decorator/Decorator;COUNT:Lnet/minecraft/world/gen/decorator/Decorator;
    • COUNT_NOISE

      public static final Decorator<CountNoiseDecoratorConfig> COUNT_NOISE
      Mappings:
      Namespace Name Mixin selector
      official j Lcws;j:Lcws;
      intermediary field_25863 Lnet/minecraft/class_3284;field_25863:Lnet/minecraft/class_3284;
      named COUNT_NOISE Lnet/minecraft/world/gen/decorator/Decorator;COUNT_NOISE:Lnet/minecraft/world/gen/decorator/Decorator;
    • COUNT_NOISE_BIASED

      public static final Decorator<CountNoiseBiasedDecoratorConfig> COUNT_NOISE_BIASED
      Mappings:
      Namespace Name Mixin selector
      official k Lcws;k:Lcws;
      intermediary field_25864 Lnet/minecraft/class_3284;field_25864:Lnet/minecraft/class_3284;
      named COUNT_NOISE_BIASED Lnet/minecraft/world/gen/decorator/Decorator;COUNT_NOISE_BIASED:Lnet/minecraft/world/gen/decorator/Decorator;
    • COUNT_EXTRA

      public static final Decorator<CountExtraDecoratorConfig> COUNT_EXTRA
      Mappings:
      Namespace Name Mixin selector
      official l Lcws;l:Lcws;
      intermediary field_25865 Lnet/minecraft/class_3284;field_25865:Lnet/minecraft/class_3284;
      named COUNT_EXTRA Lnet/minecraft/world/gen/decorator/Decorator;COUNT_EXTRA:Lnet/minecraft/world/gen/decorator/Decorator;
    • LAVA_LAKE

      public static final Decorator<ChanceDecoratorConfig> LAVA_LAKE
      Mappings:
      Namespace Name Mixin selector
      official m Lcws;m:Lcws;
      intermediary field_14237 Lnet/minecraft/class_3284;field_14237:Lnet/minecraft/class_3284;
      named LAVA_LAKE Lnet/minecraft/world/gen/decorator/Decorator;LAVA_LAKE:Lnet/minecraft/world/gen/decorator/Decorator;
    • GLOWSTONE

      public static final Decorator<CountConfig> GLOWSTONE
      Mappings:
      Namespace Name Mixin selector
      official n Lcws;n:Lcws;
      intermediary field_25875 Lnet/minecraft/class_3284;field_25875:Lnet/minecraft/class_3284;
      named GLOWSTONE Lnet/minecraft/world/gen/decorator/Decorator;GLOWSTONE:Lnet/minecraft/world/gen/decorator/Decorator;
    • HEIGHTMAP

      public static final Decorator<NopeDecoratorConfig> HEIGHTMAP
      Mappings:
      Namespace Name Mixin selector
      official o Lcws;o:Lcws;
      intermediary field_25867 Lnet/minecraft/class_3284;field_25867:Lnet/minecraft/class_3284;
      named HEIGHTMAP Lnet/minecraft/world/gen/decorator/Decorator;HEIGHTMAP:Lnet/minecraft/world/gen/decorator/Decorator;
    • HEIGHTMAP_SPREAD_DOUBLE

      public static final Decorator<NopeDecoratorConfig> HEIGHTMAP_SPREAD_DOUBLE
      Mappings:
      Namespace Name Mixin selector
      official p Lcws;p:Lcws;
      intermediary field_25868 Lnet/minecraft/class_3284;field_25868:Lnet/minecraft/class_3284;
      named HEIGHTMAP_SPREAD_DOUBLE Lnet/minecraft/world/gen/decorator/Decorator;HEIGHTMAP_SPREAD_DOUBLE:Lnet/minecraft/world/gen/decorator/Decorator;
    • TOP_SOLID_HEIGHTMAP

      public static final Decorator<NopeDecoratorConfig> TOP_SOLID_HEIGHTMAP
      Mappings:
      Namespace Name Mixin selector
      official q Lcws;q:Lcws;
      intermediary field_14231 Lnet/minecraft/class_3284;field_14231:Lnet/minecraft/class_3284;
      named TOP_SOLID_HEIGHTMAP Lnet/minecraft/world/gen/decorator/Decorator;TOP_SOLID_HEIGHTMAP:Lnet/minecraft/world/gen/decorator/Decorator;
    • HEIGHTMAP_WORLD_SURFACE

      public static final Decorator<NopeDecoratorConfig> HEIGHTMAP_WORLD_SURFACE
      Mappings:
      Namespace Name Mixin selector
      official r Lcws;r:Lcws;
      intermediary field_25869 Lnet/minecraft/class_3284;field_25869:Lnet/minecraft/class_3284;
      named HEIGHTMAP_WORLD_SURFACE Lnet/minecraft/world/gen/decorator/Decorator;HEIGHTMAP_WORLD_SURFACE:Lnet/minecraft/world/gen/decorator/Decorator;
    • RANGE

      public static final Decorator<RangeDecoratorConfig> RANGE
      Mappings:
      Namespace Name Mixin selector
      official s Lcws;s:Lcws;
      intermediary field_25870 Lnet/minecraft/class_3284;field_25870:Lnet/minecraft/class_3284;
      named RANGE Lnet/minecraft/world/gen/decorator/Decorator;RANGE:Lnet/minecraft/world/gen/decorator/Decorator;
    • RANGE_BIASED_TO_BOTTOM

      public static final Decorator<BiasedRangedDecoratorConfig> RANGE_BIASED_TO_BOTTOM
      Mappings:
      Namespace Name Mixin selector
      official t Lcws;t:Lcws;
      intermediary field_28937 Lnet/minecraft/class_3284;field_28937:Lnet/minecraft/class_3284;
      named RANGE_BIASED_TO_BOTTOM Lnet/minecraft/world/gen/decorator/Decorator;RANGE_BIASED_TO_BOTTOM:Lnet/minecraft/world/gen/decorator/Decorator;
    • RANGE_VERY_BIASED_TO_BOTTOM

      public static final Decorator<BiasedRangedDecoratorConfig> RANGE_VERY_BIASED_TO_BOTTOM
      Mappings:
      Namespace Name Mixin selector
      official u Lcws;u:Lcws;
      intermediary field_28938 Lnet/minecraft/class_3284;field_28938:Lnet/minecraft/class_3284;
      named RANGE_VERY_BIASED_TO_BOTTOM Lnet/minecraft/world/gen/decorator/Decorator;RANGE_VERY_BIASED_TO_BOTTOM:Lnet/minecraft/world/gen/decorator/Decorator;
    • DEPTH_AVERAGE

      public static final Decorator<DepthAverageDecoratorConfig> DEPTH_AVERAGE
      Mappings:
      Namespace Name Mixin selector
      official v Lcws;v:Lcws;
      intermediary field_28939 Lnet/minecraft/class_3284;field_28939:Lnet/minecraft/class_3284;
      named DEPTH_AVERAGE Lnet/minecraft/world/gen/decorator/Decorator;DEPTH_AVERAGE:Lnet/minecraft/world/gen/decorator/Decorator;
    • SPREAD_32_ABOVE

      public static final Decorator<NopeDecoratorConfig> SPREAD_32_ABOVE
      Mappings:
      Namespace Name Mixin selector
      official w Lcws;w:Lcws;
      intermediary field_25874 Lnet/minecraft/class_3284;field_25874:Lnet/minecraft/class_3284;
      named SPREAD_32_ABOVE Lnet/minecraft/world/gen/decorator/Decorator;SPREAD_32_ABOVE:Lnet/minecraft/world/gen/decorator/Decorator;
    • END_GATEWAY

      public static final Decorator<NopeDecoratorConfig> END_GATEWAY
      Mappings:
      Namespace Name Mixin selector
      official x Lcws;x:Lcws;
      intermediary field_14230 Lnet/minecraft/class_3284;field_14230:Lnet/minecraft/class_3284;
      named END_GATEWAY Lnet/minecraft/world/gen/decorator/Decorator;END_GATEWAY:Lnet/minecraft/world/gen/decorator/Decorator;
    • codec

      private final com.mojang.serialization.Codec<ConfiguredDecorator<DC extends DecoratorConfig>> codec
      Mappings:
      Namespace Name Mixin selector
      official y Lcws;y:Lcom/mojang/serialization/Codec;
      intermediary field_24983 Lnet/minecraft/class_3284;field_24983:Lcom/mojang/serialization/Codec;
      named codec Lnet/minecraft/world/gen/decorator/Decorator;codec:Lcom/mojang/serialization/Codec;
  • Constructor Details

    • Decorator

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

    • register

      private static <T extends DecoratorConfig,​ G extends Decorator<T>> G register​(String registryName, G decorator)
      Mappings:
      Namespace Name Mixin selector
      official a Lcws;a(Ljava/lang/String;Lcws;)Lcws;
      intermediary method_14450 Lnet/minecraft/class_3284;method_14450(Ljava/lang/String;Lnet/minecraft/class_3284;)Lnet/minecraft/class_3284;
      named register Lnet/minecraft/world/gen/decorator/Decorator;register(Ljava/lang/String;Lnet/minecraft/world/gen/decorator/Decorator;)Lnet/minecraft/world/gen/decorator/Decorator;
    • configure

      public ConfiguredDecorator<DC> configure​(DC config)
      Mappings:
      Namespace Name Mixin selector
      official b Lcws;b(Lcsi;)Lcwg;
      intermediary method_23475 Lnet/minecraft/class_3284;method_23475(Lnet/minecraft/class_2998;)Lnet/minecraft/class_3243;
      named configure Lnet/minecraft/world/gen/decorator/Decorator;configure(Lnet/minecraft/world/gen/decorator/DecoratorConfig;)Lnet/minecraft/world/gen/decorator/ConfiguredDecorator;
    • getCodec

      public com.mojang.serialization.Codec<ConfiguredDecorator<DC>> getCodec()
      Mappings:
      Namespace Name Mixin selector
      official a Lcws;a()Lcom/mojang/serialization/Codec;
      intermediary method_28928 Lnet/minecraft/class_3284;method_28928()Lcom/mojang/serialization/Codec;
      named getCodec Lnet/minecraft/world/gen/decorator/Decorator;getCodec()Lcom/mojang/serialization/Codec;
    • getPositions

      public abstract Stream<BlockPos> getPositions​(DecoratorContext context, Random random, DC config, BlockPos pos)
      Mappings:
      Namespace Name Mixin selector
      official a Lcws;a(Lcwn;Ljava/util/Random;Lcsi;Lfx;)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;
    • toString

      public String toString()
      Overrides:
      toString in class Object
      Mappings:
      Namespace Name Mixin selector
      official toString Lcws;toString()Ljava/lang/String;
      intermediary toString Lnet/minecraft/class_3284;toString()Ljava/lang/String;
      named toString Lnet/minecraft/world/gen/decorator/Decorator;toString()Ljava/lang/String;