Class BukkitOreAnnouncerAlertEvent
java.lang.Object
org.bukkit.event.Event
com.alessiodp.oreannouncer.api.events.bukkit.BukkitOreAnnouncerEvent
com.alessiodp.oreannouncer.api.events.bukkit.common.BukkitOreAnnouncerAlertEvent
- All Implemented Interfaces:
IAlertEvent,OreAnnouncerEvent
-
Nested Class Summary
Nested classes/interfaces inherited from class org.bukkit.event.Event
org.bukkit.event.Event.Result -
Constructor Summary
ConstructorsConstructorDescriptionBukkitOreAnnouncerAlertEvent(OAPlayer player, OABlock block, int number, BlockLocation location, int lightLevel, int heightLevel) -
Method Summary
Methods 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
-
BukkitOreAnnouncerAlertEvent
public BukkitOreAnnouncerAlertEvent(OAPlayer player, OABlock block, int number, BlockLocation location, int lightLevel, int heightLevel)
-
-
Method Details
-
getPlayer
Description copied from interface:IAlertEventGet the target player of the alert- Specified by:
getPlayerin interfaceIAlertEvent- Returns:
- Returns the
OAPlayer
-
getBlock
Description copied from interface:IAlertEventGet the block- Specified by:
getBlockin interfaceIAlertEvent- Returns:
- Returns the
OABlock
-
getNumberOfBlocks
public int getNumberOfBlocks()Description copied from interface:IAlertEventGet the number of blocks that have been found- Specified by:
getNumberOfBlocksin interfaceIAlertEvent- Returns:
- Returns the number of blocks
-
getLocation
Description copied from interface:IAlertEventGet the location of the player when he found the blocks- Specified by:
getLocationin interfaceIAlertEvent- Returns:
- Returns the
BlockLocation
-
getLightLevel
public int getLightLevel()Description copied from interface:IAlertEventGet the light level- Specified by:
getLightLevelin interfaceIAlertEvent- Returns:
- Returns the light level
-
getHeightLevel
public int getHeightLevel()Description copied from interface:IAlertEventGet the height level- Specified by:
getHeightLevelin interfaceIAlertEvent- Returns:
- Returns the height level
-