Class ConfiguredFeature<FC extends FeatureConfig,​F extends Feature<FC>>

java.lang.Object
net.minecraft.world.gen.feature.ConfiguredFeature<FC,​F>
All Implemented Interfaces:
Decoratable<ConfiguredFeature<?,​?>>

public class ConfiguredFeature<FC extends FeatureConfig,​F extends Feature<FC>>
extends Object
implements Decoratable<ConfiguredFeature<?,​?>>
Mappings:
Namespace Name
official cnx
intermediary net/minecraft/class_2975
named net/minecraft/world/gen/feature/ConfiguredFeature
  • Field Details

    • CODEC

      public static final com.mojang.serialization.Codec<ConfiguredFeature<?,​?>> CODEC
      Mappings:
      Namespace Name Mixin selector
      official a Lcnx;a:Lcom/mojang/serialization/Codec;
      intermediary field_25833 Lnet/minecraft/class_2975;field_25833:Lcom/mojang/serialization/Codec;
      named CODEC Lnet/minecraft/world/gen/feature/ConfiguredFeature;CODEC:Lcom/mojang/serialization/Codec;
    • REGISTRY_CODEC

      public static final com.mojang.serialization.Codec<Supplier<ConfiguredFeature<?,​?>>> REGISTRY_CODEC
      Mappings:
      Namespace Name Mixin selector
      official b Lcnx;b:Lcom/mojang/serialization/Codec;
      intermediary field_24833 Lnet/minecraft/class_2975;field_24833:Lcom/mojang/serialization/Codec;
      named REGISTRY_CODEC Lnet/minecraft/world/gen/feature/ConfiguredFeature;REGISTRY_CODEC:Lcom/mojang/serialization/Codec;
    • field_26756

      public static final com.mojang.serialization.Codec<List<Supplier<ConfiguredFeature<?,​?>>>> field_26756
      Mappings:
      Namespace Name Mixin selector
      official c Lcnx;c:Lcom/mojang/serialization/Codec;
      intermediary field_26756 Lnet/minecraft/class_2975;field_26756:Lcom/mojang/serialization/Codec;
      named field_26756 Lnet/minecraft/world/gen/feature/ConfiguredFeature;field_26756:Lcom/mojang/serialization/Codec;
    • LOGGER

      public static final Logger LOGGER
      Mappings:
      Namespace Name Mixin selector
      official d Lcnx;d:Lorg/apache/logging/log4j/Logger;
      intermediary field_21589 Lnet/minecraft/class_2975;field_21589:Lorg/apache/logging/log4j/Logger;
      named LOGGER Lnet/minecraft/world/gen/feature/ConfiguredFeature;LOGGER:Lorg/apache/logging/log4j/Logger;
    • feature

      public final F extends Feature<FC> feature
      Mappings:
      Namespace Name Mixin selector
      official e Lcnx;e:Lcoq;
      intermediary field_13376 Lnet/minecraft/class_2975;field_13376:Lnet/minecraft/class_3031;
      named feature Lnet/minecraft/world/gen/feature/ConfiguredFeature;feature:Lnet/minecraft/world/gen/feature/Feature;
    • config

      public final FC extends FeatureConfig config
      Mappings:
      Namespace Name Mixin selector
      official f Lcnx;f:Lcrk;
      intermediary field_13375 Lnet/minecraft/class_2975;field_13375:Lnet/minecraft/class_3037;
      named config Lnet/minecraft/world/gen/feature/ConfiguredFeature;config:Lnet/minecraft/world/gen/feature/FeatureConfig;
  • Constructor Details

    • ConfiguredFeature

      public ConfiguredFeature​(F feature, FC config)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lcnx;<init>(Lcoq;Lcrk;)V
      intermediary <init> Lnet/minecraft/class_2975;<init>(Lnet/minecraft/class_3031;Lnet/minecraft/class_3037;)V
      named <init> Lnet/minecraft/world/gen/feature/ConfiguredFeature;<init>(Lnet/minecraft/world/gen/feature/Feature;Lnet/minecraft/world/gen/feature/FeatureConfig;)V
  • Method Details

    • getFeature

      public F getFeature()
      Mappings:
      Namespace Name Mixin selector
      official b Lcnx;b()Lcoq;
      intermediary method_30380 Lnet/minecraft/class_2975;method_30380()Lnet/minecraft/class_3031;
      named getFeature Lnet/minecraft/world/gen/feature/ConfiguredFeature;getFeature()Lnet/minecraft/world/gen/feature/Feature;
    • getConfig

      public FC getConfig()
      Mappings:
      Namespace Name Mixin selector
      official c Lcnx;c()Lcrk;
      intermediary method_30381 Lnet/minecraft/class_2975;method_30381()Lnet/minecraft/class_3037;
      named getConfig Lnet/minecraft/world/gen/feature/ConfiguredFeature;getConfig()Lnet/minecraft/world/gen/feature/FeatureConfig;
    • decorate

      public ConfiguredFeature<?,​?> decorate​(ConfiguredDecorator<?> configuredDecorator)
      Specified by:
      decorate in interface Decoratable<FC extends FeatureConfig>
      Mappings:
      Namespace Name Mixin selector
      official b Lcnx;b(Lcvb;)Lcnx;
      intermediary method_23388 Lnet/minecraft/class_2975;method_23388(Lnet/minecraft/class_3243;)Lnet/minecraft/class_2975;
      named decorate Lnet/minecraft/world/gen/feature/ConfiguredFeature;decorate(Lnet/minecraft/world/gen/decorator/ConfiguredDecorator;)Lnet/minecraft/world/gen/feature/ConfiguredFeature;
    • withChance

      public RandomFeatureEntry withChance​(float chance)
      Mappings:
      Namespace Name Mixin selector
      official a Lcnx;a(F)Lcqs;
      intermediary method_23387 Lnet/minecraft/class_2975;method_23387(F)Lnet/minecraft/class_3226;
      named withChance Lnet/minecraft/world/gen/feature/ConfiguredFeature;withChance(F)Lnet/minecraft/world/gen/feature/RandomFeatureEntry;
    • generate

      public boolean generate​(StructureWorldAccess world, ChunkGenerator chunkGenerator, Random random, BlockPos pos)
      Mappings:
      Namespace Name Mixin selector
      official a Lcnx;a(Lbuq;Lcjn;Ljava/util/Random;Lfx;)Z
      intermediary method_12862 Lnet/minecraft/class_2975;method_12862(Lnet/minecraft/class_5281;Lnet/minecraft/class_2794;Ljava/util/Random;Lnet/minecraft/class_2338;)Z
      named generate Lnet/minecraft/world/gen/feature/ConfiguredFeature;generate(Lnet/minecraft/world/StructureWorldAccess;Lnet/minecraft/world/gen/chunk/ChunkGenerator;Ljava/util/Random;Lnet/minecraft/util/math/BlockPos;)Z
    • method_30648

      public Stream<ConfiguredFeature<?,​?>> method_30648()
      Mappings:
      Namespace Name Mixin selector
      official d Lcnx;d()Ljava/util/stream/Stream;
      intermediary method_30648 Lnet/minecraft/class_2975;method_30648()Ljava/util/stream/Stream;
      named method_30648 Lnet/minecraft/world/gen/feature/ConfiguredFeature;method_30648()Ljava/util/stream/Stream;