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
official dug$c
intermediary net/minecraft/class_3471$class_3474
named net/minecraft/structure/WoodlandMansionGenerator$MansionParameters
  • Field Details

    • SIZE

      private static final int SIZE
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official a Ldug$c;a:I
      intermediary field_31665 Lnet/minecraft/class_3471$class_3474;field_31665:I
      named SIZE Lnet/minecraft/structure/WoodlandMansionGenerator$MansionParameters;SIZE:I
    • UNSET

      private static final int UNSET
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official b Ldug$c;b:I
      intermediary field_31666 Lnet/minecraft/class_3471$class_3474;field_31666:I
      named UNSET Lnet/minecraft/structure/WoodlandMansionGenerator$MansionParameters;UNSET:I
    • CORRIDOR

      private static final int CORRIDOR
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official c Ldug$c;c:I
      intermediary field_31667 Lnet/minecraft/class_3471$class_3474;field_31667:I
      named CORRIDOR Lnet/minecraft/structure/WoodlandMansionGenerator$MansionParameters;CORRIDOR:I
    • ROOM

      private static final int ROOM
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official d Ldug$c;d:I
      intermediary field_31668 Lnet/minecraft/class_3471$class_3474;field_31668:I
      named ROOM Lnet/minecraft/structure/WoodlandMansionGenerator$MansionParameters;ROOM:I
    • STAIRCASE

      private static final int STAIRCASE
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official e Ldug$c;e:I
      intermediary field_31669 Lnet/minecraft/class_3471$class_3474;field_31669:I
      named STAIRCASE Lnet/minecraft/structure/WoodlandMansionGenerator$MansionParameters;STAIRCASE:I
    • UNUSED

      private static final int UNUSED
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official f Ldug$c;f:I
      intermediary field_31670 Lnet/minecraft/class_3471$class_3474;field_31670:I
      named UNUSED Lnet/minecraft/structure/WoodlandMansionGenerator$MansionParameters;UNUSED:I
    • OUTSIDE

      private static final int OUTSIDE
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official g Ldug$c;g:I
      intermediary field_31671 Lnet/minecraft/class_3471$class_3474;field_31671:I
      named OUTSIDE Lnet/minecraft/structure/WoodlandMansionGenerator$MansionParameters;OUTSIDE:I
    • SMALL_ROOM_FLAG

      private static final int SMALL_ROOM_FLAG
      Whether the room has size 1x1.
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official h Ldug$c;h:I
      intermediary field_31672 Lnet/minecraft/class_3471$class_3474;field_31672:I
      named SMALL_ROOM_FLAG Lnet/minecraft/structure/WoodlandMansionGenerator$MansionParameters;SMALL_ROOM_FLAG:I
    • MEDIUM_ROOM_FLAG

      private static final int MEDIUM_ROOM_FLAG
      Whether the room has size 1x2.
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official i Ldug$c;i:I
      intermediary field_31673 Lnet/minecraft/class_3471$class_3474;field_31673:I
      named MEDIUM_ROOM_FLAG Lnet/minecraft/structure/WoodlandMansionGenerator$MansionParameters;MEDIUM_ROOM_FLAG:I
    • BIG_ROOM_FLAG

      private static final int BIG_ROOM_FLAG
      Whether the room has size 2x2.
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official j Ldug$c;j:I
      intermediary field_31674 Lnet/minecraft/class_3471$class_3474;field_31674:I
      named BIG_ROOM_FLAG Lnet/minecraft/structure/WoodlandMansionGenerator$MansionParameters;BIG_ROOM_FLAG: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
      official k Ldug$c;k:I
      intermediary field_31675 Lnet/minecraft/class_3471$class_3474;field_31675:I
      named ORIGIN_CELL_FLAG Lnet/minecraft/structure/WoodlandMansionGenerator$MansionParameters;ORIGIN_CELL_FLAG: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
      official l Ldug$c;l:I
      intermediary field_31676 Lnet/minecraft/class_3471$class_3474;field_31676:I
      named ENTRANCE_CELL_FLAG Lnet/minecraft/structure/WoodlandMansionGenerator$MansionParameters;ENTRANCE_CELL_FLAG: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
      official m Ldug$c;m:I
      intermediary field_31677 Lnet/minecraft/class_3471$class_3474;field_31677:I
      named STAIRCASE_CELL_FLAG Lnet/minecraft/structure/WoodlandMansionGenerator$MansionParameters;STAIRCASE_CELL_FLAG:I
    • CARPET_CELL_FLAG

      private static final int CARPET_CELL_FLAG
      Whether the cell has carpet.
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official n Ldug$c;n:I
      intermediary field_31678 Lnet/minecraft/class_3471$class_3474;field_31678:I
      named CARPET_CELL_FLAG Lnet/minecraft/structure/WoodlandMansionGenerator$MansionParameters;CARPET_CELL_FLAG: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
      official o Ldug$c;o:I
      intermediary field_31679 Lnet/minecraft/class_3471$class_3474;field_31679:I
      named ROOM_SIZE_MASK Lnet/minecraft/structure/WoodlandMansionGenerator$MansionParameters;ROOM_SIZE_MASK: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
      official p Ldug$c;p:I
      intermediary field_31680 Lnet/minecraft/class_3471$class_3474;field_31680:I
      named ROOM_ID_MASK Lnet/minecraft/structure/WoodlandMansionGenerator$MansionParameters;ROOM_ID_MASK:I
    • random

      private final Random random
      Mappings:
      Namespace Name Mixin selector
      official q Ldug$c;q:Lapd;
      intermediary field_15438 Lnet/minecraft/class_3471$class_3474;field_15438:Lnet/minecraft/class_5819;
      named random Lnet/minecraft/structure/WoodlandMansionGenerator$MansionParameters;random:Lnet/minecraft/util/math/random/Random;
    • 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
      official r Ldug$c;r:Ldug$g;
      intermediary field_15440 Lnet/minecraft/class_3471$class_3474;field_15440:Lnet/minecraft/class_3471$class_3478;
      named baseLayout Lnet/minecraft/structure/WoodlandMansionGenerator$MansionParameters;baseLayout:Lnet/minecraft/structure/WoodlandMansionGenerator$FlagMatrix;
    • 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
      official s Ldug$c;s:Ldug$g;
      intermediary field_15439 Lnet/minecraft/class_3471$class_3474;field_15439:Lnet/minecraft/class_3471$class_3478;
      named thirdFloorLayout Lnet/minecraft/structure/WoodlandMansionGenerator$MansionParameters;thirdFloorLayout:Lnet/minecraft/structure/WoodlandMansionGenerator$FlagMatrix;
    • 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
      official t Ldug$c;t:[Ldug$g;
      intermediary field_15443 Lnet/minecraft/class_3471$class_3474;field_15443:[Lnet/minecraft/class_3471$class_3478;
      named roomFlagsByFloor Lnet/minecraft/structure/WoodlandMansionGenerator$MansionParameters;roomFlagsByFloor:[Lnet/minecraft/structure/WoodlandMansionGenerator$FlagMatrix;
    • entranceI

      final int entranceI
      Mappings:
      Namespace Name Mixin selector
      official u Ldug$c;u:I
      intermediary field_15442 Lnet/minecraft/class_3471$class_3474;field_15442:I
      named entranceI Lnet/minecraft/structure/WoodlandMansionGenerator$MansionParameters;entranceI:I
    • entranceJ

      final int entranceJ
      Mappings:
      Namespace Name Mixin selector
      official v Ldug$c;v:I
      intermediary field_15441 Lnet/minecraft/class_3471$class_3474;field_15441:I
      named entranceJ Lnet/minecraft/structure/WoodlandMansionGenerator$MansionParameters;entranceJ:I
  • Constructor Details

    • MansionParameters

      public MansionParameters(Random random)
      Mappings:
      Namespace Name Mixin selector
      official <init> Ldug$c;<init>(Lapd;)V
      intermediary <init> Lnet/minecraft/class_3471$class_3474;<init>(Lnet/minecraft/class_5819;)V
      named <init> Lnet/minecraft/structure/WoodlandMansionGenerator$MansionParameters;<init>(Lnet/minecraft/util/math/random/Random;)V
  • Method Details

    • isInsideMansion

      public static boolean isInsideMansion(WoodlandMansionGenerator.FlagMatrix layout, int i, int j)
      Mappings:
      Namespace Name Mixin selector
      official a Ldug$c;a(Ldug$g;II)Z
      intermediary method_15047 Lnet/minecraft/class_3471$class_3474;method_15047(Lnet/minecraft/class_3471$class_3478;II)Z
      named isInsideMansion Lnet/minecraft/structure/WoodlandMansionGenerator$MansionParameters;isInsideMansion(Lnet/minecraft/structure/WoodlandMansionGenerator$FlagMatrix;II)Z
    • isRoomId

      public boolean isRoomId(WoodlandMansionGenerator.FlagMatrix layout, int i, int j, int floor, int roomId)
      Mappings:
      Namespace Name Mixin selector
      official a Ldug$c;a(Ldug$g;IIII)Z
      intermediary method_15039 Lnet/minecraft/class_3471$class_3474;method_15039(Lnet/minecraft/class_3471$class_3478;IIII)Z
      named isRoomId Lnet/minecraft/structure/WoodlandMansionGenerator$MansionParameters;isRoomId(Lnet/minecraft/structure/WoodlandMansionGenerator$FlagMatrix;IIII)Z
    • findConnectedRoomDirection

      @Nullable public @Nullable Direction findConnectedRoomDirection(WoodlandMansionGenerator.FlagMatrix layout, int i, int j, int floor, int roomId)
      Mappings:
      Namespace Name Mixin selector
      official b Ldug$c;b(Ldug$g;IIII)Lha;
      intermediary method_15040 Lnet/minecraft/class_3471$class_3474;method_15040(Lnet/minecraft/class_3471$class_3478;IIII)Lnet/minecraft/class_2350;
      named findConnectedRoomDirection Lnet/minecraft/structure/WoodlandMansionGenerator$MansionParameters;findConnectedRoomDirection(Lnet/minecraft/structure/WoodlandMansionGenerator$FlagMatrix;IIII)Lnet/minecraft/util/math/Direction;
    • layoutCorridor

      private void layoutCorridor(WoodlandMansionGenerator.FlagMatrix layout, int i, int j, Direction direction, int length)
      Mappings:
      Namespace Name Mixin selector
      official a Ldug$c;a(Ldug$g;IILha;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
      named layoutCorridor Lnet/minecraft/structure/WoodlandMansionGenerator$MansionParameters;layoutCorridor(Lnet/minecraft/structure/WoodlandMansionGenerator$FlagMatrix;IILnet/minecraft/util/math/Direction;I)V
    • adjustLayoutWithRooms

      private boolean adjustLayoutWithRooms(WoodlandMansionGenerator.FlagMatrix layout)
      Mappings:
      Namespace Name Mixin selector
      official a Ldug$c;a(Ldug$g;)Z
      intermediary method_15046 Lnet/minecraft/class_3471$class_3474;method_15046(Lnet/minecraft/class_3471$class_3478;)Z
      named adjustLayoutWithRooms Lnet/minecraft/structure/WoodlandMansionGenerator$MansionParameters;adjustLayoutWithRooms(Lnet/minecraft/structure/WoodlandMansionGenerator$FlagMatrix;)Z
    • layoutThirdFloor

      private void layoutThirdFloor()
      Mappings:
      Namespace Name Mixin selector
      official b Ldug$c;b()V
      intermediary method_15048 Lnet/minecraft/class_3471$class_3474;method_15048()V
      named layoutThirdFloor Lnet/minecraft/structure/WoodlandMansionGenerator$MansionParameters;layoutThirdFloor()V
    • updateRoomFlags

      private void updateRoomFlags(WoodlandMansionGenerator.FlagMatrix layout, WoodlandMansionGenerator.FlagMatrix roomFlags)
      Mappings:
      Namespace Name Mixin selector
      official a Ldug$c;a(Ldug$g;Ldug$g;)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
      named updateRoomFlags Lnet/minecraft/structure/WoodlandMansionGenerator$MansionParameters;updateRoomFlags(Lnet/minecraft/structure/WoodlandMansionGenerator$FlagMatrix;Lnet/minecraft/structure/WoodlandMansionGenerator$FlagMatrix;)V
    • printFloorLayouts

      public void printFloorLayouts()
      Prints a string representation of baseLayout and thirdFloorLayout. Useful for debugging.
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official a Ldug$c;a()V
      intermediary method_35472 Lnet/minecraft/class_3471$class_3474;method_35472()V
      named printFloorLayouts Lnet/minecraft/structure/WoodlandMansionGenerator$MansionParameters;printFloorLayouts()V