Package net.minecraft.world.gen.feature
Record Class ConfiguredFeature<FC extends FeatureConfig,F extends Feature<FC>> 
java.lang.Object
java.lang.Record
net.minecraft.world.gen.feature.ConfiguredFeature<FC,F> 
- Record Components:
- feature-
- config-
public record ConfiguredFeature<FC extends FeatureConfig,F extends Feature<FC>> (F extends Feature<FC> feature, FC extends FeatureConfig config)
extends Record
- Mappings:
- Namespace - Name - official - dkb- intermediary - net/minecraft/class_2975- named - net/minecraft/world/gen/feature/ConfiguredFeature- official - d- intermediary - comp_332- named - feature- official - e- intermediary - comp_333- named - config
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<ConfiguredFeature<?,?>> private final FCThe field for theconfigrecord component.private final FThe field for thefeaturerecord component.static final com.mojang.serialization.Codec<RegistryEntryList<ConfiguredFeature<?,?>>> static final com.mojang.serialization.Codec<RegistryEntry<ConfiguredFeature<?,?>>> 
- 
Constructor SummaryConstructorsConstructorDescriptionConfiguredFeature(F feature, FC config) Creates an instance of aConfiguredFeaturerecord class.
- 
Method SummaryModifier and TypeMethodDescriptionconfig()Returns the value of theconfigrecord component.final booleanIndicates whether some other object is "equal to" this one.feature()Returns the value of thefeaturerecord component.booleangenerate(StructureWorldAccess world, ChunkGenerator chunkGenerator, Random random, BlockPos origin) Stream<ConfiguredFeature<?,?>> final inthashCode()Returns a hash code value for this object.toString()Returns a string representation of this record class.
- 
Field Details- 
featureThe field for thefeaturerecord component.
- 
configThe field for theconfigrecord component.
- 
CODEC- Mappings:
- Namespace - Name - Mixin selector - official - a- Ldkb;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_CODECpublic static final com.mojang.serialization.Codec<RegistryEntry<ConfiguredFeature<?,?>>> REGISTRY_CODEC- Mappings:
- Namespace - Name - Mixin selector - official - b- Ldkb;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_CODECpublic static final com.mojang.serialization.Codec<RegistryEntryList<ConfiguredFeature<?,?>>> LIST_CODEC- Mappings:
- Namespace - Name - Mixin selector - official - c- Ldkb;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;
 
 
- 
- 
Constructor Details
- 
Method Details- 
generatepublic boolean generate(StructureWorldAccess world, ChunkGenerator chunkGenerator, Random random, BlockPos origin) - Mappings:
- Namespace - Name - Mixin selector - official - a- Ldkb;a(Lcng;Lddy;Lapf;Lgu;)Z- intermediary - method_12862- Lnet/minecraft/class_2975;method_12862(Lnet/minecraft/class_5281;Lnet/minecraft/class_2794;Lnet/minecraft/class_5819;Lnet/minecraft/class_2338;)Z- named - generate- Lnet/minecraft/world/gen/feature/ConfiguredFeature;generate(Lnet/minecraft/world/StructureWorldAccess;Lnet/minecraft/world/gen/chunk/ChunkGenerator;Lnet/minecraft/util/math/random/Random;Lnet/minecraft/util/math/BlockPos;)Z
 
- 
getDecoratedFeatures- Mappings:
- Namespace - Name - Mixin selector - official - a- Ldkb;a()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;
 
- 
toStringReturns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
- 
hashCodepublic final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
- 
equalsIndicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object).
- 
featureReturns the value of thefeaturerecord component.- Returns:
- the value of the featurerecord component
 
- 
configReturns the value of theconfigrecord component.- Returns:
- the value of the configrecord component
 
 
-