Package net.minecraft.world.gen.feature
Class WoodlandMansionFeature
java.lang.Object
net.minecraft.world.gen.feature.StructureFeature<DefaultFeatureConfig>
net.minecraft.world.gen.feature.WoodlandMansionFeature
public class WoodlandMansionFeature extends StructureFeature<DefaultFeatureConfig>
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
WoodlandMansionFeature.Start
Nested classes/interfaces inherited from class net.minecraft.world.gen.feature.StructureFeature
StructureFeature.StructureStartFactory<C extends FeatureConfig>
-
Field Summary
Fields inherited from class net.minecraft.world.gen.feature.StructureFeature
BASTION_REMNANT, BURIED_TREASURE, DESERT_PYRAMID, END_CITY, FORTRESS, IGLOO, JIGSAW_STRUCTURES, JUNGLE_PYRAMID, MANSION, MINESHAFT, MONUMENT, NETHER_FOSSIL, OCEAN_RUIN, PILLAGER_OUTPOST, RUINED_PORTAL, SHIPWRECK, STRONGHOLD, STRUCTURES, SWAMP_HUT, VILLAGE
-
Constructor Summary
Constructors Constructor Description WoodlandMansionFeature(com.mojang.serialization.Codec<DefaultFeatureConfig> codec)
-
Method Summary
Modifier and Type Method Description StructureFeature.StructureStartFactory<DefaultFeatureConfig>
getStructureStartFactory()
protected boolean
isUniformDistribution()
If true, this structure's start position will be uniformly distributed within a placement grid cell.protected boolean
shouldStartAt(ChunkGenerator chunkGenerator, BiomeSource biomeSource, long long2, ChunkRandom chunkRandom, int int2, int int3, Biome biome, ChunkPos chunkPos, DefaultFeatureConfig defaultFeatureConfig)
Checks if this structure can actually be placed at a potential structure position determined viaStructureFeature.getStartChunk(net.minecraft.world.gen.chunk.StructureConfig, long, net.minecraft.world.gen.ChunkRandom, int, int)
.Methods inherited from class net.minecraft.world.gen.feature.StructureFeature
configure, getCodec, getCreatureSpawns, getGenerationStep, getMonsterSpawns, getName, getStartChunk, locateStructure, method_28664, readStructureStart, tryPlaceStart
-
Constructor Details
-
WoodlandMansionFeature
-
-
Method Details
-
isUniformDistribution
protected boolean isUniformDistribution()If true, this structure's start position will be uniformly distributed within a placement grid cell. If false, the structure's starting point will be biased towards the center of the cell.- Overrides:
isUniformDistribution
in classStructureFeature<DefaultFeatureConfig>
-
shouldStartAt
protected boolean shouldStartAt(ChunkGenerator chunkGenerator, BiomeSource biomeSource, long long2, ChunkRandom chunkRandom, int int2, int int3, Biome biome, ChunkPos chunkPos, DefaultFeatureConfig defaultFeatureConfig)Description copied from class:StructureFeature
Checks if this structure can actually be placed at a potential structure position determined viaStructureFeature.getStartChunk(net.minecraft.world.gen.chunk.StructureConfig, long, net.minecraft.world.gen.ChunkRandom, int, int)
. Specific structures override this method to reduce the spawn probability or restrict the spawn in some other way.- Overrides:
shouldStartAt
in classStructureFeature<DefaultFeatureConfig>
-
getStructureStartFactory
- Specified by:
getStructureStartFactory
in classStructureFeature<DefaultFeatureConfig>
-