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

java.lang.Object
net.minecraft.world.gen.feature.ConfiguredFeature<FC,F>

public class ConfiguredFeature<FC extends FeatureConfig,F extends Feature<FC>> extends Object
Mappings:
Namespace Name
official cvv
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 Lcvv;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 Lcvv;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;
    • LIST_CODEC

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

      public static final Logger LOGGER
      Mappings:
      Namespace Name Mixin selector
      official d Lcvv;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 Lcvv;e:Lcwl;
      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 Lcvv;f:Lczf;
      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> Lcvv;<init>(Lcwl;Lczf;)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 a Lcvv;a()Lcwl;
      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 b Lcvv;b()Lczf;
      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;
    • withPlacement

      public PlacedFeature withPlacement(List<PlacementModifier> modifiers)
      Attaches placement modifiers to this configured feature. Attached placement modifiers will be applied before this configured feature is generated.
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official a Lcvv;a(Ljava/util/List;)Lddw;
      intermediary method_39593 Lnet/minecraft/class_2975;method_39593(Ljava/util/List;)Lnet/minecraft/class_6796;
      named withPlacement Lnet/minecraft/world/gen/feature/ConfiguredFeature;withPlacement(Ljava/util/List;)Lnet/minecraft/world/gen/feature/PlacedFeature;
    • withPlacement

      public PlacedFeature withPlacement(PlacementModifier[] modifiers)
      Attaches placement modifiers to this configured feature. Attached placement modifiers will be applied before this configured feature is generated.
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official a Lcvv;a([Lddz;)Lddw;
      intermediary method_39594 Lnet/minecraft/class_2975;method_39594([Lnet/minecraft/class_6797;)Lnet/minecraft/class_6796;
      named withPlacement Lnet/minecraft/world/gen/feature/ConfiguredFeature;withPlacement([Lnet/minecraft/world/gen/decorator/PlacementModifier;)Lnet/minecraft/world/gen/feature/PlacedFeature;
    • withWouldSurviveFilter

      public PlacedFeature withWouldSurviveFilter(Block block)
      Mappings:
      Namespace Name Mixin selector
      official a Lcvv;a(Lccy;)Lddw;
      intermediary method_39591 Lnet/minecraft/class_2975;method_39591(Lnet/minecraft/class_2248;)Lnet/minecraft/class_6796;
      named withWouldSurviveFilter Lnet/minecraft/world/gen/feature/ConfiguredFeature;withWouldSurviveFilter(Lnet/minecraft/block/Block;)Lnet/minecraft/world/gen/feature/PlacedFeature;
    • withInAirFilter

      public PlacedFeature withInAirFilter()
      Mappings:
      Namespace Name Mixin selector
      official c Lcvv;c()Lddw;
      intermediary method_39595 Lnet/minecraft/class_2975;method_39595()Lnet/minecraft/class_6796;
      named withInAirFilter Lnet/minecraft/world/gen/feature/ConfiguredFeature;withInAirFilter()Lnet/minecraft/world/gen/feature/PlacedFeature;
    • withBlockPredicateFilter

      public PlacedFeature withBlockPredicateFilter(BlockPredicate predicate)
      Mappings:
      Namespace Name Mixin selector
      official a Lcvv;a(Lcui;)Lddw;
      intermediary method_39592 Lnet/minecraft/class_2975;method_39592(Lnet/minecraft/class_6646;)Lnet/minecraft/class_6796;
      named withBlockPredicateFilter Lnet/minecraft/world/gen/feature/ConfiguredFeature;withBlockPredicateFilter(Lnet/minecraft/world/gen/blockpredicate/BlockPredicate;)Lnet/minecraft/world/gen/feature/PlacedFeature;
    • generate

      public boolean generate(StructureWorldAccess world, ChunkGenerator chunkGenerator, Random random, BlockPos origin)
      Mappings:
      Namespace Name Mixin selector
      official a Lcvv;a(Lcav;Lcpz;Ljava/util/Random;Lgh;)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 Lcvv;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