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
-
-
Constructor Summary
Constructors Constructor Description BukkitOreAnnouncerAdvancedAlertEvent(OAPlayer player, OABlock block, int total, long elapsedTime, BlockLocation location, int lightLevel, int heightLevel)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description @NotNull OABlockgetBlock()Get the blocklonggetElapsedTime()Get the elapsed time of this alertintgetHeightLevel()Get the height levelintgetLightLevel()Get the light levelBlockLocationgetLocation()Get the location of the player when he found the blocks@NotNull OAPlayergetPlayer()Get the target player of the alertintgetTotalBlocks()Get the total of blocks found by the start of elapsed time-
Methods inherited from class com.alessiodp.oreannouncer.api.events.bukkit.BukkitOreAnnouncerEvent
getApi, getHandlerList, getHandlers, setApi
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.alessiodp.oreannouncer.api.events.OreAnnouncerEvent
getApi, setApi
-
-
-
-
Constructor Detail
-
BukkitOreAnnouncerAdvancedAlertEvent
public BukkitOreAnnouncerAdvancedAlertEvent(OAPlayer player, OABlock block, int total, long elapsedTime, BlockLocation location, int lightLevel, int heightLevel)
-
-
Method Detail
-
getPlayer
@NotNull public @NotNull OAPlayer getPlayer()
Description copied from interface:IAdvancedAlertEventGet the target player of the alert- Specified by:
getPlayerin interfaceIAdvancedAlertEvent- Returns:
- Returns the
OAPlayer
-
getBlock
@NotNull public @NotNull OABlock 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
public BlockLocation 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
-
-