Package dev.kitteh.factions.data
Class MemoryFaction.Zones
java.lang.Object
dev.kitteh.factions.data.MemoryFaction.Zones
- All Implemented Interfaces:
Faction.Zones
- Enclosing class:
MemoryFaction
-
Method Summary
Modifier and TypeMethodDescriptionCreates a zone.voidDeletes a zone.get()Gets an immutable list of all zones.Gets the zone at a given location.@Nullable Faction.ZoneGets a zone by name.protected WorldTrackergetAndCreate(String world) main()Gets the main, default zone.voidset(Faction.Zone zone, FLocation fLocation) Sets the zone for a given location
-
Method Details
-
main
Description copied from interface:Faction.ZonesGets the main, default zone.- Specified by:
mainin interfaceFaction.Zones- Returns:
- main zone
-
create
Description copied from interface:Faction.ZonesCreates a zone.- Specified by:
createin interfaceFaction.Zones- Parameters:
name- zone name- Returns:
- new zone
-
delete
Description copied from interface:Faction.ZonesDeletes a zone.- Specified by:
deletein interfaceFaction.Zones- Parameters:
name- named zone
-
get
Description copied from interface:Faction.ZonesGets the zone at a given location.- Specified by:
getin interfaceFaction.Zones- Parameters:
fLocation- location- Returns:
- zone or default zone if not this faction's territory
-
get
Description copied from interface:Faction.ZonesGets a zone by name.- Specified by:
getin interfaceFaction.Zones- Parameters:
name- zone name- Returns:
- matching zone or null for no match
-
get
Description copied from interface:Faction.ZonesGets an immutable list of all zones.- Specified by:
getin interfaceFaction.Zones- Returns:
- zones
-
set
Description copied from interface:Faction.ZonesSets the zone for a given location- Specified by:
setin interfaceFaction.Zones- Parameters:
zone- zonefLocation- location
-
getAndCreate
-