Class AreaClaimResult
java.lang.Object
xaero.pac.common.claims.result.api.AreaClaimResult
A claim action result for an area of chunks
-
Constructor Summary
ConstructorsConstructorDescriptionAreaClaimResult
(Set<ClaimResult.Type> resultTypes, int left, int top, int right, int bottom) A constructor for internal usage -
Method Summary
Modifier and TypeMethodDescriptionint
Get the highest Z coordinate value in this area.int
getLeft()
Get the lowest X coordinate value in this area.Gets the result type (ClaimResult.Type
) iterable.Gets a stream of all result types (ClaimResult.Type
).int
getRight()
Get the highest X coordinate value in this area.int
getSize()
Gets the number of result types (ClaimResult.Type
).int
getTop()
Get the lowest Z coordinate value in this area.
-
Constructor Details
-
AreaClaimResult
A constructor for internal usage- Parameters:
resultTypes
- a set of all resul typesleft
- lowest X coordinate value in this areatop
- lowest Z coordinate value in this arearight
- highest X coordinate value in this areabottom
- 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
Gets the result type (ClaimResult.Type
) iterable.- Returns:
- the result type iterable, not null
-
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
-