Class WoodlandMansionPieces.MansionPiecePlacer
java.lang.Object
net.minecraft.world.level.levelgen.structure.structures.WoodlandMansionPieces.MansionPiecePlacer
- Enclosing class:
WoodlandMansionPieces
-
Field Summary
Modifier and TypeFieldDescriptionprivate final RandomSource
private int
private int
private final StructureTemplateManager
-
Constructor Summary
ConstructorDescriptionMansionPiecePlacer
(StructureTemplateManager p_230078_, RandomSource p_230079_) -
Method Summary
Modifier and TypeMethodDescriptionprivate void
addRoom1x1
(List<WoodlandMansionPieces.WoodlandMansionPiece> p_230109_, BlockPos p_230110_, Rotation p_230111_, Direction p_230112_, WoodlandMansionPieces.FloorRoomCollection p_230113_) private void
addRoom1x2
(List<WoodlandMansionPieces.WoodlandMansionPiece> p_230122_, BlockPos p_230123_, Rotation p_230124_, Direction p_230125_, Direction p_230126_, WoodlandMansionPieces.FloorRoomCollection p_230127_, boolean p_230128_) private void
addRoom2x2
(List<WoodlandMansionPieces.WoodlandMansionPiece> p_230115_, BlockPos p_230116_, Rotation p_230117_, Direction p_230118_, Direction p_230119_, WoodlandMansionPieces.FloorRoomCollection p_230120_) private void
addRoom2x2Secret
(List<WoodlandMansionPieces.WoodlandMansionPiece> p_230098_, BlockPos p_230099_, Rotation p_230100_, WoodlandMansionPieces.FloorRoomCollection p_230101_) void
createMansion
(BlockPos p_230081_, Rotation p_230082_, List<WoodlandMansionPieces.WoodlandMansionPiece> p_230083_, WoodlandMansionPieces.MansionGrid p_230084_) private void
createRoof
(List<WoodlandMansionPieces.WoodlandMansionPiece> p_230103_, BlockPos p_230104_, Rotation p_230105_, WoodlandMansionPieces.SimpleGrid p_230106_, WoodlandMansionPieces.SimpleGrid p_230107_) private void
entrance
(List<WoodlandMansionPieces.WoodlandMansionPiece> p_230086_, WoodlandMansionPieces.PlacementData p_230087_) private void
traverseInnerTurn
(List<WoodlandMansionPieces.WoodlandMansionPiece> p_230136_, WoodlandMansionPieces.PlacementData p_230137_) private void
traverseOuterWalls
(List<WoodlandMansionPieces.WoodlandMansionPiece> p_230089_, WoodlandMansionPieces.PlacementData p_230090_, WoodlandMansionPieces.SimpleGrid p_230091_, Direction p_230092_, int p_230093_, int p_230094_, int p_230095_, int p_230096_) private void
traverseTurn
(List<WoodlandMansionPieces.WoodlandMansionPiece> p_230133_, WoodlandMansionPieces.PlacementData p_230134_) private void
traverseWallPiece
(List<WoodlandMansionPieces.WoodlandMansionPiece> p_230130_, WoodlandMansionPieces.PlacementData p_230131_)
-
Field Details
-
structureTemplateManager
-
random
-
startX
private int startX -
startY
private int startY
-
-
Constructor Details
-
MansionPiecePlacer
-
-
Method Details
-
createMansion
public void createMansion(BlockPos p_230081_, Rotation p_230082_, List<WoodlandMansionPieces.WoodlandMansionPiece> p_230083_, WoodlandMansionPieces.MansionGrid p_230084_) -
traverseOuterWalls
private void traverseOuterWalls(List<WoodlandMansionPieces.WoodlandMansionPiece> p_230089_, WoodlandMansionPieces.PlacementData p_230090_, WoodlandMansionPieces.SimpleGrid p_230091_, Direction p_230092_, int p_230093_, int p_230094_, int p_230095_, int p_230096_) -
createRoof
private void createRoof(List<WoodlandMansionPieces.WoodlandMansionPiece> p_230103_, BlockPos p_230104_, Rotation p_230105_, WoodlandMansionPieces.SimpleGrid p_230106_, @Nullable WoodlandMansionPieces.SimpleGrid p_230107_) -
entrance
private void entrance(List<WoodlandMansionPieces.WoodlandMansionPiece> p_230086_, WoodlandMansionPieces.PlacementData p_230087_) -
traverseWallPiece
private void traverseWallPiece(List<WoodlandMansionPieces.WoodlandMansionPiece> p_230130_, WoodlandMansionPieces.PlacementData p_230131_) -
traverseTurn
private void traverseTurn(List<WoodlandMansionPieces.WoodlandMansionPiece> p_230133_, WoodlandMansionPieces.PlacementData p_230134_) -
traverseInnerTurn
private void traverseInnerTurn(List<WoodlandMansionPieces.WoodlandMansionPiece> p_230136_, WoodlandMansionPieces.PlacementData p_230137_) -
addRoom1x1
private void addRoom1x1(List<WoodlandMansionPieces.WoodlandMansionPiece> p_230109_, BlockPos p_230110_, Rotation p_230111_, Direction p_230112_, WoodlandMansionPieces.FloorRoomCollection p_230113_) -
addRoom1x2
private void addRoom1x2(List<WoodlandMansionPieces.WoodlandMansionPiece> p_230122_, BlockPos p_230123_, Rotation p_230124_, Direction p_230125_, Direction p_230126_, WoodlandMansionPieces.FloorRoomCollection p_230127_, boolean p_230128_) -
addRoom2x2
private void addRoom2x2(List<WoodlandMansionPieces.WoodlandMansionPiece> p_230115_, BlockPos p_230116_, Rotation p_230117_, Direction p_230118_, Direction p_230119_, WoodlandMansionPieces.FloorRoomCollection p_230120_) -
addRoom2x2Secret
private void addRoom2x2Secret(List<WoodlandMansionPieces.WoodlandMansionPiece> p_230098_, BlockPos p_230099_, Rotation p_230100_, WoodlandMansionPieces.FloorRoomCollection p_230101_)
-