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 dci
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 Summary
Modifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<ConfiguredFeature<?,
?>> private final FC
The field for theconfig
record component.private final F
The field for thefeature
record component.static final com.mojang.serialization.Codec<RegistryEntryList<ConfiguredFeature<?,
?>>> static final com.mojang.serialization.Codec<RegistryEntry<ConfiguredFeature<?,
?>>> -
Constructor Summary
ConstructorDescriptionConfiguredFeature
(F feature, FC config) Creates an instance of aConfiguredFeature
record class. -
Method Summary
Modifier and TypeMethodDescriptionconfig()
Returns the value of theconfig
record component.final boolean
Indicates whether some other object is "equal to" this one.feature()
Returns the value of thefeature
record component.boolean
generate
(StructureWorldAccess world, ChunkGenerator chunkGenerator, Random random, BlockPos origin) Stream<ConfiguredFeature<?,
?>> final int
hashCode()
Returns a hash code value for this object.toString()
Returns a string representation of this record class.
-
Field Details
-
feature
The field for thefeature
record component. -
config
The field for theconfig
record component. -
CODEC
- Mappings:
Namespace Name Mixin selector official a
Ldci;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<RegistryEntry<ConfiguredFeature<?,?>>> REGISTRY_CODEC- Mappings:
Namespace Name Mixin selector official b
Ldci;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<RegistryEntryList<ConfiguredFeature<?,?>>> LIST_CODEC- Mappings:
Namespace Name Mixin selector official c
Ldci;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
-
generate
public boolean generate(StructureWorldAccess world, ChunkGenerator chunkGenerator, Random random, BlockPos origin) - Mappings:
Namespace Name Mixin selector official a
Ldci;a(Lcgs;Lcwn;Lalu;Lgt;)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
Ldci;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;
-
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 thefeature
record component.- Returns:
- the value of the
feature
record component
-
config
Returns the value of theconfig
record component.- Returns:
- the value of the
config
record component
-