Package org.kingdoms.constants.group
Class Nation
java.lang.Object
org.kingdoms.constants.metadata.KingdomsObject<UUID>
org.kingdoms.constants.group.Group
org.kingdoms.constants.group.Nation
- All Implemented Interfaces:
org.kingdoms.abstraction.GroupOperator,NationOperator
-
Field Summary
Fields inherited from class org.kingdoms.constants.group.Group
attributes, bank, book, hidden, home, id, members, name, nexus, owner, permanent, publicHome, publicHomeCost, ranks, relations, relationshipRequests, requiresInvite, resourcePoints, shieldSince, shieldTime, since, tag, taxFields inherited from class org.kingdoms.constants.metadata.KingdomsObject
metadata -
Constructor Summary
ConstructorsConstructorDescriptionNation(UUID id, Map<UUID, KingdomRelationshipRequest> relationshipRequests, RankMap ranks, Map<UUID, KingdomRelation> relations, Set<UUID> kingdoms, UUID capital, String name, String tax, SimpleLocation nexus, org.kingdoms.server.location.ImmutableLocation home, String flag, Color color, long resourcePoints, double bank, long since, boolean permanent, boolean requiresInvite, long shieldTime, long shieldSince, @NonNull Map<KingdomRelation, Set<org.kingdoms.constants.group.model.relationships.RelationAttribute>> attributes) -
Method Summary
Modifier and TypeMethodDescriptionacceptRelationshipRequest(Nation nation) double@NonNull NationDisbandEventdisband(GroupDisband.Reason reason, Runnable predataRemoval) @NonNull Kingdom@NonNull UUID@NonNull List<KingdomPlayer>getLands(boolean includeNationZones) intdoublegetMight()static @Nullable Nationstatic @Nullable Nation@NonNull List<org.bukkit.entity.Player>@NonNull List<org.bukkit.OfflinePlayer>@NonNull KingdomRelationgetRelationWith(@Nullable Nation nation) double@NonNull StringbooleanhasAttribute(@Nullable Nation nation, StandardRelationAttribute attribute) booleanbooleanisMember(org.bukkit.OfflinePlayer player) booleanisMember(KingdomPlayer player) placeOrMoveNexus(@NonNull org.bukkit.Location toLocation, @Nullable KingdomPlayer kp) @NonNull GroupRenameEventrename(@NonNull String name, @Nullable KingdomPlayer renamer) revokeRelationsWith(@NonNull Nation nation) sendRelationshipRequest(@Nullable KingdomPlayer sender, @NonNull Nation nation, @NonNull KingdomRelation relation) sendRelationshipRequest(@Nullable KingdomPlayer sender, @NonNull Nation nation, @NonNull KingdomRelation relation, long acceptTime) voidsetCapital(@NonNull Kingdom newCapital) setHome(org.bukkit.Location home, KingdomPlayer kp) voidvoidupdateRankNode(@NonNull String node, @NonNull String newNode) Methods inherited from class org.kingdoms.constants.group.Group
abstractPlaceOrMoveNexus, activateShield, activateShield, addBank, addResourcePoints, addToResourcePoints, countRelationships, deactivateShield, disband, equals, getAttributes, getBank, getBook, getColor, getCompressedData, getDataKey, getFlag, getHome, getId, getLogs, getMailIds, getMails, getMembers, getName, getNewestLog, getNexus, getOwnerId, getPublicHomeCost, getRanks, getReceivedMails, getRelations, getRelationshipRequests, getResourcePoints, getSentMails, getShieldSince, getShieldTime, getShieldTimeLeft, getSince, getTag, getTax, getTopComparator, hasAttribute, hashCode, hasMoney, hasResourcePoints, hasShield, isFull, isHidden, isHomePublic, isMember, isPermanent, log, renameTag, requiresInvite, sendMail, sendMail, setAttributes, setBank, setBook, setColor, setFlag, setHidden, setName, setNexus, setPermanent, setPublicHome, setPublicHomeCost, setRanks, setRelations, setRelationshipRequests, setRelationShipWith, setRequiresInvite, setResourcePoints, setShieldSince, setShieldTime, setSince, setTag, setTax, toString, unsafeGetMembers, unsafeGetRelationsMethods inherited from class org.kingdoms.constants.metadata.KingdomsObject
compressBoolean, compressCollecton, compressCollecton, compressColor, compressInventory, compressLocation, compressLocation, compressMap, compressMetadata, compressString, compressUUID, getMetadata, getSaveMeta, setMetadata, setSaveMeta, shouldSaveMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.kingdoms.abstraction.NationOperator
getGroup
-
Constructor Details
-
Nation
-
Nation
public Nation(UUID id, Map<UUID, KingdomRelationshipRequest> relationshipRequests, RankMap ranks, Map<UUID, KingdomRelation> relations, Set<UUID> kingdoms, UUID capital, String name, String tax, SimpleLocation nexus, org.kingdoms.server.location.ImmutableLocation home, String flag, Color color, long resourcePoints, double bank, long since, boolean permanent, boolean requiresInvite, long shieldTime, long shieldSince, @NonNull Map<KingdomRelation, Set<org.kingdoms.constants.group.model.relationships.RelationAttribute>> attributes)
-
-
Method Details
-
getNation
-
getNation
-
getLands
-
getCapital
-
setCapital
-
getCapitalId
-
getKingdoms
-
setHome
-
calculateTax
public double calculateTax()- Specified by:
calculateTaxin classGroup
-
getMaxMembers
public int getMaxMembers()- Specified by:
getMaxMembersin classGroup
-
rename
-
getOnlineMembers
- Specified by:
getOnlineMembersin classGroup
-
getPlayerMembers
- Specified by:
getPlayerMembersin classGroup
-
getKingdomPlayers
- Specified by:
getKingdomPlayersin classGroup
-
disband
-
silentlyDisband
public void silentlyDisband() -
isMember
-
isMember
public boolean isMember(org.bukkit.OfflinePlayer player) -
isMember
-
getTaxOrDefault
- Specified by:
getTaxOrDefaultin classGroup
-
getTax
-
payTaxes
-
getRelationWith
-
placeOrMoveNexus
public NexusMoveEvent placeOrMoveNexus(@NonNull org.bukkit.Location toLocation, @Nullable KingdomPlayer kp) - Specified by:
placeOrMoveNexusin classGroup
-
getMight
public double getMight() -
hasAttribute
-
acceptRelationshipRequest
-
sendRelationshipRequest
public KingdomRelationshipRequest sendRelationshipRequest(@Nullable KingdomPlayer sender, @NonNull Nation nation, @NonNull KingdomRelation relation, long acceptTime) -
sendRelationshipRequest
public KingdomRelationshipRequest sendRelationshipRequest(@Nullable KingdomPlayer sender, @NonNull Nation nation, @NonNull KingdomRelation relation) -
updateRankNode
- Specified by:
updateRankNodein classGroup
-
revokeRelationsWith
-
getNation
- Specified by:
getNationin interfaceNationOperator
-