java.lang.Object
com.palmergames.bukkit.towny.object.jail.Jail
All Implemented Interfaces:
Savable

public class Jail extends Object implements Savable
  • Constructor Details

  • Method Details

    • getUUID

      public UUID getUUID()
    • setUUID

      @Internal public void setUUID(UUID uuid)
    • getTown

      public Town getTown()
    • setTown

      public void setTown(Town town)
    • getTownBlock

      public TownBlock getTownBlock()
    • setTownBlock

      public void setTownBlock(TownBlock townBlock)
    • getJailCellLocations

      public List<org.bukkit.Location> getJailCellLocations()
    • getJailCellPositions

      public List<Position> getJailCellPositions()
    • getJailCellCount

      public int getJailCellCount()
    • setJailCells

      public void setJailCells(List<org.bukkit.Location> jailCells)
    • addJailCell

      public void addJailCell(org.bukkit.Location location)
    • addJailCell

      public void addJailCell(Position position)
    • removeJailCell

      public void removeJailCell(org.bukkit.Location loc)
    • removeJailCell

      public void removeJailCell(SpawnPointLocation pos)
    • removeAllCells

      public void removeAllCells()
    • hasJailCell

      public boolean hasJailCell(SpawnPointLocation loc)
    • hasJailCell

      public boolean hasJailCell(int index)
    • getCellMap

      @Deprecated public Map<String,org.bukkit.Location> getCellMap()
      Deprecated.
      Deprecated as of 0.99.5.9, the cell map types are an implementation detail and not guaranteed.
    • getWildName

      public String getWildName()
    • save

      public void save()
      Description copied from interface: Savable
      Schedules the object to be saved to the database.
      Specified by:
      save in interface Savable
    • hasCells

      public boolean hasCells()
    • hasName

      public boolean hasName()
    • getName

      public String getName()