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 OABlock
getBlock()
Get the blocklong
getElapsedTime()
Get the elapsed time of this alertint
getHeightLevel()
Get the height levelint
getLightLevel()
Get the light levelBlockLocation
getLocation()
Get the location of the player when he found the blocks@NotNull OAPlayer
getPlayer()
Get the target player of the alertint
getTotalBlocks()
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:IAdvancedAlertEvent
Get the target player of the alert- Specified by:
getPlayer
in interfaceIAdvancedAlertEvent
- Returns:
- Returns the
OAPlayer
-
getBlock
@NotNull public @NotNull OABlock getBlock()
Description copied from interface:IAdvancedAlertEvent
Get the block- Specified by:
getBlock
in interfaceIAdvancedAlertEvent
- Returns:
- Returns the
OABlock
-
getTotalBlocks
public int getTotalBlocks()
Description copied from interface:IAdvancedAlertEvent
Get the total of blocks found by the start of elapsed time- Specified by:
getTotalBlocks
in interfaceIAdvancedAlertEvent
- Returns:
- Returns the total of blocks
-
getElapsedTime
public long getElapsedTime()
Description copied from interface:IAdvancedAlertEvent
Get the elapsed time of this alert- Specified by:
getElapsedTime
in interfaceIAdvancedAlertEvent
- Returns:
- The elapsed time
-
getLocation
public BlockLocation getLocation()
Description copied from interface:IAdvancedAlertEvent
Get the location of the player when he found the blocks- Specified by:
getLocation
in interfaceIAdvancedAlertEvent
- Returns:
- Returns the
BlockLocation
-
getLightLevel
public int getLightLevel()
Description copied from interface:IAdvancedAlertEvent
Get the light level- Specified by:
getLightLevel
in interfaceIAdvancedAlertEvent
- Returns:
- Returns the light level
-
getHeightLevel
public int getHeightLevel()
Description copied from interface:IAdvancedAlertEvent
Get the height level- Specified by:
getHeightLevel
in interfaceIAdvancedAlertEvent
- Returns:
- Returns the height level
-
-