public class RuinedPortalFeature extends StructureFeature<RuinedPortalFeatureConfig>
Modifier and Type | Class and Description |
---|---|
static class |
RuinedPortalFeature.Start |
static class |
RuinedPortalFeature.Type |
StructureFeature.StructureStartFactory<C extends FeatureConfig>
Modifier and Type | Field and Description |
---|---|
private static String[] |
COMMON_PORTAL_STRUCTURE_IDS |
private static String[] |
RARE_PORTAL_STRUCTURE_IDS |
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 |
---|
RuinedPortalFeature(com.mojang.serialization.Codec<RuinedPortalFeatureConfig> codec) |
Modifier and Type | Method and Description |
---|---|
private static int |
choose(Random random,
int min,
int max) |
private static int |
choosePlacementHeight(Random random,
int min,
int max) |
StructureFeature.StructureStartFactory<RuinedPortalFeatureConfig> |
getStructureStartFactory() |
private static boolean |
method_27209(BlockPos blockPos,
Biome biome) |
private static int |
method_27211(Random random,
ChunkGenerator chunkGenerator,
RuinedPortalStructurePiece.VerticalPlacement verticalPlacement,
boolean bool,
int int2,
int int3,
BlockBox blockBox) |
configure, getCodec, getCreatureSpawns, getGenerationStep, getMonsterSpawns, getName, getStartChunk, isUniformDistribution, locateStructure, method_28664, readStructureStart, shouldStartAt, tryPlaceStart
private static final String[] COMMON_PORTAL_STRUCTURE_IDS
private static final String[] RARE_PORTAL_STRUCTURE_IDS
public RuinedPortalFeature(com.mojang.serialization.Codec<RuinedPortalFeatureConfig> codec)
public StructureFeature.StructureStartFactory<RuinedPortalFeatureConfig> getStructureStartFactory()
getStructureStartFactory
in class StructureFeature<RuinedPortalFeatureConfig>
private static int method_27211(Random random, ChunkGenerator chunkGenerator, RuinedPortalStructurePiece.VerticalPlacement verticalPlacement, boolean bool, int int2, int int3, BlockBox blockBox)
private static int choose(Random random, int min, int max)
private static int choosePlacementHeight(Random random, int min, int max)