Class WoodlandMansionGenerator.MansionParameters

java.lang.Object
net.minecraft.structure.WoodlandMansionGenerator.MansionParameters
Enclosing class:
WoodlandMansionGenerator

private static class WoodlandMansionGenerator.MansionParameters extends Object
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 emn$c
  • 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 Lemn$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 Lemn$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 Lemn$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 Lemn$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 Lemn$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 Lemn$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 Lemn$c;g:I
    • SMALL_ROOM_FLAG

      private static final int SMALL_ROOM_FLAG
      Whether 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 Lemn$c;h:I
    • MEDIUM_ROOM_FLAG

      private static final int MEDIUM_ROOM_FLAG
      Whether 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 Lemn$c;i:I
    • BIG_ROOM_FLAG

      private static final int BIG_ROOM_FLAG
      Whether 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 Lemn$c;j:I
    • ORIGIN_CELL_FLAG

      private static final int ORIGIN_CELL_FLAG
      Whether 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 Lemn$c;k:I
    • ENTRANCE_CELL_FLAG

      private static final int ENTRANCE_CELL_FLAG
      Whether 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 Lemn$c;l:I
    • STAIRCASE_CELL_FLAG

      private static final int STAIRCASE_CELL_FLAG
      Whether 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 Lemn$c;m:I
    • CARPET_CELL_FLAG

      private static final int CARPET_CELL_FLAG
      Whether 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 Lemn$c;n:I
    • ROOM_SIZE_MASK

      private static final int ROOM_SIZE_MASK
      The mask for the room size. The value takes one of SMALL_ROOM_FLAG, MEDIUM_ROOM_FLAG or BIG_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 Lemn$c;o:I
    • ROOM_ID_MASK

      private static final int ROOM_ID_MASK
      The 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 Lemn$c;p:I
    • random

      private final Random 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 Lemn$c;q:Layw;
    • 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 or OUTSIDE.

      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 Lemn$c;r:Lemn$g;
    • thirdFloorLayout

      final WoodlandMansionGenerator.FlagMatrix thirdFloorLayout
      Determines a rough shape of the third floor.

      Each element in this matrix is one of UNSET, CORRIDOR, ROOM, STAIRCASE, UNUSED or OUTSIDE.

      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 Lemn$c;s:Lemn$g;
    • roomFlagsByFloor

      final WoodlandMansionGenerator.FlagMatrix[] roomFlagsByFloor
      Contains flags for each room cell on each floor.

      Each element in the matrix consists of the following fields:

      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 Lemn$c;t:[Lemn$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 Lemn$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 Lemn$c;v:I
  • Constructor Details

    • MansionParameters

      public MansionParameters(Random random)
      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> Lemn$c;<init>(Layw;)V
  • Method Details

    • isInsideMansion

      public static boolean isInsideMansion(WoodlandMansionGenerator.FlagMatrix layout, int i, int j)
      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 Lemn$c;a(Lemn$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 Lemn$c;a(Lemn$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 Lemn$c;b(Lemn$g;IIII)Lji;
    • 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 Lemn$c;a(Lemn$g;IILji;I)V
    • adjustLayoutWithRooms

      private boolean adjustLayoutWithRooms(WoodlandMansionGenerator.FlagMatrix layout)
      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 Lemn$c;a(Lemn$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 Lemn$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 Lemn$c;a(Lemn$g;Lemn$g;)V