Class Jail
java.lang.Object
com.palmergames.bukkit.towny.object.jail.Jail
- All Implemented Interfaces:
Savable
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addJailCell
(Position position) void
addJailCell
(org.bukkit.Location location) int
List
<org.bukkit.Location> getName()
getTown()
getUUID()
boolean
hasCells()
boolean
hasJailCell
(int index) boolean
boolean
hasName()
void
void
void
removeJailCell
(org.bukkit.Location loc) void
save()
Schedules the object to be saved to the database.void
setJailCells
(List<org.bukkit.Location> jailCells) void
void
setTownBlock
(TownBlock townBlock) void
-
Constructor Details
-
Jail
-
Jail
-
-
Method Details
-
getUUID
-
setUUID
-
getTown
-
setTown
-
getTownBlock
-
setTownBlock
-
getJailCellLocations
-
getJailCellPositions
-
getJailCellCount
public int getJailCellCount() -
setJailCells
-
addJailCell
public void addJailCell(org.bukkit.Location location) -
addJailCell
-
removeJailCell
public void removeJailCell(org.bukkit.Location loc) -
removeJailCell
-
removeAllCells
public void removeAllCells() -
hasJailCell
-
hasJailCell
public boolean hasJailCell(int index) -
getWildName
-
save
public void save()Description copied from interface:Savable
Schedules the object to be saved to the database. -
hasCells
public boolean hasCells() -
hasName
public boolean hasName() -
getName
-