public class MineshaftFeature extends StructureFeature<MineshaftFeatureConfig>
Modifier and Type | Class and Description |
---|---|
static class |
MineshaftFeature.Start |
static class |
MineshaftFeature.Type |
StructureFeature.StructureStartFactory<C extends FeatureConfig>
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 and Description |
---|
MineshaftFeature(com.mojang.serialization.Codec<MineshaftFeatureConfig> codec) |
Modifier and Type | Method and Description |
---|---|
StructureFeature.StructureStartFactory<MineshaftFeatureConfig> |
getStructureStartFactory() |
protected boolean |
shouldStartAt(ChunkGenerator chunkGenerator,
BiomeSource biomeSource,
long long2,
ChunkRandom chunkRandom,
int int2,
int int3,
Biome biome,
ChunkPos chunkPos,
MineshaftFeatureConfig mineshaftFeatureConfig)
Checks if this structure can actually be placed at a potential structure position determined via
StructureFeature.getStartChunk(net.minecraft.world.gen.chunk.StructureConfig, long, net.minecraft.world.gen.ChunkRandom, int, int) . |
configure, getCodec, getCreatureSpawns, getGenerationStep, getMonsterSpawns, getName, getStartChunk, isUniformDistribution, locateStructure, method_28664, readStructureStart, tryPlaceStart
public MineshaftFeature(com.mojang.serialization.Codec<MineshaftFeatureConfig> codec)
protected boolean shouldStartAt(ChunkGenerator chunkGenerator, BiomeSource biomeSource, long long2, ChunkRandom chunkRandom, int int2, int int3, Biome biome, ChunkPos chunkPos, MineshaftFeatureConfig mineshaftFeatureConfig)
StructureFeature
StructureFeature.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.shouldStartAt
in class StructureFeature<MineshaftFeatureConfig>
public StructureFeature.StructureStartFactory<MineshaftFeatureConfig> getStructureStartFactory()
getStructureStartFactory
in class StructureFeature<MineshaftFeatureConfig>