Uses of Class
com.palmergames.bukkit.towny.object.TownBlock
Packages that use TownBlock
Package
Description
-
Uses of TownBlock in com.palmergames.bukkit.towny
Methods in com.palmergames.bukkit.towny that return TownBlockModifier and TypeMethodDescription@Nullable TownBlock
TownyAPI.getTownBlock
(WorldCoord wc) Get theTownBlock
at a specificWorldCoord
.@Nullable TownBlock
TownyAPI.getTownBlock
(@NotNull org.bukkit.entity.Player player) Get theTownBlock
in which aPlayer
is located.@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) Methods in com.palmergames.bukkit.towny that return types with arguments of type TownBlockModifier and TypeMethodDescriptionTownyAPI.getTownBlocks()
Get a Collection of all of the TownBlocks.TownyUniverse.getTownBlocks()
Get Universe-wide ConcurrentHashMap of WorldCoords and their TownBlocks.Methods in com.palmergames.bukkit.towny with parameters of type TownBlockModifier 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.Method parameters in com.palmergames.bukkit.towny with type arguments of type TownBlockModifier 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
Methods in com.palmergames.bukkit.towny.command with parameters of type TownBlockModifier and TypeMethodDescriptionvoid
PlotCommand.parseDistrictAdd
(String[] split, TownBlock townBlock, org.bukkit.entity.Player player, Town town) void
PlotCommand.parseDistrictDelete
(TownBlock townBlock, org.bukkit.entity.Player player, Town town) void
PlotCommand.parseDistrictRemove
(TownBlock townBlock, org.bukkit.entity.Player player, Town town) void
PlotCommand.parseDistrictRename
(String[] split, TownBlock townBlock, org.bukkit.entity.Player player) void
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, String[] split) 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
Methods in com.palmergames.bukkit.towny.db with parameters of type TownBlockModifier 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
Methods in com.palmergames.bukkit.towny.event that return TownBlockModifier and TypeMethodDescriptionPlotChangeTypeEvent.getTownBlock()
PlotClearEvent.getTownBlock()
PlotPreChangeTypeEvent.getTownBlock()
PlotPreClearEvent.getTownBlock()
TownBlockPermissionChangeEvent.getTownBlock()
TownBlockSettingsChangedEvent.getTownBlock()
TownClaimEvent.getTownBlock()
TownPreClaimEvent.getTownBlock()
The TownBlock which is being claimed.Constructors in com.palmergames.bukkit.towny.event with parameters of type TownBlockModifierConstructorDescriptionPlotChangeTypeEvent
(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
Fields in com.palmergames.bukkit.towny.event.actions declared as TownBlockMethods in com.palmergames.bukkit.towny.event.actions that return TownBlockModifier 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.Constructors in com.palmergames.bukkit.towny.event.actions with parameters of type TownBlockModifierConstructorDescriptionTownyActionEvent
(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
Fields in com.palmergames.bukkit.towny.event.damage declared as TownBlockMethods in com.palmergames.bukkit.towny.event.damage that return TownBlockModifier and TypeMethodDescription@NotNull TownBlock
TownBlockExplosionTestEvent.getTownBlock()
TownBlockPVPTestEvent.getTownBlock()
@Nullable TownBlock
TownyDamageEvent.getTownBlock()
TheTownBlock
this action occured in, or null if in the wilderness.Constructors in com.palmergames.bukkit.towny.event.damage with parameters of type TownBlockModifierConstructorDescriptionTownBlockExplosionTestEvent
(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
Methods in com.palmergames.bukkit.towny.event.plot that return TownBlockModifier and TypeMethodDescriptionPlayerChangePlotTypeEvent.getTownBlock()
@NotNull TownBlock
PlotNotForSaleEvent.getTownBlock()
@NotNull TownBlock
PlotSetForSaleEvent.getTownBlock()
Methods in com.palmergames.bukkit.towny.event.plot that return types with arguments of type TownBlockModifier and TypeMethodDescriptionPlotTrustAddEvent.getTownBlocks()
PlotTrustRemoveEvent.getTownBlocks()
Constructors in com.palmergames.bukkit.towny.event.plot with parameters of type TownBlockModifierConstructorDescriptionPlayerChangePlotTypeEvent
(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) Constructor parameters in com.palmergames.bukkit.towny.event.plot with type arguments of type TownBlockModifierConstructorDescriptionPlotTrustAddEvent
(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
Methods in com.palmergames.bukkit.towny.event.plot.changeowner that return TownBlockConstructors in com.palmergames.bukkit.towny.event.plot.changeowner with parameters of type TownBlockModifierConstructorDescriptionPlotChangeOwnerEvent
(@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.district
Methods in com.palmergames.bukkit.towny.event.plot.district that return TownBlockModifier and TypeMethodDescription@NotNull TownBlock
DistrictAddEvent.getTownBlock()
@NotNull TownBlock
DistrictCreatedEvent.getTownBlock()
Constructors in com.palmergames.bukkit.towny.event.plot.district with parameters of type TownBlockModifierConstructorDescriptionDistrictAddEvent
(District district, TownBlock townBlock, org.bukkit.entity.Player player) DistrictCreatedEvent
(District district, TownBlock townBlock, org.bukkit.entity.Player player) -
Uses of TownBlock in com.palmergames.bukkit.towny.event.plot.group
Methods in com.palmergames.bukkit.towny.event.plot.group that return TownBlockModifier and TypeMethodDescription@NotNull TownBlock
PlotGroupAddEvent.getTownBlock()
@NotNull TownBlock
PlotGroupCreatedEvent.getTownBlock()
Constructors in com.palmergames.bukkit.towny.event.plot.group with parameters of type TownBlockModifierConstructorDescriptionPlotGroupAddEvent
(PlotGroup group, TownBlock townBlock, org.bukkit.entity.Player player) PlotGroupCreatedEvent
(PlotGroup group, TownBlock townBlock, org.bukkit.entity.Player player) -
Uses of TownBlock in com.palmergames.bukkit.towny.event.plot.toggle
Methods in com.palmergames.bukkit.towny.event.plot.toggle that return TownBlockConstructors in com.palmergames.bukkit.towny.event.plot.toggle with parameters of type TownBlockModifierConstructorDescriptionPlotToggleEvent
(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
Methods in com.palmergames.bukkit.towny.event.resident that return TownBlock -
Uses of TownBlock in com.palmergames.bukkit.towny.event.statusscreen
Methods in com.palmergames.bukkit.towny.event.statusscreen that return TownBlockConstructors in com.palmergames.bukkit.towny.event.statusscreen with parameters of type TownBlockModifierConstructorDescriptionTownBlockStatusScreenEvent
(StatusScreen screen, TownBlock townBlock) -
Uses of TownBlock in com.palmergames.bukkit.towny.event.town
Methods in com.palmergames.bukkit.towny.event.town that return TownBlockModifier and TypeMethodDescriptionTownCedePlotEvent.getTownBlock()
TownPreSetHomeBlockEvent.getTownBlock()
TownPreUnclaimEvent.getTownBlock()
TownSetOutpostSpawnEvent.getTownBlock()
Constructors in com.palmergames.bukkit.towny.event.town with parameters of type TownBlockModifierConstructorDescriptionTownCedePlotEvent
(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
Methods in com.palmergames.bukkit.towny.listeners with parameters of type TownBlockModifier 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
Methods in com.palmergames.bukkit.towny.object that return TownBlockModifier 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.Methods in com.palmergames.bukkit.towny.object that return types with arguments of type TownBlockModifier and TypeMethodDescriptionTown.getTownBlockMap()
District.getTownBlocks()
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) Methods in com.palmergames.bukkit.towny.object with parameters of type TownBlockModifier and TypeMethodDescriptionvoid
District.addTownBlock
(TownBlock townBlock) void
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
District.hasTownBlock
(TownBlock townBlock) 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
District.removeTownBlock
(TownBlock townBlock) 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 townMethod parameters in com.palmergames.bukkit.towny.object with type arguments of type TownBlockModifier and TypeMethodDescriptionvoid
District.setTownblocks
(List<TownBlock> townBlocks) void
PlotGroup.setTownblocks
(List<TownBlock> townBlocks) void
Resident.setTownblocks
(Collection<TownBlock> townBlocks) -
Uses of TownBlock in com.palmergames.bukkit.towny.object.gui
Methods in com.palmergames.bukkit.towny.object.gui that return TownBlockConstructors in com.palmergames.bukkit.towny.object.gui with parameters of type TownBlock -
Uses of TownBlock in com.palmergames.bukkit.towny.object.jail
Methods in com.palmergames.bukkit.towny.object.jail that return TownBlockMethods in com.palmergames.bukkit.towny.object.jail with parameters of type TownBlockConstructors in com.palmergames.bukkit.towny.object.jail with parameters of type TownBlock -
Uses of TownBlock in com.palmergames.bukkit.towny.regen
Methods in com.palmergames.bukkit.towny.regen with parameters of type TownBlockModifier 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 itConstructors in com.palmergames.bukkit.towny.regen with parameters of type TownBlock -
Uses of TownBlock in com.palmergames.bukkit.towny.utils
Methods in com.palmergames.bukkit.towny.utils with parameters of type TownBlockModifier 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?