Class StrongholdPieces.StrongholdPiece
java.lang.Object
net.minecraft.world.level.levelgen.structure.StructurePiece
net.minecraft.world.level.levelgen.structure.structures.StrongholdPieces.StrongholdPiece
- Direct Known Subclasses:
StrongholdPieces.ChestCorridor
,StrongholdPieces.FillerCorridor
,StrongholdPieces.FiveCrossing
,StrongholdPieces.Library
,StrongholdPieces.PortalRoom
,StrongholdPieces.PrisonHall
,StrongholdPieces.RoomCrossing
,StrongholdPieces.StairsDown
,StrongholdPieces.Straight
,StrongholdPieces.StraightStairsDown
,StrongholdPieces.Turn
- Enclosing class:
- StrongholdPieces
-
Nested Class Summary
Modifier and TypeClassDescriptionprotected static enum
Nested classes/interfaces inherited from class net.minecraft.world.level.levelgen.structure.StructurePiece
StructurePiece.BlockSelector
-
Field Summary
Modifier and TypeFieldDescriptionFields inherited from class net.minecraft.world.level.levelgen.structure.StructurePiece
boundingBox, CAVE_AIR, genDepth
-
Constructor Summary
ModifierConstructorDescriptionprotected
StrongholdPiece
(StructurePieceType p_229874_, int p_229875_, BoundingBox p_229876_) StrongholdPiece
(StructurePieceType p_229878_, CompoundTag p_229879_) -
Method Summary
Modifier and TypeMethodDescriptionprotected void
addAdditionalSaveData
(StructurePieceSerializationContext p_229891_, CompoundTag p_229892_) protected void
generateSmallDoor
(WorldGenLevel p_229881_, RandomSource p_229882_, BoundingBox p_229883_, StrongholdPieces.StrongholdPiece.SmallDoorType p_229884_, int p_229885_, int p_229886_, int p_229887_) protected StructurePiece
generateSmallDoorChildForward
(StrongholdPieces.StartPiece p_229894_, StructurePieceAccessor p_229895_, RandomSource p_229896_, int p_229897_, int p_229898_) protected StructurePiece
generateSmallDoorChildLeft
(StrongholdPieces.StartPiece p_229902_, StructurePieceAccessor p_229903_, RandomSource p_229904_, int p_229905_, int p_229906_) protected StructurePiece
generateSmallDoorChildRight
(StrongholdPieces.StartPiece p_229908_, StructurePieceAccessor p_229909_, RandomSource p_229910_, int p_229911_, int p_229912_) protected static boolean
isOkBox
(BoundingBox p_229889_) randomSmallDoor
(RandomSource p_229900_) Methods inherited from class net.minecraft.world.level.levelgen.structure.StructurePiece
addChildren, canBeReplaced, createBoundingBox, createChest, createChest, createDispenser, createTag, fillColumnDown, findCollisionPiece, generateAirBox, generateBox, generateBox, generateBox, generateBox, generateMaybeBox, generateUpperHalfSphere, getBlock, getBoundingBox, getGenDepth, getLocatorPosition, getMirror, getOrientation, getRandomHorizontalDirection, getRotation, getType, getWorldPos, getWorldX, getWorldY, getWorldZ, isCloseToChunk, isInterior, isReplaceableByStructures, makeBoundingBox, maybeGenerateBlock, move, placeBlock, postProcess, reorient, setGenDepth, setOrientation
-
Field Details
-
entryDoor
-
-
Constructor Details
-
StrongholdPiece
-
StrongholdPiece
-
-
Method Details
-
addAdditionalSaveData
protected void addAdditionalSaveData(StructurePieceSerializationContext p_229891_, CompoundTag p_229892_) - Specified by:
addAdditionalSaveData
in classStructurePiece
-
generateSmallDoor
protected void generateSmallDoor(WorldGenLevel p_229881_, RandomSource p_229882_, BoundingBox p_229883_, StrongholdPieces.StrongholdPiece.SmallDoorType p_229884_, int p_229885_, int p_229886_, int p_229887_) -
randomSmallDoor
-
generateSmallDoorChildForward
@Nullable protected StructurePiece generateSmallDoorChildForward(StrongholdPieces.StartPiece p_229894_, StructurePieceAccessor p_229895_, RandomSource p_229896_, int p_229897_, int p_229898_) -
generateSmallDoorChildLeft
@Nullable protected StructurePiece generateSmallDoorChildLeft(StrongholdPieces.StartPiece p_229902_, StructurePieceAccessor p_229903_, RandomSource p_229904_, int p_229905_, int p_229906_) -
generateSmallDoorChildRight
@Nullable protected StructurePiece generateSmallDoorChildRight(StrongholdPieces.StartPiece p_229908_, StructurePieceAccessor p_229909_, RandomSource p_229910_, int p_229911_, int p_229912_) -
isOkBox
-