Package com.massivecraft.factions
Class Board
- java.lang.Object
-
- com.massivecraft.factions.Board
-
- Direct Known Subclasses:
MemoryBoard
public abstract class Board extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description Board()
-
Method Summary
Modifier and Type Method Description abstract void
clean()
abstract void
clearOwnershipAt(FLocation flocation)
abstract void
forceSave()
abstract void
forceSave(boolean sync)
abstract java.util.Set<FLocation>
getAllClaims(Faction faction)
abstract java.util.Set<FLocation>
getAllClaims(java.lang.String factionId)
abstract Faction
getFactionAt(FLocation flocation)
abstract int
getFactionCoordCount(Faction faction)
abstract int
getFactionCoordCount(java.lang.String factionId)
abstract int
getFactionCoordCountInWorld(Faction faction, java.lang.String worldName)
abstract java.lang.String
getIdAt(FLocation flocation)
static Board
getInstance()
abstract java.util.List<mkremins.fanciful.FancyMessage>
getMap(FPlayer fPlayer, FLocation flocation, double inDegrees)
abstract boolean
hasFactionWithin(FLocation flocation, Faction faction, int radius)
abstract boolean
isBorderLocation(FLocation flocation)
abstract boolean
isConnectedLocation(FLocation flocation, Faction faction)
abstract boolean
load()
abstract void
removeAt(FLocation flocation)
abstract void
setFactionAt(Faction faction, FLocation flocation)
abstract void
setIdAt(java.lang.String id, FLocation flocation)
abstract void
unclaimAll(java.lang.String factionId)
abstract void
unclaimAllInWorld(java.lang.String factionId, org.bukkit.World world)
-
-
-
Field Detail
-
instance
protected static Board instance
-
-
Method Detail
-
getInstance
public static Board getInstance()
-
getIdAt
public abstract java.lang.String getIdAt(FLocation flocation)
-
setIdAt
public abstract void setIdAt(java.lang.String id, FLocation flocation)
-
removeAt
public abstract void removeAt(FLocation flocation)
-
getAllClaims
public abstract java.util.Set<FLocation> getAllClaims(java.lang.String factionId)
-
clearOwnershipAt
public abstract void clearOwnershipAt(FLocation flocation)
-
unclaimAll
public abstract void unclaimAll(java.lang.String factionId)
-
unclaimAllInWorld
public abstract void unclaimAllInWorld(java.lang.String factionId, org.bukkit.World world)
-
isBorderLocation
public abstract boolean isBorderLocation(FLocation flocation)
-
isConnectedLocation
public abstract boolean isConnectedLocation(FLocation flocation, Faction faction)
-
hasFactionWithin
public abstract boolean hasFactionWithin(FLocation flocation, Faction faction, int radius)
-
clean
public abstract void clean()
-
getFactionCoordCount
public abstract int getFactionCoordCount(java.lang.String factionId)
-
getFactionCoordCount
public abstract int getFactionCoordCount(Faction faction)
-
getFactionCoordCountInWorld
public abstract int getFactionCoordCountInWorld(Faction faction, java.lang.String worldName)
-
getMap
public abstract java.util.List<mkremins.fanciful.FancyMessage> getMap(FPlayer fPlayer, FLocation flocation, double inDegrees)
-
forceSave
public abstract void forceSave()
-
forceSave
public abstract void forceSave(boolean sync)
-
load
public abstract boolean load()
-
-