Class WoodlandMansionGenerator.FlagMatrix

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

private static class WoodlandMansionGenerator.FlagMatrix extends Object
A matrix used to store floor information. Each element in this matrix corresponds to the cell on the floor.
Mappings:
Namespace Name
named net/minecraft/structure/WoodlandMansionGenerator$FlagMatrix
intermediary net/minecraft/class_3471$class_3478
official emi$g
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private final int[][]
     
    private final int
     
    (package private) final int
     
    (package private) final int
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    FlagMatrix(int n, int m, int fallback)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    anyMatchAround(int i, int j, int value)
     
    void
    fill(int i0, int j0, int i1, int j1, int value)
     
    int
    get(int i, int j)
     
    void
    set(int i, int j, int value)
     
    void
    update(int i, int j, int expected, int newValue)
    Updates the element in (i, j) to newValue if the current value is equal to expected.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • array

      private final int[][] array
      Mappings:
      Namespace Name Mixin selector
      named array Lnet/minecraft/structure/WoodlandMansionGenerator$FlagMatrix;array:[[I
      intermediary field_15451 Lnet/minecraft/class_3471$class_3478;field_15451:[[I
      official a Lemi$g;a:[[I
    • n

      final int n
      Mappings:
      Namespace Name Mixin selector
      named n Lnet/minecraft/structure/WoodlandMansionGenerator$FlagMatrix;n:I
      intermediary field_15454 Lnet/minecraft/class_3471$class_3478;field_15454:I
      official b Lemi$g;b:I
    • m

      final int m
      Mappings:
      Namespace Name Mixin selector
      named m Lnet/minecraft/structure/WoodlandMansionGenerator$FlagMatrix;m:I
      intermediary field_15453 Lnet/minecraft/class_3471$class_3478;field_15453:I
      official c Lemi$g;c:I
    • fallback

      private final int fallback
      Mappings:
      Namespace Name Mixin selector
      named fallback Lnet/minecraft/structure/WoodlandMansionGenerator$FlagMatrix;fallback:I
      intermediary field_15452 Lnet/minecraft/class_3471$class_3478;field_15452:I
      official d Lemi$g;d:I
  • Constructor Details

    • FlagMatrix

      public FlagMatrix(int n, int m, int fallback)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/structure/WoodlandMansionGenerator$FlagMatrix;<init>(III)V
      intermediary <init> Lnet/minecraft/class_3471$class_3478;<init>(III)V
      official <init> Lemi$g;<init>(III)V
  • Method Details

    • set

      public void set(int i, int j, int value)
      Mappings:
      Namespace Name Mixin selector
      named set Lnet/minecraft/structure/WoodlandMansionGenerator$FlagMatrix;set(III)V
      intermediary method_15065 Lnet/minecraft/class_3471$class_3478;method_15065(III)V
      official a Lemi$g;a(III)V
    • fill

      public void fill(int i0, int j0, int i1, int j1, int value)
      Mappings:
      Namespace Name Mixin selector
      named fill Lnet/minecraft/structure/WoodlandMansionGenerator$FlagMatrix;fill(IIIII)V
      intermediary method_15062 Lnet/minecraft/class_3471$class_3478;method_15062(IIIII)V
      official a Lemi$g;a(IIIII)V
    • get

      public int get(int i, int j)
      Mappings:
      Namespace Name Mixin selector
      named get Lnet/minecraft/structure/WoodlandMansionGenerator$FlagMatrix;get(II)I
      intermediary method_15066 Lnet/minecraft/class_3471$class_3478;method_15066(II)I
      official a Lemi$g;a(II)I
    • update

      public void update(int i, int j, int expected, int newValue)
      Updates the element in (i, j) to newValue if the current value is equal to expected.
      Mappings:
      Namespace Name Mixin selector
      named update Lnet/minecraft/structure/WoodlandMansionGenerator$FlagMatrix;update(IIII)V
      intermediary method_15061 Lnet/minecraft/class_3471$class_3478;method_15061(IIII)V
      official a Lemi$g;a(IIII)V
    • anyMatchAround

      public boolean anyMatchAround(int i, int j, int value)
      Mappings:
      Namespace Name Mixin selector
      named anyMatchAround Lnet/minecraft/structure/WoodlandMansionGenerator$FlagMatrix;anyMatchAround(III)Z
      intermediary method_15067 Lnet/minecraft/class_3471$class_3478;method_15067(III)Z
      official b Lemi$g;b(III)Z