Package com.griefdefender.api.claim
Interface SnapshotCreateSettings.Builder
- Enclosing interface:
SnapshotCreateSettings
public static interface SnapshotCreateSettings.Builder
-
Method Summary
Modifier and TypeMethodDescriptionbuild()Returns theSnapshotCreateSettings.children(boolean includeChildren) Sets whether to include children.copyClaimSettings(boolean copy) Sets whether claim settings should be copied.copyOptions(boolean copy) Sets whether option data should be copied.copyPermissions(boolean copy) Sets whether permission data should be copied.copyTrust(boolean copy) Sets whether trust data should be copied.createSchematic(boolean create) Sets whether to create a schematic of claim.booleanGets whether claim settings will be copied.booleanGets whether claim options will be copied.booleanGets whether claim permissions will be copied.booleanGets whether claim trust will be copied.booleanGets whether a schematic will be created.@Nullable StringgetGroup()Gets the group associated with a.invalid reference
TypegetType()Gets the createClaimSnapshotType.@Nullable UUIDThe user associated with.invalid reference
Type#PLAYERSets the group name.booleanGets whether to include children claims.reset()Resets the builder to default settings.type(ClaimSnapshotType type) Sets the creationClaimSnapshotType.Sets the userUUID.
-
Method Details
-
getGroup
@Nullable String getGroup()Gets the group associated with a.invalid reference
Type- Returns:
- The group, if available
-
getUserUniqueId
@Nullable UUID getUserUniqueId()The user associated with.invalid reference
Type#PLAYER- Returns:
- The user uuid, if available
-
getType
ClaimSnapshotType getType()Gets the createClaimSnapshotType.- Returns:
- The create type
-
getCreateSchematic
boolean getCreateSchematic()Gets whether a schematic will be created.- Returns:
- True if schematic will be created, false if not
-
getCopyClaimSettings
boolean getCopyClaimSettings()Gets whether claim settings will be copied.- Returns:
- True if claim settings will be copied, false if not
-
getCopyOptions
boolean getCopyOptions()Gets whether claim options will be copied.- Returns:
- True if claim options will be copied, false if not
-
getCopyPermissions
boolean getCopyPermissions()Gets whether claim permissions will be copied.- Returns:
- True if claim permissions will be copied, false if not
-
getCopyTrust
boolean getCopyTrust()Gets whether claim trust will be copied.- Returns:
- True if claim trust will be copied, false if not
-
includeChildren
boolean includeChildren()Gets whether to include children claims.- Returns:
- True if children included, false if not
-
createSchematic
Sets whether to create a schematic of claim.- Parameters:
create- True to create schematic, false if not- Returns:
- The builder
-
copyClaimSettings
Sets whether claim settings should be copied.- Parameters:
copy- True to copy, false if not- Returns:
- The builder
-
copyOptions
Sets whether option data should be copied.- Parameters:
copy- True to copy, false if not- Returns:
- The builder
-
copyPermissions
Sets whether permission data should be copied.- Parameters:
copy- True to copy, false if not- Returns:
- The builder
-
copyTrust
Sets whether trust data should be copied.- Parameters:
copy- True to copy, false if not- Returns:
- The builder
-
type
Sets the creationClaimSnapshotType.- Parameters:
type- The creation type- Returns:
- The builder
-
group
Sets the group name.- Parameters:
group- The group name- Returns:
- The builder
-
user
Sets the userUUID. Note: This only applies to.invalid reference
Type#PLAYER- Parameters:
uuid- The user uuid- Returns:
- The builder
-
children
Sets whether to include children.- Parameters:
includeChildren- True to include, false if not- Returns:
- The builder
-
reset
SnapshotCreateSettings.Builder reset()Resets the builder to default settings.- Returns:
- The builder
-
build
SnapshotCreateSettings build()Returns theSnapshotCreateSettings.- Returns:
- The snapshot creation settings
-