Uses of Interface
konquest.api.model.KonquestTown
Packages that use KonquestTown
Package
Description
Events related to towns.
The manager package provides specialized interfaces for specific features in Konquest.
The model package offers lower-level object interfaces that are managed by the managers.
-
Uses of KonquestTown in konquest.api.event.town
Methods in konquest.api.event.town that return KonquestTownModifier and TypeMethodDescriptionKonquestTownEvent.getTown()Gets the town associated with the event.Constructors in konquest.api.event.town with parameters of type KonquestTownModifierConstructorDescriptionKonquestTownAttackEvent(KonquestAPI konquest, KonquestTown town, KonquestPlayer attacker, org.bukkit.block.Block block, boolean isMonument, boolean isCritical) Default constructorKonquestTownCaptureEvent(KonquestAPI konquest, KonquestTown town, KonquestPlayer player, KonquestKingdom newKingdom) Default constructorKonquestTownDestroyEvent(KonquestAPI konquest, KonquestTown town, KonquestPlayer player) Default constructorKonquestTownEvent(KonquestAPI konquest, KonquestTown town) Default constructorKonquestTownSettleEvent(KonquestAPI konquest, KonquestTown town, KonquestPlayer player, KonquestKingdom kingdom) Default constructor -
Uses of KonquestTown in konquest.api.manager
Methods in konquest.api.manager that return types with arguments of type KonquestTownModifier and TypeMethodDescriptionList<? extends KonquestTown>KonquestKingdomManager.getPlayerKnightTowns(KonquestOfflinePlayer player) Gets the towns which the given player is a knight of.List<? extends KonquestTown>KonquestKingdomManager.getPlayerLordshipTowns(KonquestOfflinePlayer player) Gets the towns which the given player is the lord of.List<? extends KonquestTown>KonquestKingdomManager.getPlayerResidenceTowns(KonquestOfflinePlayer player) Gets the towns which the given player is a resident of.Methods in konquest.api.manager with parameters of type KonquestTownModifier and TypeMethodDescriptionbooleanKonquestUpgradeManager.applyTownUpgrade(KonquestTown town, KonquestUpgrade upgrade, int level) Apply the given upgrade and level to the given town.booleanKonquestShieldManager.armorAdd(KonquestTown town, int value) Adds to a town's armor in blocks, positive or negative.booleanKonquestShieldManager.armorSet(KonquestTown town, int value) Sets a town's armor amount in blocks.KonquestUpgradeManager.getAvailableUpgrades(KonquestTown town) Provides a list of upgrades available for purchase for the given town.intKonquestShieldManager.getTownArmorBlocks(KonquestTown town) Gets the amount of armor blocks the town currently has.KonquestGuildManager.getTownGuild(KonquestTown town) Gets the guild of the given town.intKonquestShieldManager.getTownShieldTime(KonquestTown town) Gets the time in seconds at which the town's shields will expire.intKonquestUpgradeManager.getTownUpgradeLevel(KonquestTown town, KonquestUpgrade upgrade) Gets the current upgrade level of the given town.booleanKonquestGuildManager.isArmistice(KonquestOfflinePlayer player1, KonquestTown town2) Checks whether the player's guild is in an armistice with the town.booleanKonquestPlotManager.isPlayerPlotProtectBuild(KonquestTown town, org.bukkit.Location loc, org.bukkit.entity.Player player) Checks if the plot at the given location for the given town is protected from edits from the given player.booleanKonquestPlotManager.isPlayerPlotProtectContainer(KonquestTown town, org.bukkit.Location loc, org.bukkit.entity.Player player) Checks if the plot at the given location for the given town is protected from container access from the given player.booleanKonquestShieldManager.shieldAdd(KonquestTown town, int value) Adds to a town's shields in seconds, positive or negative.booleanKonquestShieldManager.shieldSet(KonquestTown town, int value) Sets a town's shields to expire a number of seconds from now. -
Uses of KonquestTown in konquest.api.model
Methods in konquest.api.model that return KonquestTownModifier and TypeMethodDescriptionGets the town instance by the given name.Methods in konquest.api.model that return types with arguments of type KonquestTownModifier and TypeMethodDescriptionArrayList<? extends KonquestTown>KonquestKingdom.getTowns()Get a list of all towns in this kingdom.Methods in konquest.api.model with parameters of type KonquestTownModifier and TypeMethodDescriptionbooleanKonquestGuild.isTownMember(KonquestTown town) Checks whether the given town is a member of this guild.