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 pWidth, int pHeight, int pValueIfOutside)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    edgesTo(int pX, int pY, int pExpectedValue)
     
    int
    get(int pX, int pY)
     
    void
    set(int pX, int pY, int pValue)
     
    void
    set(int pMinX, int pMinY, int pMaxX, int pMaxY, int pValue)
     
    void
    setif(int pX, int pY, int pOldValue, int pNewValue)
     

    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 pWidth, int pHeight, int pValueIfOutside)
  • Method Details

    • set

      public void set(int pX, int pY, int pValue)
    • set

      public void set(int pMinX, int pMinY, int pMaxX, int pMaxY, int pValue)
    • get

      public int get(int pX, int pY)
    • setif

      public void setif(int pX, int pY, int pOldValue, int pNewValue)
    • edgesTo

      public boolean edgesTo(int pX, int pY, int pExpectedValue)