Class WoodlandMansionPieces.MansionGrid
java.lang.Object
net.minecraft.world.level.levelgen.structure.structures.WoodlandMansionPieces.MansionGrid
- Enclosing class:
WoodlandMansionPieces
-
Field Summary
Modifier and TypeFieldDescription(package private) final WoodlandMansionPieces.SimpleGrid
private static final int
private static final int
private static final int
private static final int
(package private) final int
(package private) final int
(package private) final WoodlandMansionPieces.SimpleGrid[]
private final RandomSource
private static final int
private static final int
private static final int
private static final int
private static final int
private static final int
private static final int
private static final int
private static final int
private static final int
private static final int
private static final int
(package private) final WoodlandMansionPieces.SimpleGrid
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprivate boolean
cleanEdges
(WoodlandMansionPieces.SimpleGrid p_230046_) get1x2RoomDirection
(WoodlandMansionPieces.SimpleGrid p_230068_, int p_230069_, int p_230070_, int p_230071_, int p_230072_) private void
identifyRooms
(WoodlandMansionPieces.SimpleGrid p_230064_, WoodlandMansionPieces.SimpleGrid p_230065_) static boolean
isHouse
(WoodlandMansionPieces.SimpleGrid p_230048_, int p_230049_, int p_230050_) boolean
isRoomId
(WoodlandMansionPieces.SimpleGrid p_230052_, int p_230053_, int p_230054_, int p_230055_, int p_230056_) private void
recursiveCorridor
(WoodlandMansionPieces.SimpleGrid p_230058_, int p_230059_, int p_230060_, Direction p_230061_, int p_230062_) private void
-
Field Details
-
DEFAULT_SIZE
private static final int DEFAULT_SIZE- See Also:
-
CLEAR
private static final int CLEAR- See Also:
-
CORRIDOR
private static final int CORRIDOR- See Also:
-
ROOM
private static final int ROOM- See Also:
-
START_ROOM
private static final int START_ROOM- See Also:
-
TEST_ROOM
private static final int TEST_ROOM- See Also:
-
BLOCKED
private static final int BLOCKED- See Also:
-
ROOM_1x1
private static final int ROOM_1x1- See Also:
-
ROOM_1x2
private static final int ROOM_1x2- See Also:
-
ROOM_2x2
private static final int ROOM_2x2- See Also:
-
ROOM_ORIGIN_FLAG
private static final int ROOM_ORIGIN_FLAG- See Also:
-
ROOM_DOOR_FLAG
private static final int ROOM_DOOR_FLAG- See Also:
-
ROOM_STAIRS_FLAG
private static final int ROOM_STAIRS_FLAG- See Also:
-
ROOM_CORRIDOR_FLAG
private static final int ROOM_CORRIDOR_FLAG- See Also:
-
ROOM_TYPE_MASK
private static final int ROOM_TYPE_MASK- See Also:
-
ROOM_ID_MASK
private static final int ROOM_ID_MASK- See Also:
-
random
-
baseGrid
-
thirdFloorGrid
-
floorRooms
-
entranceX
final int entranceX -
entranceY
final int entranceY
-
-
Constructor Details
-
MansionGrid
-
-
Method Details
-
isHouse
public static boolean isHouse(WoodlandMansionPieces.SimpleGrid p_230048_, int p_230049_, int p_230050_) -
isRoomId
public boolean isRoomId(WoodlandMansionPieces.SimpleGrid p_230052_, int p_230053_, int p_230054_, int p_230055_, int p_230056_) -
get1x2RoomDirection
@Nullable public Direction get1x2RoomDirection(WoodlandMansionPieces.SimpleGrid p_230068_, int p_230069_, int p_230070_, int p_230071_, int p_230072_) -
recursiveCorridor
private void recursiveCorridor(WoodlandMansionPieces.SimpleGrid p_230058_, int p_230059_, int p_230060_, Direction p_230061_, int p_230062_) -
cleanEdges
-
setupThirdFloor
private void setupThirdFloor() -
identifyRooms
private void identifyRooms(WoodlandMansionPieces.SimpleGrid p_230064_, WoodlandMansionPieces.SimpleGrid p_230065_)
-