Package konquest.api.model
Interface KonquestCampGroup
public interface KonquestCampGroup
A collection of adjacent camps.
- Author:
- Rumsfield
-
Method Summary
Modifier and TypeMethodDescriptionbooleancontainsCamp(KonquestCamp camp) Checks whether this camp group contains the given camp instance.Collection<? extends KonquestCamp>getCamps()Gets all camps in this camp group.booleanisPlayerMember(org.bukkit.OfflinePlayer player) Checks whether the given player has a camp that is a part of this camp group.
-
Method Details
-
containsCamp
Checks whether this camp group contains the given camp instance.- Parameters:
camp- The camp to check- Returns:
- True when this camp group contains the camp, else false
-
getCamps
Collection<? extends KonquestCamp> getCamps()Gets all camps in this camp group.- Returns:
- All camps
-
isPlayerMember
boolean isPlayerMember(org.bukkit.OfflinePlayer player) Checks whether the given player has a camp that is a part of this camp group. The player must be a barbarian with a set up camp. Their camp must be placed adjacent to other camps within this camp group. Camp group members can optionally edit blocks and access chests in each other's camps.- Parameters:
player- The player to check- Returns:
- True when this player is a member of this camp group, else false
-