Class PlayerCacheGetTownBlockStatusEvent
java.lang.Object
org.bukkit.event.Event
com.palmergames.bukkit.towny.event.player.PlayerCacheGetTownBlockStatusEvent
public class PlayerCacheGetTownBlockStatusEvent
extends org.bukkit.event.Event
-
Nested Class Summary
Nested classes/interfaces inherited from class org.bukkit.event.Event
org.bukkit.event.Event.Result -
Constructor Summary
ConstructorsConstructorDescriptionPlayerCacheGetTownBlockStatusEvent(org.bukkit.entity.Player player, WorldCoord worldCoord, PlayerCache.TownBlockStatus townBlockStatus) -
Method Summary
Modifier and TypeMethodDescriptionstatic org.bukkit.event.HandlerListorg.bukkit.event.HandlerListorg.bukkit.entity.PlayervoidsetTownBlockStatus(PlayerCache.TownBlockStatus townBlockStatus) Methods inherited from class org.bukkit.event.Event
getEventName, isAsynchronous
-
Constructor Details
-
PlayerCacheGetTownBlockStatusEvent
public PlayerCacheGetTownBlockStatusEvent(org.bukkit.entity.Player player, WorldCoord worldCoord, PlayerCache.TownBlockStatus townBlockStatus)
-
-
Method Details
-
getHandlers
public org.bukkit.event.HandlerList getHandlers()- Specified by:
getHandlersin classorg.bukkit.event.Event
-
getHandlerList
public static org.bukkit.event.HandlerList getHandlerList() -
getPlayer
public org.bukkit.entity.Player getPlayer()- Returns:
- player
Playerwhich is having a TownBlockStatus generated for their PlayerCache.
-
getWorldCoord
- Returns:
- worldCoord
WorldCoordwhere this TownBlockStatus is being gotten for.
-
getTownBlockStatus
- Returns:
- the
PlayerCache.TownBlockStatuswhich has been pre-determined by Towny.
-
setTownBlockStatus
- Parameters:
townBlockStatus- thePlayerCache.TownBlockStatusto use.
-