Package net.minecraft.structure
Class WoodlandMansionGenerator.MansionParameters
java.lang.Object
net.minecraft.structure.WoodlandMansionGenerator.MansionParameters
- Enclosing class:
WoodlandMansionGenerator
The parameters that control how the mansion will look like. It's
generated before adding structure pieces and passed to
WoodlandMansionGenerator.LayoutGenerator
.- Mappings:
Namespace Name named net/minecraft/structure/WoodlandMansionGenerator$MansionParameters
intermediary net/minecraft/class_3471$class_3474
official elh$c
-
Field Summary
Modifier and TypeFieldDescription(package private) final WoodlandMansionGenerator.FlagMatrix
Determines a rough shape of the first floor and the second floor.private static final int
Whether the room has size 2x2.private static final int
Whether the cell has carpet.private static final int
private static final int
Whether the cell is an entrance of the room.(package private) final int
(package private) final int
private static final int
Whether the room has size 1x2.private static final int
Whether the cell is an origin of the room.private static final int
private final Random
private static final int
private static final int
The mask for the room ID.private static final int
The mask for the room size.(package private) final WoodlandMansionGenerator.FlagMatrix[]
Contains flags for each room cell on each floor.private static final int
private static final int
Whether the room has size 1x1.private static final int
private static final int
Whether the cell is a part of a staircase room.(package private) final WoodlandMansionGenerator.FlagMatrix
Determines a rough shape of the third floor.private static final int
private static final int
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprivate boolean
findConnectedRoomDirection
(WoodlandMansionGenerator.FlagMatrix layout, int i, int j, int floor, int roomId) static boolean
isInsideMansion
(WoodlandMansionGenerator.FlagMatrix layout, int i, int j) boolean
isRoomId
(WoodlandMansionGenerator.FlagMatrix layout, int i, int j, int floor, int roomId) private void
layoutCorridor
(WoodlandMansionGenerator.FlagMatrix layout, int i, int j, Direction direction, int length) private void
private void
updateRoomFlags
(WoodlandMansionGenerator.FlagMatrix layout, WoodlandMansionGenerator.FlagMatrix roomFlags)
-
Field Details
-
SIZE
private static final int SIZE- See Also:
- Mappings:
Namespace Name Mixin selector named SIZE
Lnet/minecraft/structure/WoodlandMansionGenerator$MansionParameters;SIZE:I
intermediary field_31665
Lnet/minecraft/class_3471$class_3474;field_31665:I
official a
Lelh$c;a:I
-
UNSET
private static final int UNSET- See Also:
- Mappings:
Namespace Name Mixin selector named UNSET
Lnet/minecraft/structure/WoodlandMansionGenerator$MansionParameters;UNSET:I
intermediary field_31666
Lnet/minecraft/class_3471$class_3474;field_31666:I
official b
Lelh$c;b:I
-
CORRIDOR
private static final int CORRIDOR- See Also:
- Mappings:
Namespace Name Mixin selector named CORRIDOR
Lnet/minecraft/structure/WoodlandMansionGenerator$MansionParameters;CORRIDOR:I
intermediary field_31667
Lnet/minecraft/class_3471$class_3474;field_31667:I
official c
Lelh$c;c:I
-
ROOM
private static final int ROOM- See Also:
- Mappings:
Namespace Name Mixin selector named ROOM
Lnet/minecraft/structure/WoodlandMansionGenerator$MansionParameters;ROOM:I
intermediary field_31668
Lnet/minecraft/class_3471$class_3474;field_31668:I
official d
Lelh$c;d:I
-
STAIRCASE
private static final int STAIRCASE- See Also:
- Mappings:
Namespace Name Mixin selector named STAIRCASE
Lnet/minecraft/structure/WoodlandMansionGenerator$MansionParameters;STAIRCASE:I
intermediary field_31669
Lnet/minecraft/class_3471$class_3474;field_31669:I
official e
Lelh$c;e:I
-
UNUSED
private static final int UNUSED- See Also:
- Mappings:
Namespace Name Mixin selector named UNUSED
Lnet/minecraft/structure/WoodlandMansionGenerator$MansionParameters;UNUSED:I
intermediary field_31670
Lnet/minecraft/class_3471$class_3474;field_31670:I
official f
Lelh$c;f:I
-
OUTSIDE
private static final int OUTSIDE- See Also:
- Mappings:
Namespace Name Mixin selector named OUTSIDE
Lnet/minecraft/structure/WoodlandMansionGenerator$MansionParameters;OUTSIDE:I
intermediary field_31671
Lnet/minecraft/class_3471$class_3474;field_31671:I
official g
Lelh$c;g:I
-
SMALL_ROOM_FLAG
private static final int SMALL_ROOM_FLAGWhether the room has size 1x1.- See Also:
- Mappings:
Namespace Name Mixin selector named SMALL_ROOM_FLAG
Lnet/minecraft/structure/WoodlandMansionGenerator$MansionParameters;SMALL_ROOM_FLAG:I
intermediary field_31672
Lnet/minecraft/class_3471$class_3474;field_31672:I
official h
Lelh$c;h:I
-
MEDIUM_ROOM_FLAG
private static final int MEDIUM_ROOM_FLAGWhether the room has size 1x2.- See Also:
- Mappings:
Namespace Name Mixin selector named MEDIUM_ROOM_FLAG
Lnet/minecraft/structure/WoodlandMansionGenerator$MansionParameters;MEDIUM_ROOM_FLAG:I
intermediary field_31673
Lnet/minecraft/class_3471$class_3474;field_31673:I
official i
Lelh$c;i:I
-
BIG_ROOM_FLAG
private static final int BIG_ROOM_FLAGWhether the room has size 2x2.- See Also:
- Mappings:
Namespace Name Mixin selector named BIG_ROOM_FLAG
Lnet/minecraft/structure/WoodlandMansionGenerator$MansionParameters;BIG_ROOM_FLAG:I
intermediary field_31674
Lnet/minecraft/class_3471$class_3474;field_31674:I
official j
Lelh$c;j:I
-
ORIGIN_CELL_FLAG
private static final int ORIGIN_CELL_FLAGWhether the cell is an origin of the room.- See Also:
- Mappings:
Namespace Name Mixin selector named ORIGIN_CELL_FLAG
Lnet/minecraft/structure/WoodlandMansionGenerator$MansionParameters;ORIGIN_CELL_FLAG:I
intermediary field_31675
Lnet/minecraft/class_3471$class_3474;field_31675:I
official k
Lelh$c;k:I
-
ENTRANCE_CELL_FLAG
private static final int ENTRANCE_CELL_FLAGWhether the cell is an entrance of the room.- See Also:
- Mappings:
Namespace Name Mixin selector named ENTRANCE_CELL_FLAG
Lnet/minecraft/structure/WoodlandMansionGenerator$MansionParameters;ENTRANCE_CELL_FLAG:I
intermediary field_31676
Lnet/minecraft/class_3471$class_3474;field_31676:I
official l
Lelh$c;l:I
-
STAIRCASE_CELL_FLAG
private static final int STAIRCASE_CELL_FLAGWhether the cell is a part of a staircase room.- See Also:
- Mappings:
Namespace Name Mixin selector named STAIRCASE_CELL_FLAG
Lnet/minecraft/structure/WoodlandMansionGenerator$MansionParameters;STAIRCASE_CELL_FLAG:I
intermediary field_31677
Lnet/minecraft/class_3471$class_3474;field_31677:I
official m
Lelh$c;m:I
-
CARPET_CELL_FLAG
private static final int CARPET_CELL_FLAGWhether the cell has carpet.- See Also:
- Mappings:
Namespace Name Mixin selector named CARPET_CELL_FLAG
Lnet/minecraft/structure/WoodlandMansionGenerator$MansionParameters;CARPET_CELL_FLAG:I
intermediary field_31678
Lnet/minecraft/class_3471$class_3474;field_31678:I
official n
Lelh$c;n:I
-
ROOM_SIZE_MASK
private static final int ROOM_SIZE_MASKThe mask for the room size. The value takes one ofSMALL_ROOM_FLAG
,MEDIUM_ROOM_FLAG
orBIG_ROOM_FLAG
.- See Also:
- Mappings:
Namespace Name Mixin selector named ROOM_SIZE_MASK
Lnet/minecraft/structure/WoodlandMansionGenerator$MansionParameters;ROOM_SIZE_MASK:I
intermediary field_31679
Lnet/minecraft/class_3471$class_3474;field_31679:I
official o
Lelh$c;o:I
-
ROOM_ID_MASK
private static final int ROOM_ID_MASKThe mask for the room ID. Connected rooms share the same ID.- See Also:
- Mappings:
Namespace Name Mixin selector named ROOM_ID_MASK
Lnet/minecraft/structure/WoodlandMansionGenerator$MansionParameters;ROOM_ID_MASK:I
intermediary field_31680
Lnet/minecraft/class_3471$class_3474;field_31680:I
official p
Lelh$c;p:I
-
random
- Mappings:
Namespace Name Mixin selector named random
Lnet/minecraft/structure/WoodlandMansionGenerator$MansionParameters;random:Lnet/minecraft/util/math/random/Random;
intermediary field_15438
Lnet/minecraft/class_3471$class_3474;field_15438:Lnet/minecraft/class_5819;
official q
Lelh$c;q:Lazh;
-
baseLayout
Determines a rough shape of the first floor and the second floor.Each element in this matrix is one of
UNSET
,CORRIDOR
,ROOM
,STAIRCASE
,UNUSED
orOUTSIDE
.- Mappings:
Namespace Name Mixin selector named baseLayout
Lnet/minecraft/structure/WoodlandMansionGenerator$MansionParameters;baseLayout:Lnet/minecraft/structure/WoodlandMansionGenerator$FlagMatrix;
intermediary field_15440
Lnet/minecraft/class_3471$class_3474;field_15440:Lnet/minecraft/class_3471$class_3478;
official r
Lelh$c;r:Lelh$g;
-
thirdFloorLayout
Determines a rough shape of the third floor.Each element in this matrix is one of
UNSET
,CORRIDOR
,ROOM
,STAIRCASE
,UNUSED
orOUTSIDE
.- Mappings:
Namespace Name Mixin selector named thirdFloorLayout
Lnet/minecraft/structure/WoodlandMansionGenerator$MansionParameters;thirdFloorLayout:Lnet/minecraft/structure/WoodlandMansionGenerator$FlagMatrix;
intermediary field_15439
Lnet/minecraft/class_3471$class_3474;field_15439:Lnet/minecraft/class_3471$class_3478;
official s
Lelh$c;s:Lelh$g;
-
roomFlagsByFloor
Contains flags for each room cell on each floor.Each element in the matrix consists of the following fields:
- room ID (16 bit)
- room size (4 bit)
ORIGIN_CELL_FLAG
(1 bit)ENTRANCE_CELL_FLAG
(1 bit)STAIRCASE_CELL_FLAG
(1 bit)CARPET_CELL_FLAG
(1 bit)
- Mappings:
Namespace Name Mixin selector named roomFlagsByFloor
Lnet/minecraft/structure/WoodlandMansionGenerator$MansionParameters;roomFlagsByFloor:[Lnet/minecraft/structure/WoodlandMansionGenerator$FlagMatrix;
intermediary field_15443
Lnet/minecraft/class_3471$class_3474;field_15443:[Lnet/minecraft/class_3471$class_3478;
official t
Lelh$c;t:[Lelh$g;
-
entranceI
final int entranceI- Mappings:
Namespace Name Mixin selector named entranceI
Lnet/minecraft/structure/WoodlandMansionGenerator$MansionParameters;entranceI:I
intermediary field_15442
Lnet/minecraft/class_3471$class_3474;field_15442:I
official u
Lelh$c;u:I
-
entranceJ
final int entranceJ- Mappings:
Namespace Name Mixin selector named entranceJ
Lnet/minecraft/structure/WoodlandMansionGenerator$MansionParameters;entranceJ:I
intermediary field_15441
Lnet/minecraft/class_3471$class_3474;field_15441:I
official v
Lelh$c;v:I
-
-
Constructor Details
-
MansionParameters
- Mappings:
Namespace Name Mixin selector named <init>
Lnet/minecraft/structure/WoodlandMansionGenerator$MansionParameters;<init>(Lnet/minecraft/util/math/random/Random;)V
intermediary <init>
Lnet/minecraft/class_3471$class_3474;<init>(Lnet/minecraft/class_5819;)V
official <init>
Lelh$c;<init>(Lazh;)V
-
-
Method Details
-
isInsideMansion
- Mappings:
Namespace Name Mixin selector named isInsideMansion
Lnet/minecraft/structure/WoodlandMansionGenerator$MansionParameters;isInsideMansion(Lnet/minecraft/structure/WoodlandMansionGenerator$FlagMatrix;II)Z
intermediary method_15047
Lnet/minecraft/class_3471$class_3474;method_15047(Lnet/minecraft/class_3471$class_3478;II)Z
official a
Lelh$c;a(Lelh$g;II)Z
-
isRoomId
public boolean isRoomId(WoodlandMansionGenerator.FlagMatrix layout, int i, int j, int floor, int roomId) - Mappings:
Namespace Name Mixin selector named isRoomId
Lnet/minecraft/structure/WoodlandMansionGenerator$MansionParameters;isRoomId(Lnet/minecraft/structure/WoodlandMansionGenerator$FlagMatrix;IIII)Z
intermediary method_15039
Lnet/minecraft/class_3471$class_3474;method_15039(Lnet/minecraft/class_3471$class_3478;IIII)Z
official a
Lelh$c;a(Lelh$g;IIII)Z
-
findConnectedRoomDirection
@Nullable public @Nullable Direction findConnectedRoomDirection(WoodlandMansionGenerator.FlagMatrix layout, int i, int j, int floor, int roomId) - Mappings:
Namespace Name Mixin selector named findConnectedRoomDirection
Lnet/minecraft/structure/WoodlandMansionGenerator$MansionParameters;findConnectedRoomDirection(Lnet/minecraft/structure/WoodlandMansionGenerator$FlagMatrix;IIII)Lnet/minecraft/util/math/Direction;
intermediary method_15040
Lnet/minecraft/class_3471$class_3474;method_15040(Lnet/minecraft/class_3471$class_3478;IIII)Lnet/minecraft/class_2350;
official b
Lelh$c;b(Lelh$g;IIII)Lje;
-
layoutCorridor
private void layoutCorridor(WoodlandMansionGenerator.FlagMatrix layout, int i, int j, Direction direction, int length) - Mappings:
Namespace Name Mixin selector named layoutCorridor
Lnet/minecraft/structure/WoodlandMansionGenerator$MansionParameters;layoutCorridor(Lnet/minecraft/structure/WoodlandMansionGenerator$FlagMatrix;IILnet/minecraft/util/math/Direction;I)V
intermediary method_15045
Lnet/minecraft/class_3471$class_3474;method_15045(Lnet/minecraft/class_3471$class_3478;IILnet/minecraft/class_2350;I)V
official a
Lelh$c;a(Lelh$g;IILje;I)V
-
adjustLayoutWithRooms
- Mappings:
Namespace Name Mixin selector named adjustLayoutWithRooms
Lnet/minecraft/structure/WoodlandMansionGenerator$MansionParameters;adjustLayoutWithRooms(Lnet/minecraft/structure/WoodlandMansionGenerator$FlagMatrix;)Z
intermediary method_15046
Lnet/minecraft/class_3471$class_3474;method_15046(Lnet/minecraft/class_3471$class_3478;)Z
official a
Lelh$c;a(Lelh$g;)Z
-
layoutThirdFloor
private void layoutThirdFloor()- Mappings:
Namespace Name Mixin selector named layoutThirdFloor
Lnet/minecraft/structure/WoodlandMansionGenerator$MansionParameters;layoutThirdFloor()V
intermediary method_15048
Lnet/minecraft/class_3471$class_3474;method_15048()V
official a
Lelh$c;a()V
-
updateRoomFlags
private void updateRoomFlags(WoodlandMansionGenerator.FlagMatrix layout, WoodlandMansionGenerator.FlagMatrix roomFlags) - Mappings:
Namespace Name Mixin selector named updateRoomFlags
Lnet/minecraft/structure/WoodlandMansionGenerator$MansionParameters;updateRoomFlags(Lnet/minecraft/structure/WoodlandMansionGenerator$FlagMatrix;Lnet/minecraft/structure/WoodlandMansionGenerator$FlagMatrix;)V
intermediary method_15042
Lnet/minecraft/class_3471$class_3474;method_15042(Lnet/minecraft/class_3471$class_3478;Lnet/minecraft/class_3471$class_3478;)V
official a
Lelh$c;a(Lelh$g;Lelh$g;)V
-