Class BukkitOreAnnouncerAdvancedAlertEvent
java.lang.Object
org.bukkit.event.Event
com.alessiodp.oreannouncer.api.events.bukkit.BukkitOreAnnouncerEvent
com.alessiodp.oreannouncer.api.events.bukkit.common.BukkitOreAnnouncerAdvancedAlertEvent
- All Implemented Interfaces:
IAdvancedAlertEvent,OreAnnouncerEvent
public class BukkitOreAnnouncerAdvancedAlertEvent
extends BukkitOreAnnouncerEvent
implements IAdvancedAlertEvent
-
Nested Class Summary
Nested classes/interfaces inherited from class org.bukkit.event.Event
org.bukkit.event.Event.Result -
Constructor Summary
ConstructorsConstructorDescriptionBukkitOreAnnouncerAdvancedAlertEvent(OAPlayer player, OABlock block, int total, long elapsedTime, BlockLocation location, int lightLevel, int heightLevel) -
Method Summary
Modifier and TypeMethodDescription@NotNull OABlockgetBlock()Get the blocklongGet the elapsed time of this alertintGet the height levelintGet the light levelGet the location of the player when he found the blocks@NotNull OAPlayerGet the target player of the alertintGet the total of blocks found by the start of elapsed timeMethods inherited from class com.alessiodp.oreannouncer.api.events.bukkit.BukkitOreAnnouncerEvent
getApi, getHandlerList, getHandlers, setApiMethods inherited from class org.bukkit.event.Event
getEventName, isAsynchronousMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.alessiodp.oreannouncer.api.events.OreAnnouncerEvent
getApi, setApi
-
Constructor Details
-
BukkitOreAnnouncerAdvancedAlertEvent
public BukkitOreAnnouncerAdvancedAlertEvent(OAPlayer player, OABlock block, int total, long elapsedTime, BlockLocation location, int lightLevel, int heightLevel)
-
-
Method Details
-
getPlayer
Description copied from interface:IAdvancedAlertEventGet the target player of the alert- Specified by:
getPlayerin interfaceIAdvancedAlertEvent- Returns:
- Returns the
OAPlayer
-
getBlock
Description copied from interface:IAdvancedAlertEventGet the block- Specified by:
getBlockin interfaceIAdvancedAlertEvent- Returns:
- Returns the
OABlock
-
getTotalBlocks
public int getTotalBlocks()Description copied from interface:IAdvancedAlertEventGet the total of blocks found by the start of elapsed time- Specified by:
getTotalBlocksin interfaceIAdvancedAlertEvent- Returns:
- Returns the total of blocks
-
getElapsedTime
public long getElapsedTime()Description copied from interface:IAdvancedAlertEventGet the elapsed time of this alert- Specified by:
getElapsedTimein interfaceIAdvancedAlertEvent- Returns:
- The elapsed time
-
getLocation
Description copied from interface:IAdvancedAlertEventGet the location of the player when he found the blocks- Specified by:
getLocationin interfaceIAdvancedAlertEvent- Returns:
- Returns the
BlockLocation
-
getLightLevel
public int getLightLevel()Description copied from interface:IAdvancedAlertEventGet the light level- Specified by:
getLightLevelin interfaceIAdvancedAlertEvent- Returns:
- Returns the light level
-
getHeightLevel
public int getHeightLevel()Description copied from interface:IAdvancedAlertEventGet the height level- Specified by:
getHeightLevelin interfaceIAdvancedAlertEvent- Returns:
- Returns the height level
-