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, Set<net.minecraft.network.chat.Component> customReasons, net.minecraft.resources.ResourceLocation dimension, int left, int top, int right, int bottom) A constructor for internal usage -
Method Summary
Modifier and TypeMethodDescriptionintGet the highest Z coordinate value in this area.Set<net.minecraft.network.chat.Component>Gets a set of all custom reasons given by addons when overriding the claiming action permission during the claiming process.net.minecraft.resources.ResourceLocationGets the dimension ID of this area.intgetLeft()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).intgetRight()Get the highest X coordinate value in this area.intgetSize()Gets the number of result types (ClaimResult.Type).intgetTop()Get the lowest Z coordinate value in this area.
-
Constructor Details
-
AreaClaimResult
public AreaClaimResult(Set<ClaimResult.Type> resultTypes, Set<net.minecraft.network.chat.Component> customReasons, net.minecraft.resources.ResourceLocation dimension, int left, int top, int right, int bottom) A constructor for internal usage- Parameters:
resultTypes- a set of all resul typescustomReasons- a set of custom reasonsdimension- the dimension of the arealeft- 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
-
getDimension
@Nonnull public net.minecraft.resources.ResourceLocation getDimension()Gets the dimension ID of this area.- Returns:
- the dimension ID, 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
-
getCustomReasons
Gets a set of all custom reasons given by addons when overriding the claiming action permission during the claiming process.- Returns:
- the Set of all custom reasons, not null
-