Class WoodlandMansionPieces.MansionGrid
java.lang.Object
net.minecraft.world.level.levelgen.structure.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 Random
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_73739_) get1x2RoomDirection
(WoodlandMansionPieces.SimpleGrid p_73763_, int p_73764_, int p_73765_, int p_73766_, int p_73767_) private void
identifyRooms
(WoodlandMansionPieces.SimpleGrid p_73757_, WoodlandMansionPieces.SimpleGrid p_73758_) static boolean
isHouse
(WoodlandMansionPieces.SimpleGrid p_73741_, int p_73742_, int p_73743_) boolean
isRoomId
(WoodlandMansionPieces.SimpleGrid p_73745_, int p_73746_, int p_73747_, int p_73748_, int p_73749_) void
print()
private void
recursiveCorridor
(WoodlandMansionPieces.SimpleGrid p_73751_, int p_73752_, int p_73753_, Direction p_73754_, int p_73755_) 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_73741_, int p_73742_, int p_73743_) -
isRoomId
public boolean isRoomId(WoodlandMansionPieces.SimpleGrid p_73745_, int p_73746_, int p_73747_, int p_73748_, int p_73749_) -
get1x2RoomDirection
@Nullable public Direction get1x2RoomDirection(WoodlandMansionPieces.SimpleGrid p_73763_, int p_73764_, int p_73765_, int p_73766_, int p_73767_) -
recursiveCorridor
private void recursiveCorridor(WoodlandMansionPieces.SimpleGrid p_73751_, int p_73752_, int p_73753_, Direction p_73754_, int p_73755_) -
cleanEdges
-
setupThirdFloor
private void setupThirdFloor() -
identifyRooms
private void identifyRooms(WoodlandMansionPieces.SimpleGrid p_73757_, WoodlandMansionPieces.SimpleGrid p_73758_) -
print
public void print()
-