Uses of Class
com.palmergames.bukkit.towny.object.WorldCoord
Package
Description
-
Uses of WorldCoord in com.palmergames.bukkit.towny
Modifier and TypeMethodDescriptionTownyUniverse.getTownBlocks()
Get Universe-wide ConcurrentHashMap of WorldCoords and their TownBlocks.TownyUniverse.getWildernessMapDataMap()
Modifier and TypeMethodDescription@Nullable TownBlock
TownyAPI.getTownBlock
(WorldCoord wc) Get theTownBlock
at a specificWorldCoord
.TownyUniverse.getTownBlock
(WorldCoord worldCoord) How to get a TownBlock for now.@Nullable TownBlock
TownyUniverse.getTownBlockOrNull
(WorldCoord worldCoord) TownyAPI.hasNationZone
(WorldCoord worldCoord) Method to figure out if a worldcoord in the wilderness is normal wilderness of nation zone.boolean
TownyUniverse.hasTownBlock
(WorldCoord worldCoord) Does this WorldCoord have a TownBlock?boolean
TownyAPI.isWilderness
(WorldCoord worldCoord) Check if the specifiedWorldCoord
is in the wilderness.void
TownyAPI.testTownClaimOrThrow
(Town town, WorldCoord coordToClaim, boolean outpost, boolean newTown) Test a WorldCoord to see if Towny would allow the area to be claimed by the given town.void
TownyAPI.testTownUnclaimOrThrow
(Town town, WorldCoord coordToUnclaim) Test a WorldCoord to see if Towny would allow the area to be unclaimed by the given town.void
Towny.updateCache
(WorldCoord worldCoord) Resets all Online player caches if their location equals this one -
Uses of WorldCoord in com.palmergames.bukkit.towny.command
Modifier and TypeMethodDescriptionstatic boolean
TownCommand.isEdgeBlock
(TownBlockOwner owner, WorldCoord worldCoord, List<WorldCoord> visited) void
PlotCommand.setPlotForSale
(Resident resident, WorldCoord worldCoord, double forSale) Set the plot for sale/not for sale if permittedModifier and TypeMethodDescriptionstatic boolean
TownCommand.isEdgeBlock
(TownBlockOwner owner, WorldCoord worldCoord, List<WorldCoord> visited) static boolean
TownCommand.isEdgeBlock
(TownBlockOwner owner, List<WorldCoord> worldCoords) -
Uses of WorldCoord in com.palmergames.bukkit.towny.event
Modifier and TypeMethodDescriptionPlayerChangePlotEvent.getFrom()
ChunkNotificationEvent.getFromCoord()
PlayerChangePlotEvent.getTo()
ChunkNotificationEvent.getToCoord()
PreNewTownEvent.getTownWorldCoord()
ModifierConstructorDescriptionChunkNotificationEvent
(org.bukkit.entity.Player player, String message, WorldCoord toCoord, WorldCoord fromCoord) A cancellable event that lets other plugins change or disable a ChunkNotification shown to a player when they move between plots.PlayerChangePlotEvent
(org.bukkit.entity.Player player, WorldCoord from, WorldCoord to, org.bukkit.event.player.PlayerMoveEvent moveEvent) -
Uses of WorldCoord in com.palmergames.bukkit.towny.event.asciimap
Modifier and TypeMethodDescriptionWildernessMapEvent.getWorldCoord()
Get the WorldCoord which is being shown on the map. -
Uses of WorldCoord in com.palmergames.bukkit.towny.event.player
Modifier and TypeMethodDescriptionPlayerEntersIntoTownBorderEvent.getFrom()
PlayerExitsFromTownBorderEvent.getFrom()
PlayerEntersIntoTownBorderEvent.getTo()
PlayerExitsFromTownBorderEvent.getTo()
PlayerCacheGetTownBlockStatusEvent.getWorldCoord()
ModifierConstructorDescriptionPlayerCacheGetTownBlockStatusEvent
(org.bukkit.entity.Player player, WorldCoord worldCoord, PlayerCache.TownBlockStatus townBlockStatus) PlayerEntersIntoTownBorderEvent
(org.bukkit.entity.Player player, WorldCoord to, WorldCoord from, Town enteredTown, org.bukkit.event.player.PlayerMoveEvent pme) PlayerExitsFromTownBorderEvent
(org.bukkit.entity.Player player, WorldCoord to, WorldCoord from, Town leftTown, org.bukkit.event.player.PlayerMoveEvent pme) -
Uses of WorldCoord in com.palmergames.bukkit.towny.event.town
Modifier and TypeMethodDescriptionTownUnclaimEvent.getWorldCoord()
Gets the unclaimedWorldCoord
.ModifierConstructorDescriptionTownUnclaimEvent
(Town town, WorldCoord worldCoord, boolean isOverClaim) ModifierConstructorDescriptionTownPreUnclaimCmdEvent
(Town town, Resident resident, TownyWorld world, List<WorldCoord> selection) Constructs the TownPreUnclaimCmdEvent and stores data an external war plugin may use. -
Uses of WorldCoord in com.palmergames.bukkit.towny.huds
Modifier and TypeMethodDescriptionstatic void
MapHUD.updateMap
(org.bukkit.entity.Player player, WorldCoord wc) static void
PermHUD.updatePerms
(org.bukkit.entity.Player p, WorldCoord worldCoord) -
Uses of WorldCoord in com.palmergames.bukkit.towny.object
Modifier and TypeMethodDescriptionWorldCoord.add
(int xOffset, int zOffset) @NotNull WorldCoord
PlayerCache.getLastTownBlock()
Retrieve the last cached WorldCoordSpawnPoint.getWorldCoord()
TownBlock.getWorldCoord()
static WorldCoord
WorldCoord.parseWorldCoord
(String worldName, int blockX, int blockZ) static WorldCoord
WorldCoord.parseWorldCoord
(org.bukkit.block.Block block) static WorldCoord
WorldCoord.parseWorldCoord
(org.bukkit.entity.Entity entity) static WorldCoord
WorldCoord.parseWorldCoord
(org.bukkit.Location loc) Position.worldCoord()
Modifier and TypeMethodDescriptionWorldCoord.getCardinallyAdjacentWorldCoords
(boolean... includeOrdinalFlag) Town.getTownBlockMap()
Modifier and TypeMethodDescriptionstatic CellSurface
CellSurface.getCellSurface
(WorldCoord worldCoord) Town.getTownBlock
(WorldCoord worldCoord) boolean
Town.hasTownBlock
(WorldCoord worldCoord) void
PlayerCache.resetAndUpdate
(@NotNull WorldCoord worldCoord) Reset the cache permissions and update the cache with new coordinates.void
PlayerCache.setLastTownBlock
(@NotNull WorldCoord worldCoord) Update the cache with new coordinates.boolean
PlayerCache.updateCoord
(@NotNull WorldCoord pos) Update the players WorldCoord, resetting all permissions if it has changed.ModifierConstructorDescriptionCellBorder
(WorldCoord worldCoord, boolean[] border) CellSurface
(WorldCoord worldCoord) TownBlock
(WorldCoord worldCoord) WorldCoord
(WorldCoord worldCoord) -
Uses of WorldCoord in com.palmergames.bukkit.towny.object.map
ModifierConstructorDescriptionTownyMapData
(WorldCoord worldCoord, String symbol, net.kyori.adventure.text.TextComponent hoverText, String clickCommand) -
Uses of WorldCoord in com.palmergames.bukkit.towny.object.notification
-
Uses of WorldCoord in com.palmergames.bukkit.towny.regen
Modifier and TypeMethodDescriptionPlotBlockData.getWorldCoord()
static @Nullable WorldCoord
WorldCoordEntityRemover.getWorldCoordFromQueue()
static @Nullable WorldCoord
WorldCoordMaterialRemover.getWorldCoordFromQueue()
Modifier and TypeMethodDescriptionstatic Collection<WorldCoord>
TownyRegenAPI.getRegenQueueList()
Modifier and TypeMethodDescriptionstatic void
WorldCoordEntityRemover.addToActiveQueue
(WorldCoord worldCoord) static void
WorldCoordMaterialRemover.addToActiveQueue
(WorldCoord worldCoord) static void
WorldCoordEntityRemover.addToQueue
(WorldCoord worldCoord) static void
WorldCoordMaterialRemover.addToQueue
(WorldCoord worldCoord) static void
TownyRegenAPI.addToRegenQueueList
(WorldCoord wc, boolean save) Adds a WorldCoord to the queue of the revert on unclaim feature.static void
WorldCoordMaterialRemover.deleteMaterialsFromWorldCoord
(WorldCoord coord, Collection<org.bukkit.Material> collection) Deletes all blocks which are found in the given Collection of Materialsstatic void
WorldCoordEntityRemover.doDeleteTownBlockEntities
(WorldCoord worldCoord) Deletes all of the world's deleted-entities-on-unclaim from the given WorldCoord.static String
TownyRegenAPI.getPlotKey
(WorldCoord wc) static boolean
TownyRegenAPI.hasActiveRegeneration
(WorldCoord wc) static boolean
WorldCoordEntityRemover.isActiveQueue
(WorldCoord worldCoord) static boolean
WorldCoordMaterialRemover.isActiveQueue
(WorldCoord worldCoord) static boolean
WorldCoordEntityRemover.isQueued
(WorldCoord worldCoord) static boolean
WorldCoordMaterialRemover.isQueued
(WorldCoord worldCoord) static void
WorldCoordMaterialRemover.queueDeleteWorldCoordMaterials
(WorldCoord coord, Collection<org.bukkit.Material> collection) Used to delete a collection of Materials from a worldCoord.static void
WorldCoordMaterialRemover.queueUnclaimMaterialsDeletion
(WorldCoord worldCoord) Used to delete the world's PlotManagementDeleteIds when a townblock is unclaimed.static void
TownyRegenAPI.removeFromRegenQueueList
(WorldCoord wc) Removes a WorldCoord from the queue of the revert on unclaim feature. -
Uses of WorldCoord in com.palmergames.bukkit.towny.tasks
ModifierConstructorDescriptionPlotClaim
(Towny plugin, org.bukkit.entity.Player player, Resident resident, List<WorldCoord> selection, boolean claim, boolean admin, boolean groupClaim) TownClaim
(Towny plugin, org.bukkit.entity.Player player, Town town, List<WorldCoord> selection, boolean isOutpost, boolean claim, boolean forced) TownClaim
(Towny plugin, org.bukkit.entity.Player player, Town town, List<WorldCoord> selection, boolean isOutpost, boolean claim, boolean forced, boolean isOverClaim) -
Uses of WorldCoord in com.palmergames.bukkit.towny.utils
Modifier and TypeMethodDescription@NotNull Collection<WorldCoord>
BorderUtil.FloodfillResult.coords()
Returns the value of thecoords
record component.static List<WorldCoord>
AreaSelectionUtil.filterInvalidProximityToHomeblock
(List<WorldCoord> selection, Town town) Returns a list containing only townblocks that can be claimed.static List<WorldCoord>
AreaSelectionUtil.filterInvalidProximityTownBlocks
(List<WorldCoord> selection, Town town) Returns a list containing only townblocks that can be claimed.static List<WorldCoord>
AreaSelectionUtil.filterOutByBiome
(org.bukkit.entity.Player player, List<WorldCoord> selection, Predicate<WorldCoord> biomeThresholdTest, String errorMsg) static List<WorldCoord>
AreaSelectionUtil.filterOutOceanBiomeWorldCoords
(org.bukkit.entity.Player player, List<WorldCoord> selection) Returns a List containing only WorldCoords which are not composed of "too much" ocean biomes, with the threshold determined by the config.static List<WorldCoord>
AreaSelectionUtil.filterOutResidentBlocks
(Resident resident, List<WorldCoord> selection) Returns a List containing only claimed townblocks, which are: - not personally owned by a resident who isn't the given residentstatic List<WorldCoord>
AreaSelectionUtil.filterOutTownOwnedBlocks
(List<WorldCoord> selection) Returns a list containing only wilderness townblocks.static List<WorldCoord>
AreaSelectionUtil.filterOutUnwantedBiomeWorldCoords
(org.bukkit.entity.Player player, List<WorldCoord> selection) Returns a List containing only WorldCoords which are not composed of "too much" bad biomes, with the threshold determined by the config.static List<WorldCoord>
AreaSelectionUtil.filterOutWildernessBlocks
(List<WorldCoord> selection) Returns a List containing only claimed townblocks.static List<WorldCoord>
AreaSelectionUtil.filterOwnedBlocks
(TownBlockOwner owner, List<WorldCoord> selection) Returns a List containing only claimed townblocks, owned by the given owner.static List<WorldCoord>
AreaSelectionUtil.filterPlotsByGroup
(PlotGroup group, List<WorldCoord> selection) Gives a list of townblocks that have membership to the specified group.static List<WorldCoord>
AreaSelectionUtil.filterPlotsForSale
(Resident resident, List<WorldCoord> selection) Gather plots that are for sale only, using a resident to determine whether they can be bought.static List<WorldCoord>
AreaSelectionUtil.filterPlotsForSale
(List<WorldCoord> selection) Gather plots that are for sale only, currently used only for setting plots to notforsale.static List<WorldCoord>
AreaSelectionUtil.filterPlotsNotForSale
(List<WorldCoord> selection) Gather plots that are not for sale only.static List<WorldCoord>
AreaSelectionUtil.filterUnownedBlocks
(TownBlockOwner owner, List<WorldCoord> selection) Returns a List containing only claimed townblocks, which are not owned by the given owner.static List<WorldCoord>
AreaSelectionUtil.selectWorldCoordArea
(TownBlockOwner owner, WorldCoord pos, String[] args) Method to select a List<WorldCoord> of coordinates.static List<WorldCoord>
AreaSelectionUtil.selectWorldCoordArea
(TownBlockOwner owner, WorldCoord pos, String[] args, boolean claim) Method to select a List<WorldCoord> of coordinates.Modifier and TypeMethodDescriptionstatic void
ProximityUtil.allowTownClaimOrThrow
(TownyWorld world, WorldCoord townBlockToClaim, @Nullable Town town, boolean outpost) static void
ProximityUtil.allowTownClaimOrThrow
(TownyWorld world, WorldCoord townBlockToClaim, @Nullable Town town, boolean outpost, boolean trade) static void
ProximityUtil.allowTownUnclaimOrThrow
(TownyWorld world, WorldCoord townBlockToUnclaim, @Nullable Town town) static PlayerCache.TownBlockStatus
PlayerCacheUtil.cacheStatus
(org.bukkit.entity.Player player, WorldCoord worldCoord, PlayerCache.TownBlockStatus townBlockStatus) Update and return back the townBlockStatus for the player at this worldCoord.static PlayerCache.TownBlockStatus
PlayerCacheUtil.fetchTownBlockStatus
(org.bukkit.entity.Player player, WorldCoord worldCoord) Wrapper forPlayerCacheUtil.getTownBlockStatus(Player, WorldCoord)
which allows another plugin to alter the pre-determined TownBlockStatus.static @NotNull BorderUtil.FloodfillResult
BorderUtil.getFloodFillableCoords
(@NotNull Town town, @NotNull WorldCoord origin) static CellBorder
BorderUtil.getPlotBorder
(WorldCoord worldCoord) static PlayerCache.TownBlockStatus
PlayerCacheUtil.getTownBlockStatus
(org.bukkit.entity.Player player, WorldCoord worldCoord) Fetch the TownBlockStatus type for this player at this WorldCoord.static boolean
CombatUtil.isEnemyTownBlock
(org.bukkit.entity.Player player, WorldCoord worldCoord) Does this WorldCoord fall within a plot owned by an enemy town?static boolean
AreaSelectionUtil.isOnEdgeOfOwnership
(TownBlockOwner owner, WorldCoord worldCoord) static boolean
AreaSelectionUtil.isTooCloseToHomeBlock
(WorldCoord wc, Town town) Is the WorldCoord too close to another town's HomeBlock.static List<WorldCoord>
AreaSelectionUtil.selectWorldCoordArea
(TownBlockOwner owner, WorldCoord pos, String[] args) Method to select a List<WorldCoord> of coordinates.static List<WorldCoord>
AreaSelectionUtil.selectWorldCoordArea
(TownBlockOwner owner, WorldCoord pos, String[] args, boolean claim) Method to select a List<WorldCoord> of coordinates.static void
ChunkNotificationUtil.showChunkNotification
(org.bukkit.entity.Player player, Resident resident, WorldCoord to, WorldCoord from) static void
ProximityUtil.testAdjacentClaimsRulesOrThrow
(WorldCoord townBlockToClaim, Town town, boolean outpost) static void
ProximityUtil.testAdjacentUnclaimsRulesOrThrow
(WorldCoord townBlockToUnclaim, Town town) Modifier and TypeMethodDescriptionstatic boolean
AreaSelectionUtil.filterHomeBlock
(Town town, List<WorldCoord> selection) static List<WorldCoord>
AreaSelectionUtil.filterInvalidProximityToHomeblock
(List<WorldCoord> selection, Town town) Returns a list containing only townblocks that can be claimed.static List<WorldCoord>
AreaSelectionUtil.filterInvalidProximityTownBlocks
(List<WorldCoord> selection, Town town) Returns a list containing only townblocks that can be claimed.static List<WorldCoord>
AreaSelectionUtil.filterOutByBiome
(org.bukkit.entity.Player player, List<WorldCoord> selection, Predicate<WorldCoord> biomeThresholdTest, String errorMsg) static List<WorldCoord>
AreaSelectionUtil.filterOutByBiome
(org.bukkit.entity.Player player, List<WorldCoord> selection, Predicate<WorldCoord> biomeThresholdTest, String errorMsg) static List<WorldCoord>
AreaSelectionUtil.filterOutOceanBiomeWorldCoords
(org.bukkit.entity.Player player, List<WorldCoord> selection) Returns a List containing only WorldCoords which are not composed of "too much" ocean biomes, with the threshold determined by the config.static List<WorldCoord>
AreaSelectionUtil.filterOutResidentBlocks
(Resident resident, List<WorldCoord> selection) Returns a List containing only claimed townblocks, which are: - not personally owned by a resident who isn't the given residentstatic List<WorldCoord>
AreaSelectionUtil.filterOutTownOwnedBlocks
(List<WorldCoord> selection) Returns a list containing only wilderness townblocks.static List<WorldCoord>
AreaSelectionUtil.filterOutUnwantedBiomeWorldCoords
(org.bukkit.entity.Player player, List<WorldCoord> selection) Returns a List containing only WorldCoords which are not composed of "too much" bad biomes, with the threshold determined by the config.static List<WorldCoord>
AreaSelectionUtil.filterOutWildernessBlocks
(List<WorldCoord> selection) Returns a List containing only claimed townblocks.static List<WorldCoord>
AreaSelectionUtil.filterOwnedBlocks
(TownBlockOwner owner, List<WorldCoord> selection) Returns a List containing only claimed townblocks, owned by the given owner.static List<WorldCoord>
AreaSelectionUtil.filterPlotsByGroup
(PlotGroup group, List<WorldCoord> selection) Gives a list of townblocks that have membership to the specified group.static List<WorldCoord>
AreaSelectionUtil.filterPlotsForSale
(Resident resident, List<WorldCoord> selection) Gather plots that are for sale only, using a resident to determine whether they can be bought.static List<WorldCoord>
AreaSelectionUtil.filterPlotsForSale
(List<WorldCoord> selection) Gather plots that are for sale only, currently used only for setting plots to notforsale.static List<WorldCoord>
AreaSelectionUtil.filterPlotsNotForSale
(List<WorldCoord> selection) Gather plots that are not for sale only.static List<WorldCoord>
AreaSelectionUtil.filterUnownedBlocks
(TownBlockOwner owner, List<WorldCoord> selection) Returns a List containing only claimed townblocks, which are not owned by the given owner.static List<CellBorder>
BorderUtil.getOuterBorder
(List<WorldCoord> worldCoords) static List<CellBorder>
BorderUtil.getPlotBorder
(List<WorldCoord> worldCoords) AreaSelectionUtil.getPlotGroupsFromSelection
(List<WorldCoord> selection) ModifierConstructorDescriptionFloodfillResult
(@NotNull BorderUtil.FloodfillResult.Type type, @Nullable Translatable feedback, @NotNull Collection<WorldCoord> coords) Creates an instance of aFloodfillResult
record class. -
Uses of WorldCoord in com.palmergames.bukkit.util
Modifier and TypeMethodDescriptionstatic org.bukkit.Color
DrawSmokeTaskFactory.getAffiliationColor
(Resident resident, WorldCoord coord) static double
BiomeUtil.getWorldCoordBadBiomePercent
(WorldCoord worldCoord, Predicate<org.bukkit.block.Biome> biomePredicate) static double
BiomeUtil.getWorldCoordOceanBiomePercent
(WorldCoord worldCoord) static double
BiomeUtil.getWorldCoordUnwantedBiomePercent
(WorldCoord worldCoord) static boolean
BlockUtil.sameWorldCoord
(WorldCoord wc, WorldCoord wc2) static Consumer<org.bukkit.Location>
DrawSmokeTaskFactory.showToPlayer
(@NotNull org.bukkit.entity.Player player, @NotNull WorldCoord worldCoord)