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 named net/minecraft/world/gen/feature/ConfiguredFeatureintermediary net/minecraft/class_2975official ebqnamed featureintermediary comp_332official dnamed configintermediary comp_333official e
-
Field Summary
FieldsModifier 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 Summary
ConstructorsConstructorDescriptionConfiguredFeature(F feature, FC config) Creates an instance of aConfiguredFeaturerecord class. -
Method Summary
Modifier 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
-
feature
The field for thefeaturerecord component. -
config
The field for theconfigrecord component. -
CODEC
- Mappings:
Namespace Name Mixin selector named CODECLnet/minecraft/world/gen/feature/ConfiguredFeature;CODEC:Lcom/mojang/serialization/Codec;intermediary field_25833Lnet/minecraft/class_2975;field_25833:Lcom/mojang/serialization/Codec;official aLebq;a:Lcom/mojang/serialization/Codec;
-
REGISTRY_CODEC
public static final com.mojang.serialization.Codec<RegistryEntry<ConfiguredFeature<?,?>>> REGISTRY_CODEC- Mappings:
Namespace Name Mixin selector named REGISTRY_CODECLnet/minecraft/world/gen/feature/ConfiguredFeature;REGISTRY_CODEC:Lcom/mojang/serialization/Codec;intermediary field_24833Lnet/minecraft/class_2975;field_24833:Lcom/mojang/serialization/Codec;official bLebq;b:Lcom/mojang/serialization/Codec;
-
LIST_CODEC
public static final com.mojang.serialization.Codec<RegistryEntryList<ConfiguredFeature<?,?>>> LIST_CODEC- Mappings:
Namespace Name Mixin selector named LIST_CODECLnet/minecraft/world/gen/feature/ConfiguredFeature;LIST_CODEC:Lcom/mojang/serialization/Codec;intermediary field_26756Lnet/minecraft/class_2975;field_26756:Lcom/mojang/serialization/Codec;official cLebq;c:Lcom/mojang/serialization/Codec;
-
-
Constructor Details
-
Method Details
-
generate
public boolean generate(StructureWorldAccess world, ChunkGenerator chunkGenerator, Random random, BlockPos origin) - Mappings:
Namespace Name Mixin selector named generateLnet/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;)Zintermediary method_12862Lnet/minecraft/class_2975;method_12862(Lnet/minecraft/class_5281;Lnet/minecraft/class_2794;Lnet/minecraft/class_5819;Lnet/minecraft/class_2338;)Zofficial aLebq;a(Ldds;Lduz;Layw;Ljd;)Z
-
getDecoratedFeatures
- Mappings:
Namespace Name Mixin selector named getDecoratedFeaturesLnet/minecraft/world/gen/feature/ConfiguredFeature;getDecoratedFeatures()Ljava/util/stream/Stream;intermediary method_30648Lnet/minecraft/class_2975;method_30648()Ljava/util/stream/Stream;official aLebq;a()Ljava/util/stream/Stream;
-
toString
Returns 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. -
hashCode
public 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. -
equals
Indicates 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). -
feature
Returns the value of thefeaturerecord component.- Returns:
- the value of the
featurerecord component
-
config
Returns the value of theconfigrecord component.- Returns:
- the value of the
configrecord component
-