Class AreaClaimResult

java.lang.Object
xaero.pac.common.claims.result.api.AreaClaimResult

public class AreaClaimResult extends Object
A claim action result for an area of chunks
  • Constructor Details

    • AreaClaimResult

      public AreaClaimResult(Set<ClaimResult.Type> resultTypes, int left, int top, int right, int bottom)
      A constructor for internal usage
      Parameters:
      resultTypes - a set of all resul types
      left - lowest X coordinate value in this area
      top - lowest Z coordinate value in this area
      right - highest X coordinate value in this area
      bottom - highest Z coordinate value in this area
  • Method Details

    • getSize

      public int getSize()
      Gets the number of result types (ClaimResult.Type).
      Returns:
      the number of result types
    • getResultTypesIterable

      @Nonnull public Iterable<ClaimResult.Type> getResultTypesIterable()
      Gets the result type (ClaimResult.Type) iterable.
      Returns:
      the result type iterable, not null
    • getResultTypesStream

      @Nonnull public Stream<ClaimResult.Type> getResultTypesStream()
      Gets a stream of all result types (ClaimResult.Type).
      Returns:
      the result type stream, not null
    • getLeft

      public int getLeft()
      Get the lowest X coordinate value in this area.
      Returns:
      the lower X value in the area
    • getTop

      public int getTop()
      Get the lowest Z coordinate value in this area.
      Returns:
      the lower z value in the area
    • getRight

      public int getRight()
      Get the highest X coordinate value in this area.
      Returns:
      the highest X value in the area
    • getBottom

      public int getBottom()
      Get the highest Z coordinate value in this area.
      Returns:
      the highest Z value in the area