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 crn
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 Lcrn;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 Lcrn;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 Lcrn;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 Lcrn;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 Lcrn;e:Lcsf;
      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 Lcrn;f:Lcvg;
      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> Lcrn;<init>(Lcsf;Lcvg;)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 Lcrn;b()Lcsf;
      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 Lcrn;c()Lcvg;
      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 Lcrn;b(Lczo;)Lcrn;
      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 Lcrn;a(F)Lcuo;
      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 origin)
      Mappings:
      Namespace Name Mixin selector
      official a Lcrn;a(Lbxk;Lcmn;Ljava/util/Random;Lgg;)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
    • getDecoratedFeatures

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

      public String toString()
      Overrides:
      toString in class Object