Class WoodlandMansionPieces.MansionGrid
java.lang.Object
net.minecraft.world.level.levelgen.structure.WoodlandMansionPieces.MansionGrid
- Enclosing class:
- WoodlandMansionPieces
-
Field Summary
Modifier and TypeFieldDescription(package private) WoodlandMansionPieces.SimpleGrid
private static int
private static int
private static int
private static int
(package private) int
(package private) int
(package private) WoodlandMansionPieces.SimpleGrid[]
private Random
private static int
private static int
private static int
private static int
private static int
private static int
private static int
private static int
private static int
private static int
private static int
private static int
(package private) 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:
- Constant Field Values
-
CLEAR
private static final int CLEAR- See Also:
- Constant Field Values
-
CORRIDOR
private static final int CORRIDOR- See Also:
- Constant Field Values
-
ROOM
private static final int ROOM- See Also:
- Constant Field Values
-
START_ROOM
private static final int START_ROOM- See Also:
- Constant Field Values
-
TEST_ROOM
private static final int TEST_ROOM- See Also:
- Constant Field Values
-
BLOCKED
private static final int BLOCKED- See Also:
- Constant Field Values
-
ROOM_1x1
private static final int ROOM_1x1- See Also:
- Constant Field Values
-
ROOM_1x2
private static final int ROOM_1x2- See Also:
- Constant Field Values
-
ROOM_2x2
private static final int ROOM_2x2- See Also:
- Constant Field Values
-
ROOM_ORIGIN_FLAG
private static final int ROOM_ORIGIN_FLAG- See Also:
- Constant Field Values
-
ROOM_DOOR_FLAG
private static final int ROOM_DOOR_FLAG- See Also:
- Constant Field Values
-
ROOM_STAIRS_FLAG
private static final int ROOM_STAIRS_FLAG- See Also:
- Constant Field Values
-
ROOM_CORRIDOR_FLAG
private static final int ROOM_CORRIDOR_FLAG- See Also:
- Constant Field Values
-
ROOM_TYPE_MASK
private static final int ROOM_TYPE_MASK- See Also:
- Constant Field Values
-
ROOM_ID_MASK
private static final int ROOM_ID_MASK- See Also:
- Constant Field Values
-
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()
-