Uses of Class
com.palmergames.bukkit.towny.object.TownBlock
Package
Description
-
Uses of TownBlock in com.palmergames.bukkit.towny
Modifier and TypeMethodDescription@Nullable TownBlock
TownyAPI.getTownBlock
(@NotNull org.bukkit.entity.Player player) Get theTownBlock
in which aPlayer
is located.@Nullable TownBlock
TownyAPI.getTownBlock
(WorldCoord wc) Get theTownBlock
at a specificWorldCoord
.@Nullable TownBlock
TownyAPI.getTownBlock
(org.bukkit.Location location) Get theTownBlock
at a specificLocation
.TownyUniverse.getTownBlock
(WorldCoord worldCoord) How to get a TownBlock for now.@Nullable TownBlock
TownyUniverse.getTownBlockOrNull
(WorldCoord worldCoord) Modifier and TypeMethodDescriptionTownyAPI.getTownBlocks()
Get a Collection of all of the TownBlocks.TownyUniverse.getTownBlocks()
Get Universe-wide ConcurrentHashMap of WorldCoords and their TownBlocks.Modifier and TypeMethodDescriptionvoid
TownyUniverse.addTownBlock
(TownBlock townBlock) @Nullable Resident
TownyAPI.getResidentOrNull
(TownBlock townBlock) static StatusScreen
Gets the status screen of a TownBlock@Nullable Town
TownyAPI.getTownOrNull
(TownBlock townBlock) void
TownyUniverse.removeTownBlock
(TownBlock townBlock) Remove one townblock from the TownyUniverse townblock map.void
TownyAPI.testPlotOwnerOrThrow
(@NotNull Resident resident, @NotNull TownBlock townBlock) Test the townBlock to ensure it is owned by the given Resident, or the Resident is considered a Mayor or Town Assistant or a TownyAdmin.Modifier and TypeMethodDescriptionvoid
TownyUniverse.removeTownBlocks
(List<TownBlock> townBlocks) Remove a list of TownBlocks from the TownyUniverse townblock map. -
Uses of TownBlock in com.palmergames.bukkit.towny.command
Modifier and TypeMethodDescriptionvoid
PlotCommand.parsePlotClaim
(org.bukkit.entity.Player player, String[] args, Resident resident, TownBlock townBlock) void
PlotCommand.parsePlotClear
(Resident resident, TownBlock townBlock) void
PlotCommand.parsePlotEvict
(Resident resident, TownBlock townBlock) void
PlotCommand.parsePlotForSale
(org.bukkit.entity.Player player, String[] split, Resident resident, TownBlock townBlock) void
PlotCommand.parsePlotGroupAdd
(String[] split, TownBlock townBlock, org.bukkit.entity.Player player, Town town) void
PlotCommand.parsePlotGroupDelete
(TownBlock townBlock, org.bukkit.entity.Player player, Town town) void
PlotCommand.parsePlotGroupForSale
(String[] split, Resident resident, TownBlock townBlock, org.bukkit.entity.Player player, Town town) void
PlotCommand.parsePlotGroupNotForSale
(Resident resident, TownBlock townBlock, org.bukkit.entity.Player player, Town town) void
PlotCommand.parsePlotGroupPerm
(String[] split, Resident resident, TownBlock townBlock, org.bukkit.entity.Player player) void
PlotCommand.parsePlotGroupRemove
(TownBlock townBlock, org.bukkit.entity.Player player, Town town) void
PlotCommand.parsePlotGroupRename
(String[] split, TownBlock townBlock, org.bukkit.entity.Player player) void
PlotCommand.parsePlotGroupSet
(String[] split, Resident resident, TownBlock townBlock, org.bukkit.entity.Player player, Town town) void
PlotCommand.parsePlotGroupSetPerm
(String[] args, TownBlock townBlock, org.bukkit.entity.Player player, Town town, PlotGroup plotGroup, TownBlockOwner townBlockOwner) void
PlotCommand.parsePlotGroupSetTownBlockType
(String[] split, Resident resident, TownBlock townBlock, PlotGroup group, org.bukkit.entity.Player player, Town town) void
PlotCommand.parsePlotGroupToggle
(String[] split, TownBlock townBlock, org.bukkit.entity.Player player, Resident resident) void
PlotCommand.parsePlotGroupTrust
(String[] split, TownBlock townBlock, org.bukkit.entity.Player player) void
PlotCommand.parsePlotNotForSale
(org.bukkit.entity.Player player, String[] args, Resident resident, TownBlock townBlock) void
PlotCommand.parsePlotSet
(org.bukkit.entity.Player player, String[] split, Resident resident, TownBlock townBlock) void
PlotCommand.parsePlotSetName
(org.bukkit.entity.Player player, String[] name, TownBlock townBlock) void
PlotCommand.parsePlotSetOutpost
(org.bukkit.entity.Player player, Resident resident, TownBlock townBlock, boolean spawn) void
PlotCommand.plotToggle
(org.bukkit.entity.Player player, Resident resident, TownBlock townBlock, String[] split) Toggle the plots flags for pvp/explosion/fire/mobs (if town/world permissions allow)static TownyPermissionChange
PlotCommand.setTownBlockPermissions
(org.bukkit.entity.Player player, TownBlockOwner townBlockOwner, TownBlock townBlock, String[] split) Returns a TownyPermissionChange object representing the change action -
Uses of TownBlock in com.palmergames.bukkit.towny.db
Modifier and TypeMethodDescriptionabstract void
TownyDataSource.deleteTownBlock
(TownBlock townBlock) void
TownyFlatFileSource.deleteTownBlock
(TownBlock townBlock) void
TownySQLSource.deleteTownBlock
(TownBlock townBlock) TownyDatabaseHandler.getLegacyPlotFilename
(TownBlock townBlock) TownyFlatFileSource.getTownBlockFilename
(TownBlock townBlock) boolean
TownyDatabaseHandler.hasPlotData
(TownBlock townBlock) abstract boolean
TownyDataSource.hasPlotData
(TownBlock townBlock) TownyDatabaseHandler.loadPlotData
(TownBlock townBlock) Load PlotBlockData for regen at unclaim First attempts to load a .zip file containing the data file.abstract PlotBlockData
TownyDataSource.loadPlotData
(TownBlock townBlock) void
TownyDatabaseHandler.removeTownBlock
(TownBlock townBlock) abstract void
TownyDataSource.removeTownBlock
(TownBlock townBlock) abstract boolean
TownyDataSource.saveTownBlock
(TownBlock townBlock) boolean
TownyFlatFileSource.saveTownBlock
(TownBlock townBlock) boolean
TownySQLSource.saveTownBlock
(TownBlock townBlock) -
Uses of TownBlock in com.palmergames.bukkit.towny.event
Modifier and TypeMethodDescriptionPlotChangeTypeEvent.getTownBlock()
PlotClearEvent.getTownBlock()
PlotPreChangeTypeEvent.getTownBlock()
PlotPreClearEvent.getTownBlock()
TownBlockPermissionChangeEvent.getTownBlock()
TownBlockSettingsChangedEvent.getTownBlock()
TownClaimEvent.getTownBlock()
TownPreClaimEvent.getTownBlock()
The TownBlock which is being claimed.ModifierConstructorDescriptionPlotChangeTypeEvent
(TownBlockType oldType, TownBlockType newType, TownBlock townBlock) Changes a plot's TownBlockTypePlotClearEvent
(TownBlock _townBlock) PlotPreChangeTypeEvent
(TownBlockType newType, TownBlock townBlock, Resident resident) Changes a plot's TownBlockTypePlotPreClearEvent
(TownBlock townBlock) TownBlockPermissionChangeEvent
(@NotNull TownBlock townBlock, @NotNull TownyPermissionChange change) TownClaimEvent
(TownBlock townBlock, org.bukkit.entity.Player player, boolean isOverClaim) TownPreClaimEvent
(Town town, TownBlock townBlock, org.bukkit.entity.Player player, boolean isOutpost, boolean isHomeblock, boolean isOverClaim) This event runs when a town is made and when a town attempts to claim land. -
Uses of TownBlock in com.palmergames.bukkit.towny.event.actions
Modifier and TypeMethodDescription@Nullable TownBlock
TownyActionEvent.getTownBlock()
TheTownBlock
this action occured in, or null if in the wilderness.@Nullable TownBlock
TownyBurnEvent.getTownBlock()
TheTownBlock
this action occured in, or null if in the wilderness.ModifierConstructorDescriptionTownyActionEvent
(org.bukkit.entity.Player player, org.bukkit.Location loc, org.bukkit.Material mat, TownBlock townblock, boolean cancelled) TownyBuildEvent
(org.bukkit.entity.Player player, org.bukkit.Location loc, org.bukkit.Material mat, org.bukkit.block.Block block, TownBlock townblock, boolean cancelled) Build event thrown when a player attempts to build blocks in the world.TownyBurnEvent
(org.bukkit.block.Block block, org.bukkit.Location location, TownBlock townblock, boolean cancelled) Event thrown when a block will be burned or ignited.TownyDestroyEvent
(org.bukkit.entity.Player player, org.bukkit.Location loc, org.bukkit.Material mat, org.bukkit.block.Block block, TownBlock townblock, boolean cancelled) Destroy event thrown when a player attempts to destroy blocks in the world.TownyItemuseEvent
(org.bukkit.entity.Player player, org.bukkit.Location loc, org.bukkit.Material mat, TownBlock townblock, boolean cancelled) Itemuse event thrown when a player attempts to use an item that is in the Towny config's item_use_ids list.TownySwitchEvent
(org.bukkit.entity.Player player, org.bukkit.Location loc, org.bukkit.Material mat, org.bukkit.block.Block block, TownBlock townblock, boolean cancelled) Switch event thrown when a player attempts to use a block that is in the Towny config's switch_use_ids list. -
Uses of TownBlock in com.palmergames.bukkit.towny.event.damage
Modifier and TypeMethodDescription@NotNull TownBlock
TownBlockExplosionTestEvent.getTownBlock()
TownBlockPVPTestEvent.getTownBlock()
@Nullable TownBlock
TownyDamageEvent.getTownBlock()
TheTownBlock
this action occured in, or null if in the wilderness.ModifierConstructorDescriptionTownBlockExplosionTestEvent
(TownBlock townBlock, Town town, boolean explosion) TownBlockPVPTestEvent
(TownBlock townBlock, boolean pvp) TownyDamageEvent
(org.bukkit.Location loc, org.bukkit.entity.Entity entity, org.bukkit.event.entity.EntityDamageEvent.DamageCause cause, TownBlock townblock, boolean cancelled) TownyDispenserDamageEntityEvent
(org.bukkit.Location loc, org.bukkit.entity.Entity entity, org.bukkit.event.entity.EntityDamageEvent.DamageCause cause, TownBlock townblock, boolean cancelled, org.bukkit.block.Block dispenserBlock) TownyExplosionDamagesEntityEvent
(org.bukkit.Location location, org.bukkit.entity.Entity harmedEntity, org.bukkit.event.entity.EntityDamageEvent.DamageCause cause, TownBlock townblock, boolean cancelled) Event thrown when an explosion damages an entity.TownyPlayerDamageEntityEvent
(org.bukkit.Location location, org.bukkit.entity.Entity harmedEntity, org.bukkit.event.entity.EntityDamageEvent.DamageCause cause, TownBlock townblock, boolean cancelled, org.bukkit.entity.Player player) This event is not fired and this class is only a placeholder.TownyPlayerDamagePlayerEvent
(org.bukkit.Location location, org.bukkit.entity.Entity harmedEntity, org.bukkit.event.entity.EntityDamageEvent.DamageCause cause, TownBlock townblock, boolean cancelled, org.bukkit.entity.Player attackingPlayer) Event thrown when a player damages a player. -
Uses of TownBlock in com.palmergames.bukkit.towny.event.plot
Modifier and TypeMethodDescriptionPlayerChangePlotTypeEvent.getTownBlock()
@NotNull TownBlock
PlotNotForSaleEvent.getTownBlock()
@NotNull TownBlock
PlotSetForSaleEvent.getTownBlock()
Modifier and TypeMethodDescriptionPlotTrustAddEvent.getTownBlocks()
PlotTrustRemoveEvent.getTownBlocks()
ModifierConstructorDescriptionPlayerChangePlotTypeEvent
(TownBlockType newType, TownBlockType oldType, TownBlock townBlock, org.bukkit.entity.Player player) Thrown when a player has changed the plot type of a TownBlock successfully.PlotNotForSaleEvent
(Resident resident, TownBlock townBlock) PlotSetForSaleEvent
(Resident resident, double price, TownBlock townBlock) PlotTrustAddEvent
(TownBlock townBlock, Resident trustedResident, org.bukkit.entity.Player player) PlotTrustRemoveEvent
(TownBlock townBlock, Resident trustedResident, org.bukkit.entity.Player player) ModifierConstructorDescriptionPlotTrustAddEvent
(List<TownBlock> townBlocks, Resident trustedResident, org.bukkit.entity.Player player) PlotTrustRemoveEvent
(List<TownBlock> townBlocks, Resident trustedResident, org.bukkit.entity.Player player) -
Uses of TownBlock in com.palmergames.bukkit.towny.event.plot.changeowner
ModifierConstructorDescriptionPlotChangeOwnerEvent
(@Nullable Resident oldResident, @Nullable Resident newResident, @NotNull TownBlock townBlock) PlotClaimEvent
(Resident oldResident, Resident newResident, TownBlock townBlock) PlotPreClaimEvent
(Resident oldResident, Resident newResident, TownBlock townBlock) PlotPreUnclaimEvent
(Resident oldResident, Resident newResident, TownBlock townBlock) PlotUnclaimEvent
(Resident oldResident, Resident newResident, TownBlock townBlock) -
Uses of TownBlock in com.palmergames.bukkit.towny.event.plot.toggle
ModifierConstructorDescriptionPlotToggleEvent
(TownBlock townBlock, org.bukkit.entity.Player player, boolean futureState) PlotToggleExplosionEvent
(TownBlock townBlock, org.bukkit.entity.Player player, boolean futureState) PlotToggleFireEvent
(TownBlock townBlock, org.bukkit.entity.Player player, boolean futureState) PlotToggleMobsEvent
(TownBlock townBlock, org.bukkit.entity.Player player, boolean futureState) PlotTogglePvpEvent
(TownBlock townBlock, org.bukkit.entity.Player player, boolean futureState) PlotToggleTaxedEvent
(TownBlock townBlock, org.bukkit.entity.Player player, boolean futureState) -
Uses of TownBlock in com.palmergames.bukkit.towny.event.resident
-
Uses of TownBlock in com.palmergames.bukkit.towny.event.statusscreen
ModifierConstructorDescriptionTownBlockStatusScreenEvent
(StatusScreen screen, TownBlock townBlock) -
Uses of TownBlock in com.palmergames.bukkit.towny.event.town
Modifier and TypeMethodDescriptionTownCedePlotEvent.getTownBlock()
TownPreSetHomeBlockEvent.getTownBlock()
TownPreUnclaimEvent.getTownBlock()
TownSetOutpostSpawnEvent.getTownBlock()
ModifierConstructorDescriptionTownCedePlotEvent
(Town townGivingPlot, Town townGainingPlot, TownBlock townBlock) TownPreSetHomeBlockEvent
(Town town, TownBlock townBlock, org.bukkit.entity.Player player) TownPreUnclaimEvent
(Town town, TownBlock townBlock) -
Uses of TownBlock in com.palmergames.bukkit.towny.listeners
Modifier and TypeMethodDescriptionboolean
TownyPlayerListener.blockCommandInsideTown
(org.bukkit.entity.Player player, Resident resident, TownBlock townBlock, String command) Allows restricting commands while being in a town.boolean
TownyPlayerListener.blockOutlawedPlayerCommand
(org.bukkit.entity.Player player, Resident resident, TownBlock townBlock, String command) Blocks outlawed players using blacklisted commands. -
Uses of TownBlock in com.palmergames.bukkit.towny.object
Modifier and TypeMethodDescription@Nullable TownBlock
TownyWorld.getClosestTownblockWithNationFromCoord
(Coord key) Get the town block that belongs to the closest town with a nation from the specified coord.Town.getHomeBlock()
@Nullable TownBlock
Town.getHomeBlockOrNull()
Town.getTownBlock
(WorldCoord worldCoord) TownyWorld.getTownBlock
(int x, int z) TownyWorld.getTownBlock
(Coord coord) WorldCoord.getTownBlock()
Shortcut for TownyUniverse.getInstance().getTownBlock(WorldCoord).@Nullable TownBlock
WorldCoord.getTownBlockOrNull()
Relatively safe to use ifWorldCoord.hasTownBlock()
has already been checked and returned true.Modifier and TypeMethodDescriptionTown.getTownBlockMap()
abstract Collection<TownBlock>
Government.getTownBlocks()
Nation.getTownBlocks()
PlotGroup.getTownBlocks()
Resident.getTownBlocks()
Town.getTownBlocks()
TownBlockOwner.getTownBlocks()
Gets the unmodifiable collection of townblocks.TownyWorld.getTownBlocks()
TownyWorld.getTownBlocks
(Town town) Modifier and TypeMethodDescriptionvoid
PlotGroup.addTownBlock
(TownBlock townBlock) void
Resident.addTownBlock
(TownBlock townBlock) void
Town.addTownBlock
(TownBlock townBlock) void
TownBlockOwner.addTownBlock
(TownBlock townBlock) Adds a townblock to the list of existing townblocks.void
TownBlockTypeCache.addTownBlockOfType
(TownBlock townBlock) void
TownBlockTypeCache.addTownBlockOfTypeForSale
(TownBlock townBlock) void
TownBlockTypeCache.addTownBlockOfTypeResidentOwned
(TownBlock townBlock) void
Town.forceSetHomeBlock
(TownBlock homeBlock) Only to be called from the Loading methods.boolean
PlotGroup.hasTownBlock
(TownBlock townBlock) boolean
Resident.hasTownBlock
(TownBlock townBlock) boolean
Town.hasTownBlock
(TownBlock townBlock) boolean
TownBlockOwner.hasTownBlock
(TownBlock townBlock) Checks whether object has townblock or not.boolean
Town.isHomeBlock
(TownBlock townBlock) void
Town.playerSetsHomeBlock
(TownBlock townBlock, org.bukkit.Location location, org.bukkit.entity.Player player) void
PlotGroup.removeTownBlock
(TownBlock townBlock) void
Resident.removeTownBlock
(TownBlock townBlock) void
Town.removeTownBlock
(TownBlock townBlock) void
TownBlockOwner.removeTownBlock
(TownBlock townBlock) Removes townblock from the list of existing townblocks.void
TownBlockTypeCache.removeTownBlockOfType
(TownBlock townBlock) void
TownBlockTypeCache.removeTownBlockOfTypeForSale
(TownBlock townBlock) void
TownBlockTypeCache.removeTownBlockOfTypeResidentOwned
(TownBlock townBlock) void
Town.setHomeBlock
(@Nullable TownBlock homeBlock) Sets the HomeBlock of a townModifier and TypeMethodDescriptionvoid
PlotGroup.setTownblocks
(List<TownBlock> townBlocks) void
Resident.setTownblocks
(Collection<TownBlock> townBlocks) -
Uses of TownBlock in com.palmergames.bukkit.towny.object.gui
-
Uses of TownBlock in com.palmergames.bukkit.towny.object.jail
-
Uses of TownBlock in com.palmergames.bukkit.towny.regen
Modifier and TypeMethodDescriptionstatic CompletableFuture<PlotBlockData>
TownyRegenAPI.createPlotSnapshot
(@NotNull TownBlock townBlock) static @Nullable PlotBlockData
TownyRegenAPI.getPlotChunk
(TownBlock townBlock) Gets a Plot Chunk from the regeneration mapstatic PlotBlockData
TownyRegenAPI.getPlotChunkSnapshot
(TownBlock townBlock) Loads a Plot Chunk snapshot from the data sourcestatic String
TownyRegenAPI.getPlotKey
(TownBlock townBlock) static void
TownyRegenAPI.handleNewSnapshot
(@NotNull TownBlock townBlock) Creates a new snapshot and handles saving it -
Uses of TownBlock in com.palmergames.bukkit.towny.utils
Modifier and TypeMethodDescriptionstatic void
JailUtil.createJailPlot
(TownBlock townBlock, Town town, org.bukkit.Location location) static boolean
CombatUtil.isArenaPlot
(TownBlock attackerTB, TownBlock defenderTB) Return true if both TownBlocks are Arena plots.static boolean
ShopPlotUtil.isShopPlot
(TownBlock townblock) Use this to determine if aTownBlock
is a shop plot.static void
PermissionGUIUtil.openPermissionEditorGUI
(@NotNull Resident resident, @NotNull TownBlock townBlock, @NotNull org.bukkit.inventory.ItemStack clickedItem) static void
PermissionGUIUtil.openPermissionGUI
(@NotNull Resident resident, @NotNull TownBlock townBlock) static boolean
CombatUtil.preventPvP
(TownyWorld world, TownBlock townBlock) Is PvP disabled in this TownBlock?