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
public class BukkitOreAnnouncerAlertEvent extends BukkitOreAnnouncerEvent implements IAlertEvent
-
-
Constructor Summary
Constructors Constructor Description BukkitOreAnnouncerAlertEvent(OAPlayer player, OABlock block, int number, BlockLocation location, int lightLevel, int heightLevel)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description @NotNull OABlockgetBlock()Get the blockintgetHeightLevel()Get the height levelintgetLightLevel()Get the light levelBlockLocationgetLocation()Get the location of the player when he found the blocksintgetNumberOfBlocks()Get the number of blocks that have been found@NotNull OAPlayergetPlayer()Get the target player of the alert-
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
-
BukkitOreAnnouncerAlertEvent
public BukkitOreAnnouncerAlertEvent(OAPlayer player, OABlock block, int number, BlockLocation location, int lightLevel, int heightLevel)
-
-
Method Detail
-
getPlayer
@NotNull public @NotNull OAPlayer getPlayer()
Description copied from interface:IAlertEventGet the target player of the alert- Specified by:
getPlayerin interfaceIAlertEvent- Returns:
- Returns the
OAPlayer
-
getBlock
@NotNull public @NotNull OABlock 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
public BlockLocation 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
-
-