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/ConfiguredFeature
intermediary net/minecraft/class_2975
official ebq
named feature
intermediary comp_332
official d
named config
intermediary comp_333
official e
-
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 named CODEC
Lnet/minecraft/world/gen/feature/ConfiguredFeature;CODEC:Lcom/mojang/serialization/Codec;
intermediary field_25833
Lnet/minecraft/class_2975;field_25833:Lcom/mojang/serialization/Codec;
official a
Lebq;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_CODEC
Lnet/minecraft/world/gen/feature/ConfiguredFeature;REGISTRY_CODEC:Lcom/mojang/serialization/Codec;
intermediary field_24833
Lnet/minecraft/class_2975;field_24833:Lcom/mojang/serialization/Codec;
official b
Lebq;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_CODEC
Lnet/minecraft/world/gen/feature/ConfiguredFeature;LIST_CODEC:Lcom/mojang/serialization/Codec;
intermediary field_26756
Lnet/minecraft/class_2975;field_26756:Lcom/mojang/serialization/Codec;
official c
Lebq;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 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
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
official a
Lebq;a(Ldds;Lduz;Layw;Ljd;)Z
-
getDecoratedFeatures
- Mappings:
Namespace Name Mixin selector named getDecoratedFeatures
Lnet/minecraft/world/gen/feature/ConfiguredFeature;getDecoratedFeatures()Ljava/util/stream/Stream;
intermediary method_30648
Lnet/minecraft/class_2975;method_30648()Ljava/util/stream/Stream;
official a
Lebq;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 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
-