Class WoodlandMansionPieces.Grid
- java.lang.Object
-
- net.minecraft.world.gen.feature.structure.WoodlandMansionPieces.Grid
-
- Enclosing class:
- WoodlandMansionPieces
static class WoodlandMansionPieces.Grid extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description private WoodlandMansionPieces.SimpleGrid
baseGrid
private int
entranceX
private int
entranceY
private WoodlandMansionPieces.SimpleGrid[]
floorRooms
private java.util.Random
random
private WoodlandMansionPieces.SimpleGrid
thirdFloorGrid
-
Constructor Summary
Constructors Constructor Description Grid(java.util.Random p_i47362_1_)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description private boolean
cleanEdges(WoodlandMansionPieces.SimpleGrid p_191111_1_)
Direction
get1x2RoomDirection(WoodlandMansionPieces.SimpleGrid p_191113_1_, int p_191113_2_, int p_191113_3_, int p_191113_4_, int p_191113_5_)
private void
identifyRooms(WoodlandMansionPieces.SimpleGrid p_191116_1_, WoodlandMansionPieces.SimpleGrid p_191116_2_)
static boolean
isHouse(WoodlandMansionPieces.SimpleGrid p_191109_0_, int p_191109_1_, int p_191109_2_)
boolean
isRoomId(WoodlandMansionPieces.SimpleGrid p_191114_1_, int p_191114_2_, int p_191114_3_, int p_191114_4_, int p_191114_5_)
private void
recursiveCorridor(WoodlandMansionPieces.SimpleGrid p_191110_1_, int p_191110_2_, int p_191110_3_, Direction p_191110_4_, int p_191110_5_)
private void
setupThirdFloor()
-
-
-
Field Detail
-
random
private final java.util.Random random
-
baseGrid
private final WoodlandMansionPieces.SimpleGrid baseGrid
-
thirdFloorGrid
private final WoodlandMansionPieces.SimpleGrid thirdFloorGrid
-
floorRooms
private final WoodlandMansionPieces.SimpleGrid[] floorRooms
-
entranceX
private final int entranceX
-
entranceY
private final int entranceY
-
-
Method Detail
-
isHouse
public static boolean isHouse(WoodlandMansionPieces.SimpleGrid p_191109_0_, int p_191109_1_, int p_191109_2_)
-
isRoomId
public boolean isRoomId(WoodlandMansionPieces.SimpleGrid p_191114_1_, int p_191114_2_, int p_191114_3_, int p_191114_4_, int p_191114_5_)
-
get1x2RoomDirection
@Nullable public Direction get1x2RoomDirection(WoodlandMansionPieces.SimpleGrid p_191113_1_, int p_191113_2_, int p_191113_3_, int p_191113_4_, int p_191113_5_)
-
recursiveCorridor
private void recursiveCorridor(WoodlandMansionPieces.SimpleGrid p_191110_1_, int p_191110_2_, int p_191110_3_, Direction p_191110_4_, int p_191110_5_)
-
cleanEdges
private boolean cleanEdges(WoodlandMansionPieces.SimpleGrid p_191111_1_)
-
setupThirdFloor
private void setupThirdFloor()
-
identifyRooms
private void identifyRooms(WoodlandMansionPieces.SimpleGrid p_191116_1_, WoodlandMansionPieces.SimpleGrid p_191116_2_)
-
-