Package com.griefdefender.api.data
Interface ClaimData.Builder
- Enclosing interface:
ClaimData
public static interface ClaimData.Builder
-
Method Summary
Modifier and TypeMethodDescriptionaccessorGroups(Set<String> accessorGroups) The trusted accessor group set ofUUID's.The trusted accessor set ofUUID's.allowExpiration(boolean expiration) Whether claim can expire due to no player activity.attributes(Set<ClaimAttribute> attributes) TheClaimAttribute's associated with claim.build()Returns theClaimData.builderGroups(Set<String> builderGroups) The trusted builder group set ofUUID's.The trusted builder set ofUUID's.claimBlocks(boolean claimBlocks) Whether claim requires claim blocks from players.The claimClaimTypethe snapshot is based on.clanData(ClanDataGetter data) containerGroups(Set<String> containerGroups) The trusted container group set ofUUID's.containers(Set<UUID> containers) The trusted container set ofUUID's.cuboid(boolean cuboid) Whether claim is a cuboid or not.dateCreated(Instant dateCreated) The claim creation date.dateLastActive(Instant dateLastActive) The last active claim date.denyMessages(boolean denyMessages) Whether claim allows deny messages to be sent to players.displayName(net.kyori.adventure.text.Component name) The claim display name.economyData(EconomyDataGetter data) enterActionBar(net.kyori.adventure.text.Component message) The enter action bar message.enterTitle(net.kyori.adventure.title.Title title) The enter title.exitActionBar(net.kyori.adventure.text.Component message) The exit action bar message.exitTitle(net.kyori.adventure.title.Title title) The exit title.farewell(net.kyori.adventure.text.Component farewell) The farewell message.The claim to use for snapshot.Gets the trusted accessor group set ofUUID's.Gets the trusted accessor set ofUUID's.booleanGets whether snapshot can expire.Gets allClaimAttribute's associated with claim.Gets the trusted builder group set ofUUID's.Gets the trusted builder set ofUUID's.booleanGets whether this snapshot requires claim blocks.@Nullable ClanDataGetterGets the trusted container group set ofUUID's.Gets the trusted container set ofUUID's.Gets the claim creation date.Gets the last active claim date.booleanGets whether the snapshot allows sending deny messages to players.@Nullable net.kyori.adventure.text.ComponentGets the claim's display nameComponent.@Nullable EconomyDataGetter@Nullable net.kyori.adventure.text.ComponentGets the claim's enter action bar message.@Nullable net.kyori.adventure.title.TitleGets the claim's enter title.@Nullable net.kyori.adventure.text.ComponentGets the claim's exit action bar message.@Nullable net.kyori.adventure.title.TitleGets the claim's exit title.@Nullable net.kyori.adventure.text.ComponentGets the claim's farewell message.com.flowpowered.math.vector.Vector3i@Nullable net.kyori.adventure.text.ComponentGets the claim's greeting message.booleanGets whether the snapshot is inheriting from parent claim.booleanGets if claim is cuboid.booleanGets whether this claim is expired.com.flowpowered.math.vector.Vector3iGets the trusted manager group set ofUUID's.Gets the trusted manager set ofUUID's.Gets the trusted resident group set ofUUID's.Gets the trusted resident set ofUUID's.booleanGets whether the snapshot allows resize.booleanGets whether this snapshot has min/max size restrictions.@Nullable com.flowpowered.math.vector.Vector3i@Nullable ClaimTypegetType()Gets theClaimTypeof claim.greaterBoundaryPos(int x, int y, int z) greeting(net.kyori.adventure.text.Component greeting) The greeting message.inherit(boolean inherit) Whether claim should inherit from parentisExpired(boolean isExpired) Whether claim is expired.lesserBoundaryPos(int x, int y, int z) managerGroups(Set<String> managerGroups) The trusted manager group set ofUUID's.The trusted manager set ofUUID's.reset()Resets the builder to default settings.residentGroups(Set<String> residentGroups) The trusted resident group set ofUUID's.The trusted resident set ofUUID's.resizable(boolean resizable) Whether claim should be resizablesizeRestrictions(boolean sizeRestrictions) Whether claim checks for min/max size restrictions.spawnPos(int x, int y, int z) worldUniqueId(UUID worldUniqueId)
-
Method Details
-
getWorldUniqueId
UUID getWorldUniqueId() -
getLesserBoundaryPos
com.flowpowered.math.vector.Vector3i getLesserBoundaryPos() -
getGreaterBoundaryPos
com.flowpowered.math.vector.Vector3i getGreaterBoundaryPos() -
getSpawnPos
@Nullable com.flowpowered.math.vector.Vector3i getSpawnPos() -
getClanData
@Nullable ClanDataGetter getClanData() -
getEconomyData
@Nullable EconomyDataGetter getEconomyData() -
getDisplayNameComponent
@Nullable net.kyori.adventure.text.Component getDisplayNameComponent()Gets the claim's display nameComponent.- Returns:
- The display name component, if available
-
getType
@Nullable ClaimType getType()Gets theClaimTypeof claim.- Returns:
- The claim type
-
getGreeting
@Nullable net.kyori.adventure.text.Component getGreeting()Gets the claim's greeting message.- Returns:
- The greeting message, if available
-
getFarewell
@Nullable net.kyori.adventure.text.Component getFarewell()Gets the claim's farewell message.- Returns:
- The farewell message, if available
-
getEnterActionBar
@Nullable net.kyori.adventure.text.Component getEnterActionBar()Gets the claim's enter action bar message.- Returns:
- The enter action bar message, if available
-
getExitActionBar
@Nullable net.kyori.adventure.text.Component getExitActionBar()Gets the claim's exit action bar message.- Returns:
- The exit action bar message, if available
-
getEnterTitle
@Nullable net.kyori.adventure.title.Title getEnterTitle()Gets the claim's enter title.- Returns:
- The enter title, if available
-
getExitTitle
@Nullable net.kyori.adventure.title.Title getExitTitle()Gets the claim's exit title.- Returns:
- The exit title, if available
-
getInherit
boolean getInherit()Gets whether the snapshot is inheriting from parent claim.- Returns:
- If snapshot is set to inherit from parent
-
getResizable
boolean getResizable()Gets whether the snapshot allows resize.- Returns:
- If resizeable
-
getDenyMessages
boolean getDenyMessages()Gets whether the snapshot allows sending deny messages to players.- Returns:
- Whether deny messages are being sent to players
-
getAllowExpiration
boolean getAllowExpiration()Gets whether snapshot can expire.- Returns:
- If snapshot can expire
-
getIsCuboid
boolean getIsCuboid()Gets if claim is cuboid.- Returns:
- true if cuboid, false if not
-
getIsExpired
boolean getIsExpired()Gets whether this claim is expired.- Returns:
- true if expired, false if not
-
getClaimBlocks
boolean getClaimBlocks()Gets whether this snapshot requires claim blocks.- Returns:
- true if claim blocks are required, false if not
-
getSizeRestrictions
boolean getSizeRestrictions()Gets whether this snapshot has min/max size restrictions.- Returns:
- true if claim has size restrictions, false if not
-
getAttributes
Set<ClaimAttribute> getAttributes()Gets allClaimAttribute's associated with claim.- Returns:
- The mutable set of claim attributes
-
getDateCreated
Instant getDateCreated()Gets the claim creation date.- Returns:
- The claim creation date
-
getDateLastActive
Instant getDateLastActive()Gets the last active claim date.- Returns:
- The last active claim date
-
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
-
lesserBoundaryPos
-
greaterBoundaryPos
-
spawnPos
-
clanData
-
economyData
-
worldUniqueId
-
from
The claim to use for snapshot.- Parameters:
claim- The claim- Returns:
- The builder
-
cuboid
Whether claim is a cuboid or not.- Parameters:
cuboid- whether claim is cuboid- Returns:
- The builder
-
displayName
The claim display name.- Parameters:
name- The claim display name- Returns:
- The builder
-
claimType
The claimClaimTypethe snapshot is based on.- Parameters:
type- The claim type- Returns:
- The builder
-
greeting
The greeting message.- Parameters:
greeting-- Returns:
- The builder
-
farewell
The farewell message.- Parameters:
farewell-- Returns:
- The builder
-
enterActionBar
The enter action bar message.- Parameters:
message- The message- Returns:
- The builder
-
exitActionBar
The exit action bar message.- Parameters:
message- The message- Returns:
- The builder
-
enterTitle
The enter title.- Parameters:
title- The title- Returns:
- The builder
-
exitTitle
The exit title.- Parameters:
title- Te title- Returns:
- The builder
-
inherit
Whether claim should inherit from parent- Parameters:
inherit- Whether claim inherits from parent- Returns:
- The builder
-
resizable
Whether claim should be resizable- Parameters:
resizable- Whether claim can be resized.- Returns:
- The builder
-
denyMessages
Whether claim allows deny messages to be sent to players.- Parameters:
denyMessages- Whether to allow sending deny messages to players- Returns:
- The builder
-
allowExpiration
Whether claim can expire due to no player activity.- Parameters:
expiration- Whether claim allows expirations- Returns:
- The builder
-
dateCreated
The claim creation date.- Parameters:
dateCreated- The claim creation date- Returns:
- The builder
-
dateLastActive
The last active claim date.- Parameters:
dateLastActive- The last active claim date- Returns:
- The builder
-
isExpired
Whether claim is expired.- Parameters:
isExpired- whether claim is expired- Returns:
- The builder
-
claimBlocks
Whether claim requires claim blocks from players.- Parameters:
claimBlocks- Whether this claim requires claim blocks- Returns:
- The builder
-
sizeRestrictions
Whether claim checks for min/max size restrictions. Note:andinvalid reference
ClaimType#ADMINcan not have restrictions.invalid reference
ClaimType#WILDERNESS- Parameters:
sizeRestrictions- Whether this claim checks size restrictions.- Returns:
- The builder
-
attributes
TheClaimAttribute's associated with claim.- Parameters:
attributes- The set of claim attributes- Returns:
- The builder
-
accessors
The trusted accessor set ofUUID's.- Parameters:
The- set of accessor uuid's- Returns:
- The builder
-
builders
The trusted builder set ofUUID's.- Parameters:
The- set of builder uuid's- Returns:
- The builder
-
containers
The trusted container set ofUUID's.- Parameters:
The- set of container uuid's- Returns:
- The builder
-
managers
The trusted manager set ofUUID's.- Parameters:
The- set of manager uuid's- Returns:
- The builder
-
residents
The trusted resident set ofUUID's.- Parameters:
The- set of resident uuid's- Returns:
- The builder
-
accessorGroups
The trusted accessor group set ofUUID's.- Parameters:
The- set of accessor group uuid's- Returns:
- The builder
-
builderGroups
The trusted builder group set ofUUID's.- Parameters:
The- set of builder group uuid's- Returns:
- The builder
-
containerGroups
The trusted container group set ofUUID's.- Parameters:
The- set of container group uuid's- Returns:
- The builder
-
managerGroups
The trusted manager group set ofUUID's.- Parameters:
The- set of manager group uuid's- Returns:
- The builder
-
residentGroups
The trusted resident group set ofUUID's.- Parameters:
The- set of resident group uuid's- Returns:
- The builder
-
reset
ClaimData.Builder reset()Resets the builder to default settings.- Returns:
- The builder
-
build
ClaimData build()Returns theClaimData.- Returns:
- The created claim data
-