Class RuinedPortalStructure
- java.lang.Object
-
- net.minecraftforge.registries.ForgeRegistryEntry<Structure<?>>
-
- net.minecraft.world.gen.feature.structure.Structure<RuinedPortalFeature>
-
- net.minecraft.world.gen.feature.structure.RuinedPortalStructure
-
- All Implemented Interfaces:
IForgeStructure
,IForgeRegistryEntry<Structure<?>>
public class RuinedPortalStructure extends Structure<RuinedPortalFeature>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
RuinedPortalStructure.Location
static class
RuinedPortalStructure.Start
-
Nested classes/interfaces inherited from class net.minecraft.world.gen.feature.structure.Structure
Structure.IStartFactory<C extends IFeatureConfig>
-
Nested classes/interfaces inherited from class net.minecraftforge.registries.ForgeRegistryEntry
ForgeRegistryEntry.UncheckedRegistryEntry<V extends IForgeRegistryEntry<V>>
-
-
Field Summary
Fields Modifier and Type Field Description private static java.lang.String[]
STRUCTURE_LOCATION_GIANT_PORTALS
private static java.lang.String[]
STRUCTURE_LOCATION_PORTALS
-
Fields inherited from class net.minecraft.world.gen.feature.structure.Structure
BASTION_REMNANT, BURIED_TREASURE, DESERT_PYRAMID, END_CITY, IGLOO, JUNGLE_TEMPLE, MINESHAFT, NETHER_BRIDGE, NETHER_FOSSIL, NOISE_AFFECTING_FEATURES, OCEAN_MONUMENT, OCEAN_RUIN, PILLAGER_OUTPOST, RUINED_PORTAL, SHIPWRECK, STRONGHOLD, STRUCTURES_REGISTRY, SWAMP_HUT, VILLAGE, WOODLAND_MANSION
-
Fields inherited from class net.minecraftforge.registries.ForgeRegistryEntry
delegate
-
-
Constructor Summary
Constructors Constructor Description RuinedPortalStructure(com.mojang.serialization.Codec<RuinedPortalFeature> p_i231984_1_)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description private static int
findSuitableY(java.util.Random p_236339_0_, ChunkGenerator p_236339_1_, RuinedPortalPiece.Location p_236339_2_, boolean p_236339_3_, int p_236339_4_, int p_236339_5_, MutableBoundingBox p_236339_6_)
private static int
getRandomWithinInterval(java.util.Random p_236338_0_, int p_236338_1_, int p_236338_2_)
Structure.IStartFactory<RuinedPortalFeature>
getStartFactory()
private static boolean
isCold(BlockPos p_236337_0_, Biome p_236337_1_)
private static int
randomIntInclusive(java.util.Random p_236335_0_, int p_236335_1_, int p_236335_2_)
-
Methods inherited from class net.minecraft.world.gen.feature.structure.Structure
bootstrap, configured, configuredStructureCodec, generate, getFeatureName, getNearestGeneratedFeature, getPotentialFeatureChunk, getSpawnList, getSpecialAnimals, getSpecialEnemies, isFeatureChunk, linearSeparation, loadStaticStart, step
-
Methods inherited from class net.minecraftforge.registries.ForgeRegistryEntry
getRegistryName, getRegistryType, setRegistryName, setRegistryName, setRegistryName
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface net.minecraftforge.common.extensions.IForgeStructure
getDefaultCreatureSpawnList, getDefaultRestrictsSpawnsToInside, getDefaultSpawnList, getStructure
-
-
-
-
Constructor Detail
-
RuinedPortalStructure
public RuinedPortalStructure(com.mojang.serialization.Codec<RuinedPortalFeature> p_i231984_1_)
-
-
Method Detail
-
getStartFactory
public Structure.IStartFactory<RuinedPortalFeature> getStartFactory()
- Specified by:
getStartFactory
in classStructure<RuinedPortalFeature>
-
findSuitableY
private static int findSuitableY(java.util.Random p_236339_0_, ChunkGenerator p_236339_1_, RuinedPortalPiece.Location p_236339_2_, boolean p_236339_3_, int p_236339_4_, int p_236339_5_, MutableBoundingBox p_236339_6_)
-
randomIntInclusive
private static int randomIntInclusive(java.util.Random p_236335_0_, int p_236335_1_, int p_236335_2_)
-
getRandomWithinInterval
private static int getRandomWithinInterval(java.util.Random p_236338_0_, int p_236338_1_, int p_236338_2_)
-
-