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
ConstructorDescriptionPlayerCacheGetTownBlockStatusEvent
(org.bukkit.entity.Player player, WorldCoord worldCoord, PlayerCache.TownBlockStatus townBlockStatus) -
Method Summary
Modifier and TypeMethodDescriptionstatic org.bukkit.event.HandlerList
org.bukkit.event.HandlerList
org.bukkit.entity.Player
void
setTownBlockStatus
(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:
getHandlers
in classorg.bukkit.event.Event
-
getHandlerList
public static org.bukkit.event.HandlerList getHandlerList() -
getPlayer
public org.bukkit.entity.Player getPlayer()- Returns:
- player
Player
which is having a TownBlockStatus generated for their PlayerCache.
-
getWorldCoord
- Returns:
- worldCoord
WorldCoord
where this TownBlockStatus is being gotten for.
-
getTownBlockStatus
- Returns:
- the
PlayerCache.TownBlockStatus
which has been pre-determined by Towny.
-
setTownBlockStatus
- Parameters:
townBlockStatus
- thePlayerCache.TownBlockStatus
to use.
-