Package com.griefdefender.api.claim
Interface SnapshotCreateSettings
public interface SnapshotCreateSettings
Represents creation settings used to create a
ClaimSnapshot.-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionbuilder()booleanWhether to copy claim settings.booleanWhether to copy option data.booleanWhether to copy permission data.booleanWhether to copy trust data.booleanWhether to create schematic.@Nullable StringgetGroup()The group associated with a.invalid reference
TypegetType()Gets the creation.invalid reference
Type@Nullable UUIDThe user associated with.invalid reference
Type#PLAYERbooleanGets whether to include children claims.voidsetCopyClaimSettings(boolean copy) Sets whether to copy claim settings.voidsetCopyOptions(boolean copy) Sets whether to copy option data.voidsetCopyPermissions(boolean copy) Sets whether to copy permission data.voidsetCopyTrust(boolean copy) Sets whether to copy trust data.voidsetCreateSchematic(boolean create) Sets whether to copy schematic data.voidSets the group name.voidsetIncludeChildren(boolean includeChildren) Sets whether to include children.voidsetType(ClaimSnapshotType type) Sets the creation.invalid reference
TypevoidsetUserUniqueId(UUID uuid) Sets the userUUID.
-
Method Details
-
getType
ClaimSnapshotType getType()Gets the creation.invalid reference
Type- Returns:
- The creation type
-
getGroup
@Nullable String getGroup()The group associated with a. Note: This does not apply toinvalid reference
Type.invalid reference
Type#CLAIM- Returns:
- The group
-
getUserUniqueId
@Nullable UUID getUserUniqueId()The user associated with.invalid reference
Type#PLAYER- Returns:
- The user uuid, if available
-
createSchematic
boolean createSchematic()Whether to create schematic.- Returns:
- True if creating schematic, false if not
-
copyClaimSettings
boolean copyClaimSettings()Whether to copy claim settings.- Returns:
- True if copying claim settings, false if not
-
copyOptions
boolean copyOptions()Whether to copy option data.- Returns:
- True if copying option data, false if not
-
copyPermissions
boolean copyPermissions()Whether to copy permission data.- Returns:
- True if copying permission data, false if not
-
copyTrust
boolean copyTrust()Whether to copy trust data.- Returns:
- True if copying trust data, false if not
-
includeChildren
boolean includeChildren()Gets whether to include children claims.- Returns:
- True if children included, false if not
-
setType
Sets the creation.invalid reference
Type- Parameters:
type- The creation type
-
setGroup
Sets the group name.- Parameters:
group- The group name
-
setUserUniqueId
Sets the userUUID. Note: This only applies to.invalid reference
Type#PLAYER- Parameters:
uuid- The user uuid
-
setCopyClaimSettings
void setCopyClaimSettings(boolean copy) Sets whether to copy claim settings.- Parameters:
copy-
-
setCopyOptions
void setCopyOptions(boolean copy) Sets whether to copy option data.- Parameters:
copy-
-
setCopyPermissions
void setCopyPermissions(boolean copy) Sets whether to copy permission data.- Parameters:
copy-
-
setCopyTrust
void setCopyTrust(boolean copy) Sets whether to copy trust data.- Parameters:
copy-
-
setCreateSchematic
void setCreateSchematic(boolean create) Sets whether to copy schematic data.- Parameters:
create-
-
setIncludeChildren
void setIncludeChildren(boolean includeChildren) Sets whether to include children.- Parameters:
includeChildren-
-
builder
-