Class ClaimResult<C extends IPlayerChunkClaimAPI>
java.lang.Object
xaero.pac.common.claims.result.api.ClaimResult<C>
A claim result for a single chunk
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionClaimResult(C claimResult, ClaimResult.Type resultType) A constructor for internal usageClaimResult(C claimResult, ClaimResult.Type resultType, net.minecraft.network.chat.Component customReason) A constructor for internal usage -
Method Summary
Modifier and TypeMethodDescriptionGets the claim state associated with this result where relevant.net.minecraft.network.chat.ComponentGets the text Component with the custom reason given by an addon for this result.net.minecraft.network.chat.ComponentGets the display message for this result, applying the custom reason given by an addon when it exists.Gets theClaimResult.Typeof this result.
-
Constructor Details
-
ClaimResult
A constructor for internal usage- Parameters:
claimResult- the claim state where relevantresultType- the result type
-
ClaimResult
public ClaimResult(@Nullable C claimResult, @Nonnull ClaimResult.Type resultType, @Nullable net.minecraft.network.chat.Component customReason) A constructor for internal usage- Parameters:
claimResult- the claim state where relevantresultType- the result typecustomReason- the custom reason given by an addon for this result, can be null
-
-
Method Details
-
getClaimResult
Gets the claim state associated with this result where relevant.- Returns:
- the claim state for this result, can be null
-
getResultType
Gets theClaimResult.Typeof this result.- Returns:
- the type of this result, not null
-
getCustomReason
@Nullable public net.minecraft.network.chat.Component getCustomReason()Gets the text Component with the custom reason given by an addon for this result.- Returns:
- the custom reason Component, null if there isn't one
-
getMessage
@Nonnull public net.minecraft.network.chat.Component getMessage()Gets the display message for this result, applying the custom reason given by an addon when it exists.- Returns:
- the display message for this result
-