Class BungeeOreAnnouncerAdvancedAlertEvent
java.lang.Object
net.md_5.bungee.api.plugin.Event
com.alessiodp.oreannouncer.api.events.bungee.BungeeOreAnnouncerEvent
com.alessiodp.oreannouncer.api.events.bungee.common.BungeeOreAnnouncerAdvancedAlertEvent
- All Implemented Interfaces:
IAdvancedAlertEvent,OreAnnouncerEvent
public class BungeeOreAnnouncerAdvancedAlertEvent
extends BungeeOreAnnouncerEvent
implements IAdvancedAlertEvent
-
Constructor Summary
ConstructorsConstructorDescriptionBungeeOreAnnouncerAdvancedAlertEvent(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.bungee.BungeeOreAnnouncerEvent
getApi, setApiMethods inherited from class net.md_5.bungee.api.plugin.Event
postCallMethods 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
-
BungeeOreAnnouncerAdvancedAlertEvent
public BungeeOreAnnouncerAdvancedAlertEvent(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
-