Package com.griefdefender.api.claim
Interface ClaimVisual
public interface ClaimVisual
-
Method Summary
Modifier and TypeMethodDescriptiondefault voidApplies the visual toUser.voidApplies the visual toUser.default voidApplies the visual to player withUUID.default voidApplies the visual to player withUUID.getClaim()Gets theClaimof visual.intGets the amount of spacing, in blocks, between filler blocks.getType()Gets theClaimVisualType.voidReverts the claim visual.voidReverts the claim visual.voidsetFillerSpacing(int amount) Sets the amount of spacing between filler blocks.voidsetType(ClaimVisualType type) Sets theClaimVisualType.
-
Method Details
-
getClaim
Claim getClaim()Gets theClaimof visual.- Returns:
- The claim
-
getType
ClaimVisualType getType()Gets theClaimVisualType.- Returns:
- The claim visual type
-
setType
Sets theClaimVisualType.- Parameters:
type- The new visual type
-
apply
Applies the visual to player withUUID.- Parameters:
uuid- The player uuid to apply visual
-
apply
Applies the visual to player withUUID.- Parameters:
uuid- The player uuid to apply visualresetActive- Whether to reset current player visuals
-
apply
Applies the visual toUser.- Parameters:
user- The user to apply visual
-
apply
Applies the visual toUser.- Parameters:
user- The user to apply visualresetActive- Whether to reset current player visuals
-
revert
Reverts the claim visual.- Parameters:
user- The user to revert visual
-
revert
Reverts the claim visual.- Parameters:
user- The user to revert visual
-
getFillerSpacing
int getFillerSpacing()Gets the amount of spacing, in blocks, between filler blocks.- Returns:
- The amount of spacing between filler blocks
-
setFillerSpacing
void setFillerSpacing(int amount) Sets the amount of spacing between filler blocks.- Parameters:
amount- The spacing amount
-