java.lang.Object
com.fastasyncworldedit.core.queue.implementation.blocks.CharBlocks
com.fastasyncworldedit.core.queue.implementation.blocks.CharGetBlocks
All Implemented Interfaces:
IBlocks, IChunkGet, ITileInput, Trimable, InputExtent

public abstract class CharGetBlocks extends CharBlocks implements IChunkGet
  • Constructor Details

    • CharGetBlocks

      public CharGetBlocks(int minSectionPosition, int maxSectionPosition)
      New instance given the min/max section indices
  • Method Details

    • getFullBlock

      public BaseBlock getFullBlock(int x, int y, int z)
      Specified by:
      getFullBlock in interface IChunkGet
      Specified by:
      getFullBlock in interface InputExtent
    • trim

      public boolean trim(boolean aggressive)
      Description copied from interface: Trimable
      Trims the object, reducing its memory footprint.
      Specified by:
      trim in interface Trimable
      Overrides:
      trim in class CharBlocks
      Parameters:
      aggressive - if trimming should be aggressive e.g., Not returning early when the first element cannot be trimmed
      Returns:
      if this object is empty at the end of the trim, and can therefore be deleted
    • update

      public char[] update(int layer, char[] data, boolean aggressive)
      Overrides:
      update in class CharBlocks
    • defaultOrdinal

      protected char defaultOrdinal()
      Description copied from class: CharBlocks
      Default char value to be used when "updating"/resetting data arrays
      Specified by:
      defaultOrdinal in class CharBlocks
    • trim

      public boolean trim(boolean aggressive, int layer)
      Specified by:
      trim in interface IBlocks
      Overrides:
      trim in class CharBlocks
    • reset

      public IChunkSet reset()
      Specified by:
      reset in interface IBlocks
      Overrides:
      reset in class CharBlocks