Modifier and Type | Method and Description |
---|---|
static java.lang.String[] |
TownySettings.getPlotForSaleMsg(java.lang.String who,
WorldCoord worldCoord) |
static java.lang.String[] |
TownySettings.getWarTimeLoseTownBlockMsg(WorldCoord worldCoord) |
static java.lang.String[] |
TownySettings.getWarTimeLoseTownBlockMsg(WorldCoord worldCoord,
java.lang.String town) |
void |
Towny.updateCache(WorldCoord worldCoord)
Resets all Online player caches if their location equals this one
|
Constructor and Description |
---|
ChunkNotification(WorldCoord from,
WorldCoord to) |
Modifier and Type | Method and Description |
---|---|
static boolean |
TownCommand.isEdgeBlock(TownBlockOwner owner,
WorldCoord worldCoord) |
void |
PlotCommand.setPlotForSale(Resident resident,
WorldCoord worldCoord,
double forSale)
Set the plot for sale/not for sale if permitted
|
void |
PlotCommand.setPlotType(Resident resident,
WorldCoord worldCoord,
java.lang.String type)
Set the plot type if we are permitted
|
Modifier and Type | Method and Description |
---|---|
static void |
TownCommand.checkIfSelectionIsValid(TownBlockOwner owner,
java.util.List<WorldCoord> selection,
boolean attachedToEdge,
double blockCost,
boolean force) |
static boolean |
TownCommand.isEdgeBlock(TownBlockOwner owner,
java.util.List<WorldCoord> worldCoords) |
Modifier and Type | Method and Description |
---|---|
WorldCoord |
PlayerChangePlotEvent.getFrom() |
WorldCoord |
PlayerChangePlotEvent.getTo() |
WorldCoord |
TownUnclaimEvent.getWorldCoord() |
Constructor and Description |
---|
PlayerChangePlotEvent(org.bukkit.entity.Player player,
WorldCoord from,
WorldCoord to,
org.bukkit.event.player.PlayerMoveEvent moveEvent) |
TownUnclaimEvent(Town _town,
WorldCoord _worldcoord) |
Modifier and Type | Method and Description |
---|---|
void |
TownyPlayerListener.onPlayerMoveChunk(org.bukkit.entity.Player player,
WorldCoord from,
WorldCoord to,
org.bukkit.Location fromLoc,
org.bukkit.Location toLoc,
org.bukkit.event.player.PlayerMoveEvent moveEvent) |
Modifier and Type | Class and Description |
---|---|
class |
CellBorder |
Modifier and Type | Method and Description |
---|---|
WorldCoord |
WorldCoord.add(int xOffset,
int zOffset) |
WorldCoord |
PlayerCache.getLastTownBlock()
Retrieve the last cached WorldCoord
|
WorldCoord |
TownBlock.getWorldCoord() |
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) |
Modifier and Type | Method and Description |
---|---|
void |
TownyUniverse.addWarZone(WorldCoord worldCoord) |
boolean |
TownyUniverse.isEnemyTownBlock(org.bukkit.entity.Player player,
WorldCoord worldCoord)
Deprecated.
|
void |
TownyUniverse.removeWarZone(WorldCoord worldCoord) |
void |
PlayerCache.resetAndUpdate(WorldCoord worldCoord)
Reset the cache permissions and update the cache with new coordinates.
|
void |
PlayerCache.setLastTownBlock(WorldCoord worldCoord)
Update the cache with new coordinates.
|
boolean |
PlayerCache.updateCoord(WorldCoord pos)
Update the players WorldCoord, resetting all permissions if it has changed.
|
Constructor and Description |
---|
CellBorder(WorldCoord worldCoord,
boolean[] border) |
PlayerCache(WorldCoord worldCoord) |
WorldCoord(WorldCoord worldCoord) |
Modifier and Type | Method and Description |
---|---|
static WorldCoord |
TownyRegenAPI.getDeleteTownBlockIdQueue() |
static WorldCoord |
TownyRegenAPI.getWorldCoord() |
Modifier and Type | Method and Description |
---|---|
static void |
TownyRegenAPI.addDeleteTownBlockIdQueue(WorldCoord plot) |
static void |
TownyRegenAPI.addWorldCoord(WorldCoord worldCoord)
Add a TownBlocks WorldCoord for a snapshot to be taken.
|
static void |
TownyRegenAPI.doDeleteTownBlockIds(WorldCoord worldCoord)
Deletes all of a specified block type from a TownBlock
|
static boolean |
TownyRegenAPI.hasWorldCoord(WorldCoord worldCoord)
Check if this WorldCoord is waiting for a snapshot to be taken.
|
static boolean |
TownyRegenAPI.isDeleteTownBlockIdQueue(WorldCoord plot) |
Constructor and Description |
---|
PlotClaim(Towny plugin,
org.bukkit.entity.Player player,
Resident resident,
java.util.List<WorldCoord> selection,
boolean claim) |
TownClaim(Towny plugin,
org.bukkit.entity.Player player,
Town town,
java.util.List<WorldCoord> selection,
boolean isOutpost,
boolean claim,
boolean forced) |
Modifier and Type | Method and Description |
---|---|
static java.util.List<WorldCoord> |
AreaSelectionUtil.filterOwnedBlocks(TownBlockOwner owner,
java.util.List<WorldCoord> selection) |
static java.util.List<WorldCoord> |
AreaSelectionUtil.filterPlotsForSale(java.util.List<WorldCoord> selection) |
static java.util.List<WorldCoord> |
AreaSelectionUtil.filterPlotsNotForSale(java.util.List<WorldCoord> selection) |
static java.util.List<WorldCoord> |
AreaSelectionUtil.filterTownOwnedBlocks(java.util.List<WorldCoord> selection)
Returns a list containing only wilderness townblocks.
|
static java.util.List<WorldCoord> |
AreaSelectionUtil.filterUnownedPlots(java.util.List<WorldCoord> selection) |
static java.util.List<WorldCoord> |
AreaSelectionUtil.filterWildernessBlocks(java.util.List<WorldCoord> selection)
Returns a List containing only claimed townblocks.
|
static java.util.List<WorldCoord> |
AreaSelectionUtil.selectWorldCoordArea(TownBlockOwner owner,
WorldCoord pos,
java.lang.String[] args) |
static java.util.List<WorldCoord> |
AreaSelectionUtil.selectWorldCoordAreaCircle(TownBlockOwner owner,
WorldCoord pos,
java.lang.String[] args) |
static java.util.List<WorldCoord> |
AreaSelectionUtil.selectWorldCoordAreaRect(TownBlockOwner owner,
WorldCoord pos,
java.lang.String[] args) |
Modifier and Type | Method and Description |
---|---|
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 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.
|
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 java.util.List<WorldCoord> |
AreaSelectionUtil.selectWorldCoordArea(TownBlockOwner owner,
WorldCoord pos,
java.lang.String[] args) |
static java.util.List<WorldCoord> |
AreaSelectionUtil.selectWorldCoordAreaCircle(TownBlockOwner owner,
WorldCoord pos,
java.lang.String[] args) |
static java.util.List<WorldCoord> |
AreaSelectionUtil.selectWorldCoordAreaRect(TownBlockOwner owner,
WorldCoord pos,
java.lang.String[] args) |
Modifier and Type | Method and Description |
---|---|
static java.util.List<WorldCoord> |
AreaSelectionUtil.filterOwnedBlocks(TownBlockOwner owner,
java.util.List<WorldCoord> selection) |
static java.util.List<WorldCoord> |
AreaSelectionUtil.filterPlotsForSale(java.util.List<WorldCoord> selection) |
static java.util.List<WorldCoord> |
AreaSelectionUtil.filterPlotsNotForSale(java.util.List<WorldCoord> selection) |
static java.util.List<WorldCoord> |
AreaSelectionUtil.filterTownOwnedBlocks(java.util.List<WorldCoord> selection)
Returns a list containing only wilderness townblocks.
|
static java.util.List<WorldCoord> |
AreaSelectionUtil.filterUnownedPlots(java.util.List<WorldCoord> selection) |
static java.util.List<WorldCoord> |
AreaSelectionUtil.filterWildernessBlocks(java.util.List<WorldCoord> selection)
Returns a List containing only claimed townblocks.
|
static java.util.List<CellBorder> |
BorderUtil.getOuterBorder(java.util.List<WorldCoord> worldCoords) |
static java.util.List<CellBorder> |
BorderUtil.getPlotBorder(java.util.List<WorldCoord> worldCoords) |
Modifier and Type | Method and Description |
---|---|
boolean |
War.isWarZone(WorldCoord worldCoord) |
void |
War.remove(WorldCoord worldCoord) |
Modifier and Type | Method and Description |
---|---|
static WorldCoord |
TownyWar.cellToWorldCoord(Cell cell) |
Modifier and Type | Method and Description |
---|---|
static boolean |
TownyWar.callAttackCellEvent(Towny plugin,
org.bukkit.entity.Player player,
org.bukkit.block.Block block,
WorldCoord worldCoord) |