Class RuinedPortalStructure
java.lang.Object
net.minecraft.world.level.levelgen.structure.Structure
net.minecraft.world.level.levelgen.structure.structures.RuinedPortalStructure
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.world.level.levelgen.structure.Structure
Structure.GenerationContext, Structure.GenerationStub, Structure.StructureSettings
-
Field Summary
Modifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<RuinedPortalStructure>
private static final int
private static final float
private final List<RuinedPortalStructure.Setup>
private static final String[]
private static final String[]
Fields inherited from class net.minecraft.world.level.levelgen.structure.Structure
DIRECT_CODEC
-
Constructor Summary
ConstructorDescriptionRuinedPortalStructure
(Structure.StructureSettings p_229260_, List<RuinedPortalStructure.Setup> p_229261_) RuinedPortalStructure
(Structure.StructureSettings p_229257_, RuinedPortalStructure.Setup p_229258_) -
Method Summary
Modifier and TypeMethodDescriptionfindGenerationPoint
(Structure.GenerationContext p_229285_) private static int
findSuitableY
(RandomSource p_229267_, ChunkGenerator p_229268_, RuinedPortalPiece.VerticalPlacement p_229269_, boolean p_229270_, int p_229271_, int p_229272_, BoundingBox p_229273_, LevelHeightAccessor p_229274_, RandomState p_229275_) private static int
getRandomWithinInterval
(RandomSource p_229263_, int p_229264_, int p_229265_) private static boolean
private static boolean
sample
(WorldgenRandom p_229282_, float p_229283_) type()
Methods inherited from class net.minecraft.world.level.levelgen.structure.Structure
adjustBoundingBox, afterPlace, biomes, generate, getLowestY, getLowestY, getLowestYIn5by5BoxOffset7Blocks, getModifiedStructureSettings, modifiableStructureInfo, onTopOfChunkCenter, settingsCodec, simpleCodec, spawnOverrides, step, terrainAdaptation
-
Field Details
-
STRUCTURE_LOCATION_PORTALS
-
STRUCTURE_LOCATION_GIANT_PORTALS
-
PROBABILITY_OF_GIANT_PORTAL
private static final float PROBABILITY_OF_GIANT_PORTAL- See Also:
-
MIN_Y_INDEX
private static final int MIN_Y_INDEX- See Also:
-
setups
-
CODEC
-
-
Constructor Details
-
RuinedPortalStructure
public RuinedPortalStructure(Structure.StructureSettings p_229260_, List<RuinedPortalStructure.Setup> p_229261_) -
RuinedPortalStructure
public RuinedPortalStructure(Structure.StructureSettings p_229257_, RuinedPortalStructure.Setup p_229258_)
-
-
Method Details
-
findGenerationPoint
public Optional<Structure.GenerationStub> findGenerationPoint(Structure.GenerationContext p_229285_) - Specified by:
findGenerationPoint
in classStructure
-
sample
-
isCold
-
findSuitableY
private static int findSuitableY(RandomSource p_229267_, ChunkGenerator p_229268_, RuinedPortalPiece.VerticalPlacement p_229269_, boolean p_229270_, int p_229271_, int p_229272_, BoundingBox p_229273_, LevelHeightAccessor p_229274_, RandomState p_229275_) -
getRandomWithinInterval
-
type
-