Package com.griefdefender.api.claim
Interface ClaimSchematic
public interface ClaimSchematic
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionbooleanapply()Applies schematic to claim.static ClaimSchematic.Builderbuilder()Gets a new claim schematic builder instance forClaimSchematic.Builder.getClaim()Gets the claim schematic is stored in.Gets the schematic creation date.getName()Gets the name of the schematic.com.flowpowered.math.vector.Vector3iGets origin of schematic.booleanWhether schematic has entities.booleanWhether schematic contains NBT data.voidsetOrigin(int x, int y, int z) Sets origin of schematic.voidsetOrigin(com.flowpowered.math.vector.Vector3i pos) Sets origin of schematic.
-
Method Details
-
getClaim
Claim getClaim()Gets the claim schematic is stored in.- Returns:
- The claim schematic is stored in
-
getName
String getName()Gets the name of the schematic.- Returns:
- The schematic name
-
getDateCreated
Instant getDateCreated()Gets the schematic creation date.- Returns:
- The date created
-
getOrigin
com.flowpowered.math.vector.Vector3i getOrigin()Gets origin of schematic.- Returns:
- The origin pos
-
setOrigin
void setOrigin(com.flowpowered.math.vector.Vector3i pos) Sets origin of schematic.- Parameters:
pos- The new origin pos
-
setOrigin
void setOrigin(int x, int y, int z) Sets origin of schematic.- Parameters:
x- X coordinatey- Y coordinatez- Z coordinate
-
hasEntities
boolean hasEntities()Whether schematic has entities.- Returns:
- true if schematic has entities, false if not
-
hasNbtData
boolean hasNbtData()Whether schematic contains NBT data.- Returns:
- true if schematic contains NBT data, false if not
-
apply
boolean apply()Applies schematic to claim.- Returns:
- If schematic apply was successful, false if not
-
builder
Gets a new claim schematic builder instance forClaimSchematic.Builder.- Returns:
- A new claim schematic builder instance
-