Package konquest.api.model
Interface KonquestRuin
- All Superinterfaces:
KonquestTerritory
A ruin territory with critical blocks and optional ruin golem spawn points.
- Author:
- Rumsfield
-
Method Summary
Modifier and TypeMethodDescriptionSet<org.bukkit.Location>Gets a set of all critical block locations in this ruin.intGets the remaining number of unbroken critical blocks.Set<org.bukkit.Location>Gets a set of all ruin golem spawn locations in this ruin.booleanChecks whether this ruin is able to be captured.booleanisEmpty()Checks if there are any online players inside of this ruin.Methods inherited from interface konquest.api.model.KonquestTerritory
getCenterLoc, getChunkPoints, getKingdom, getName, getSpawnLoc, getTerritoryType, getWorld, isLocAdjacent, isLocInside
-
Method Details
-
isCaptureDisabled
boolean isCaptureDisabled()Checks whether this ruin is able to be captured. Ruins are captured when all critical blocks are destroyed. Capturing the ruin is disabled after it has been captured for a time duration based on the Konquest configuration.- Returns:
- True when this ruin cannot be captured, else false
-
getCriticalLocations
Set<org.bukkit.Location> getCriticalLocations()Gets a set of all critical block locations in this ruin.- Returns:
- The set of locations
-
getSpawnLocations
Set<org.bukkit.Location> getSpawnLocations()Gets a set of all ruin golem spawn locations in this ruin.- Returns:
- The set of locations
-
getRemainingCriticalHits
int getRemainingCriticalHits()Gets the remaining number of unbroken critical blocks. When all critical blocks are broken, the ruin is captured temporarily.- Returns:
- The amount of unbroken critical blocks.
-
isEmpty
boolean isEmpty()Checks if there are any online players inside of this ruin.- Returns:
- True when there are no players inside of this ruin, else false
-