Class WoodlandMansionPieces.Grid
java.lang.Object
net.minecraft.world.gen.feature.structure.WoodlandMansionPieces.Grid
- Enclosing class:
- WoodlandMansionPieces
-
Field Summary
Modifier and TypeFieldDescriptionprivate final WoodlandMansionPieces.SimpleGrid
private final int
private final int
private final WoodlandMansionPieces.SimpleGrid[]
private final Random
private final WoodlandMansionPieces.SimpleGrid
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprivate boolean
cleanEdges
(WoodlandMansionPieces.SimpleGrid p_191111_1_) 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
-
Field Details
-
random
-
baseGrid
-
thirdFloorGrid
-
floorRooms
-
entranceX
private final int entranceX -
entranceY
private final int entranceY
-
-
Constructor Details
-
Grid
-
-
Method Details
-
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
-
setupThirdFloor
private void setupThirdFloor() -
identifyRooms
private void identifyRooms(WoodlandMansionPieces.SimpleGrid p_191116_1_, WoodlandMansionPieces.SimpleGrid p_191116_2_)
-