Class WoodlandMansionPieces.SimpleGrid

java.lang.Object
net.minecraft.world.level.levelgen.structure.structures.WoodlandMansionPieces.SimpleGrid
Enclosing class:
WoodlandMansionPieces

static class WoodlandMansionPieces.SimpleGrid extends Object
  • Field Summary

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

    Constructors
    Constructor
    Description
    SimpleGrid(int width, int height, int valueIfOutside)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    edgesTo(int x, int y, int expectedValue)
     
    int
    get(int x, int y)
     
    void
    set(int x, int y, int value)
     
    void
    set(int minX, int minY, int maxX, int maxY, int value)
     
    void
    setif(int x, int y, int oldValue, int newValue)
     

    Methods inherited from class java.lang.Object

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

    • grid

      private final int[][] grid
    • width

      final int width
    • height

      final int height
    • valueIfOutside

      private final int valueIfOutside
  • Constructor Details

    • SimpleGrid

      public SimpleGrid(int width, int height, int valueIfOutside)
  • Method Details

    • set

      public void set(int x, int y, int value)
    • set

      public void set(int minX, int minY, int maxX, int maxY, int value)
    • get

      public int get(int x, int y)
    • setif

      public void setif(int x, int y, int oldValue, int newValue)
    • edgesTo

      public boolean edgesTo(int x, int y, int expectedValue)