Package com.griefdefender.api.data
Interface ClaimDataGetter
public interface ClaimDataGetter
-
Method Summary
Modifier and TypeMethodDescriptionbooleanGets whether the claim allows sending deny messages to players.booleanGets whether claim can expire.booleanGets whether this claim is inheriting from parent claim.Gets the trusted accessor group set ofUUID's.Gets the trusted accessor set ofUUID's.Gets allClaimAttribute's associated with claim.Gets the trusted builder group set ofUUID's.Gets the trusted builder set ofUUID's.@Nullable UUIDGets the claim group uuid this claim is joined to.@Nullable ClanDataGets theClanData.Gets the trusted container group set ofUUID's.Gets the trusted container set ofUUID's.Gets the creation date of claim.Gets the last active date of claim.@Nullable StringGets the claim's display name.Optional<net.kyori.adventure.text.Component> Gets the claim's display nameComponent.@Nullable EconomyDataGets theEconomyDataThe economy data, if availableOptional<net.kyori.adventure.text.Component> Gets the claim's enter action bar message.Optional<net.kyori.adventure.title.Title> Gets the claim's enterTitle.Optional<net.kyori.adventure.text.Component> Gets the claim's exit action bar message.Optional<net.kyori.adventure.title.Title> Gets the claim's exitTitle.Optional<net.kyori.adventure.text.Component> Gets the claim's farewell message.@Nullable com.flowpowered.math.vector.Vector3iGets the greater boundary corner of claim.Optional<net.kyori.adventure.text.Component> Gets the claim's greeting message.@Nullable com.flowpowered.math.vector.Vector3iGets the lesser boundary corner of claim.Gets the trusted manager group set ofUUID's.Gets the trusted manager set ofUUID's.@Nullable UUIDGets the claim owner'sUUID.@Nullable UUIDGets the parent claimUUID.Gets the trusted resident group set ofUUID's.Gets the trusted resident set ofUUID's.@Nullable com.flowpowered.math.vector.Vector3iGets the spawn position of claim.getType()Gets theClaimTypeof claim.@Nullable UUIDGets the claim's worldUUID.booleanGets whether this claim has min/max size restrictions.booleanisCuboid()Gets whether claim is a 3D cuboid.booleanGets whether this claim has been expired.booleanGets whether this claim can be resized.booleanGets whether this claim requires claim blocks.
-
Method Details
-
getWorldUniqueId
@Nullable UUID getWorldUniqueId()Gets the claim's worldUUID. Note: This will return null if tied to aas it is not locatable.invalid reference
ClaimSnapshot- Returns:
- The world UUID
-
getLesserBoundaryCorner
@Nullable com.flowpowered.math.vector.Vector3i getLesserBoundaryCorner()Gets the lesser boundary corner of claim. Note: This will return null if tied to aas it is not locatable.invalid reference
ClaimSnapshot- Returns:
- The lesser boundary corner position, if available
-
getGreaterBoundaryCorner
@Nullable com.flowpowered.math.vector.Vector3i getGreaterBoundaryCorner()Gets the greater boundary corner of claim. Note: This will return null if tied to aas it is not locatable.invalid reference
ClaimSnapshot- Returns:
- The greater boundary corner position, if available
-
getSpawnPos
@Nullable com.flowpowered.math.vector.Vector3i getSpawnPos()Gets the spawn position of claim. Note: This will return null if tied to aas it is not locatable.invalid reference
ClaimSnapshot- Returns:
- The spawn position, if available
-
getClaimGroupUniqueId
@Nullable UUID getClaimGroupUniqueId()Gets the claim group uuid this claim is joined to.- Returns:
- The claim group uuid, or null if not joined to one
-
getDisplayNameComponent
Optional<net.kyori.adventure.text.Component> getDisplayNameComponent()Gets the claim's display nameComponent.- Returns:
- The display name component, if available
-
getDisplayName
@Nullable String getDisplayName()Gets the claim's display name.- Returns:
- The display name, if available
-
getType
ClaimType getType()Gets theClaimTypeof claim.- Returns:
- The claim type
-
getAttributes
Set<ClaimAttribute> getAttributes()Gets allClaimAttribute's associated with claim.- Returns:
- An unmodifiable set of claim attributes.
-
getParentUniqueId
@Nullable UUID getParentUniqueId()Gets the parent claimUUID.- Returns:
- The parent claim UUID, if available
-
getOwnerUniqueId
@Nullable UUID getOwnerUniqueId()Gets the claim owner'sUUID. Note:andinvalid reference
ClaimType#ADMINclaims do not have owners.invalid reference
ClaimType#WILDERNESS- Returns:
- The UUID of this claim
-
getGreeting
Optional<net.kyori.adventure.text.Component> getGreeting()Gets the claim's greeting message.- Returns:
- The greeting message, if available
-
getFarewell
Optional<net.kyori.adventure.text.Component> getFarewell()Gets the claim's farewell message.- Returns:
- The farewell message, if available
-
getEnterActionBar
Optional<net.kyori.adventure.text.Component> getEnterActionBar()Gets the claim's enter action bar message.- Returns:
- The enter action bar message, if available
-
getExitActionBar
Optional<net.kyori.adventure.text.Component> getExitActionBar()Gets the claim's exit action bar message.- Returns:
- The exit action bar message, if available
-
getEnterTitle
Optional<net.kyori.adventure.title.Title> getEnterTitle()Gets the claim's enterTitle.- Returns:
- The claim's enter title, if available.
-
getExitTitle
Optional<net.kyori.adventure.title.Title> getExitTitle()Gets the claim's exitTitle.- Returns:
- The claim's exit title, if available.
-
getDateCreated
Instant getDateCreated()Gets the creation date of claim.- Returns:
- The date created
-
getDateLastActive
Instant getDateLastActive()Gets the last active date of claim.- Returns:
- The last active date
-
allowDenyMessages
boolean allowDenyMessages()Gets whether the claim allows sending deny messages to players.- Returns:
- Whether deny messages are being sent to players
-
allowExpiration
boolean allowExpiration()Gets whether claim can expire.- Returns:
- If claim can expire
-
isCuboid
boolean isCuboid()Gets whether claim is a 3D cuboid.- Returns:
- True if 3D cuboid, false if not
-
doesInheritParent
boolean doesInheritParent()Gets whether this claim is inheriting from parent claim.- Returns:
- If claim inherits from parent
-
isResizable
boolean isResizable()Gets whether this claim can be resized.- Returns:
- If resizeable
-
isExpired
boolean isExpired()Gets whether this claim has been expired. Note: All claim actions are denied while in this state.- Returns:
-
requiresClaimBlocks
boolean requiresClaimBlocks()Gets whether this claim requires claim blocks.- Returns:
- Whether claim requires claim blocks
-
hasSizeRestrictions
boolean hasSizeRestrictions()Gets whether this claim has min/max size restrictions.- Returns:
- Whether claim has size restrictions
-
getClanData
@Nullable ClanData getClanData()Gets theClanData.- Returns:
- The clan data, if available
-
getEconomyData
@Nullable EconomyData getEconomyData()Gets theEconomyDataThe economy data, if available -
getAccessors
Gets the trusted accessor set ofUUID's.- Returns:
- The mutable accessor uuid set
-
getBuilders
Gets the trusted builder set ofUUID's.- Returns:
- The mutable builder uuid set
-
getContainers
Gets the trusted container set ofUUID's.- Returns:
- The mutable container uuid set
-
getManagers
Gets the trusted manager set ofUUID's.- Returns:
- The mutable manager uuid set
-
getResidents
Gets the trusted resident set ofUUID's.- Returns:
- The mutable resident uuid set
-
getAccessorGroups
Gets the trusted accessor group set ofUUID's.- Returns:
- The mutable accessor group uuid set
-
getBuilderGroups
Gets the trusted builder group set ofUUID's.- Returns:
- The mutable builder group uuid set
-
getContainerGroups
Gets the trusted container group set ofUUID's.- Returns:
- The mutable container group uuid set
-
getManagerGroups
Gets the trusted manager group set ofUUID's.- Returns:
- The mutable manager group uuid set
-
getResidentGroups
Gets the trusted resident group set ofUUID's.- Returns:
- The mutable resident group uuid set
-