Class ConfiguredStructureFeature<FC extends FeatureConfiguration,F extends StructureFeature<FC>>
java.lang.Object
net.minecraft.world.level.levelgen.feature.ConfiguredStructureFeature<FC,F>
public class ConfiguredStructureFeature<FC extends FeatureConfiguration,F extends StructureFeature<FC>>
extends Object
-
Field Summary
Modifier and TypeFieldDescriptionfinal boolean
static final com.mojang.serialization.Codec<Holder<ConfiguredStructureFeature<?,
?>>> final FC
static final com.mojang.serialization.Codec<ConfiguredStructureFeature<?,
?>> final F
static final com.mojang.serialization.Codec<HolderSet<ConfiguredStructureFeature<?,
?>>> final Map<MobCategory,
StructureSpawnOverride> -
Constructor Summary
ConstructorDescriptionConfiguredStructureFeature
(F p_209747_, FC p_209748_, HolderSet<Biome> p_209749_, boolean p_209750_, Map<MobCategory, StructureSpawnOverride> p_209751_) -
Method Summary
Modifier and TypeMethodDescriptionadjustBoundingBox
(BoundingBox p_209754_) biomes()
generate
(RegistryAccess p_204708_, ChunkGenerator p_204709_, BiomeSource p_204710_, StructureManager p_204711_, long p_204712_, ChunkPos p_204713_, int p_204714_, LevelHeightAccessor p_204715_, Predicate<Holder<Biome>> p_204716_)
-
Field Details
-
DIRECT_CODEC
-
CODEC
-
LIST_CODEC
public static final com.mojang.serialization.Codec<HolderSet<ConfiguredStructureFeature<?,?>>> LIST_CODEC -
feature
-
config
-
biomes
-
spawnOverrides
-
adaptNoise
public final boolean adaptNoise
-
-
Constructor Details
-
ConfiguredStructureFeature
public ConfiguredStructureFeature(F p_209747_, FC p_209748_, HolderSet<Biome> p_209749_, boolean p_209750_, Map<MobCategory, StructureSpawnOverride> p_209751_)
-
-
Method Details
-
generate
public StructureStart generate(RegistryAccess p_204708_, ChunkGenerator p_204709_, BiomeSource p_204710_, StructureManager p_204711_, long p_204712_, ChunkPos p_204713_, int p_204714_, LevelHeightAccessor p_204715_, Predicate<Holder<Biome>> p_204716_) -
biomes
-
adjustBoundingBox
-