Package net.minecraft.structure
Class StrongholdGenerator.Piece
java.lang.Object
net.minecraft.structure.StructurePiece
net.minecraft.structure.StrongholdGenerator.Piece
- Direct Known Subclasses:
StrongholdGenerator.ChestCorridor,StrongholdGenerator.Corridor,StrongholdGenerator.FiveWayCrossing,StrongholdGenerator.Library,StrongholdGenerator.PortalRoom,StrongholdGenerator.PrisonHall,StrongholdGenerator.SmallCorridor,StrongholdGenerator.SpiralStaircase,StrongholdGenerator.SquareRoom,StrongholdGenerator.Stairs,StrongholdGenerator.Turn
- Enclosing class:
- StrongholdGenerator
abstract static class StrongholdGenerator.Piece extends StructurePiece
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classStrongholdGenerator.Piece.EntranceTypeNested classes/interfaces inherited from class net.minecraft.structure.StructurePiece
StructurePiece.BlockRandomizer -
Field Summary
Fields Modifier and Type Field Description protected StrongholdGenerator.Piece.EntranceTypeentryDoor -
Constructor Summary
Constructors Modifier Constructor Description protectedPiece(StructurePieceType type, int length)Piece(StructurePieceType type, CompoundTag tag) -
Method Summary
Modifier and Type Method Description protected voidgenerateEntrance(WorldAccess world, Random random, BlockBox boundingBox, StrongholdGenerator.Piece.EntranceType type, int x, int y, int z)protected StrongholdGenerator.Piece.EntranceTypegetRandomEntrance(Random random)protected StructurePiecemethod_14870(StrongholdGenerator.Start start, List<StructurePiece> list, Random random, int int2, int int3)protected static booleanmethod_14871(BlockBox blockBox)protected StructurePiecemethod_14873(StrongholdGenerator.Start start, List<StructurePiece> list, Random random, int int2, int int3)protected StructurePiecemethod_14874(StrongholdGenerator.Start start, List<StructurePiece> list, Random random, int int2, int int3)protected voidtoNbt(CompoundTag tag)Methods inherited from class net.minecraft.structure.StructurePiece
addBlock, addBlockWithRandomThreshold, addChest, addChest, addDispenser, applyXTransform, applyYTransform, applyZTransform, fill, fillWithOutline, fillWithOutline, fillWithOutlineUnderSealevel, generate, getBlockAt, getBoundingBox, getFacing, getLength, getOverlappingPiece, getRotation, getTag, getType, intersectsChunk, isUnderSeaLevel, method_14916, method_14919, method_14936, method_14937, placeJigsaw, setOrientation, translate
-
Field Details
-
Constructor Details
-
Method Details
-
toNbt
- Specified by:
toNbtin classStructurePiece
-
generateEntrance
protected void generateEntrance(WorldAccess world, Random random, BlockBox boundingBox, StrongholdGenerator.Piece.EntranceType type, int x, int y, int z) -
getRandomEntrance
-
method_14874
@Nullable protected StructurePiece method_14874(StrongholdGenerator.Start start, List<StructurePiece> list, Random random, int int2, int int3) -
method_14870
@Nullable protected StructurePiece method_14870(StrongholdGenerator.Start start, List<StructurePiece> list, Random random, int int2, int int3) -
method_14873
@Nullable protected StructurePiece method_14873(StrongholdGenerator.Start start, List<StructurePiece> list, Random random, int int2, int int3) -
method_14871
-