Class BrushConfigSectionAccessor

All Implemented Interfaces:
RegionReader.StorageSource, BlockReader

public class BrushConfigSectionAccessor extends SectionAccessor
Created so that when we call getBlock from the masking area of the BrushConfigEditOperation, the mask will respect the previous operations
  • Method Details

    • forWorld

      @Nonnull public static BrushConfigSectionAccessor forWorld(BrushConfigEditStore editOperation, @Nonnull World world)
    • getBlock

      public int getBlock(int x, int y, int z)
      Specified by:
      getBlock in interface BlockReader
      Overrides:
      getBlock in class SectionReader
      Returns:
      the block id at the coordinates, or BlockType.EMPTY_ID where nothing is loaded
    • getBlockIgnoringHistory

      public int getBlockIgnoringHistory(int x, int y, int z)
      Also ignores blocks that may have already been placed by checking the before
    • getFluidId

      public int getFluidId(int x, int y, int z)
      Specified by:
      getFluidId in interface BlockReader
      Overrides:
      getFluidId in class SectionReader
      Returns:
      the fluid id at the coordinates, or Fluid.EMPTY_ID where nothing is loaded