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
official dud$g
intermediary net/minecraft/class_3471$class_3478
named net/minecraft/structure/WoodlandMansionGenerator$FlagMatrix
  • 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
      official a Ldud$g;a:[[I
      intermediary field_15451 Lnet/minecraft/class_3471$class_3478;field_15451:[[I
      named array Lnet/minecraft/structure/WoodlandMansionGenerator$FlagMatrix;array:[[I
    • n

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

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

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

    • FlagMatrix

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

    • set

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

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

      public int get(int i, int j)
      Mappings:
      Namespace Name Mixin selector
      official a Ldud$g;a(II)I
      intermediary method_15066 Lnet/minecraft/class_3471$class_3478;method_15066(II)I
      named get Lnet/minecraft/structure/WoodlandMansionGenerator$FlagMatrix;get(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
      official a Ldud$g;a(IIII)V
      intermediary method_15061 Lnet/minecraft/class_3471$class_3478;method_15061(IIII)V
      named update Lnet/minecraft/structure/WoodlandMansionGenerator$FlagMatrix;update(IIII)V
    • anyMatchAround

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