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 OABlock
getBlock()
Get the blockint
getHeightLevel()
Get the height levelint
getLightLevel()
Get the light levelBlockLocation
getLocation()
Get the location of the player when he found the blocksint
getNumberOfBlocks()
Get the number of blocks that have been found@NotNull OAPlayer
getPlayer()
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:IAlertEvent
Get the target player of the alert- Specified by:
getPlayer
in interfaceIAlertEvent
- Returns:
- Returns the
OAPlayer
-
getBlock
@NotNull public @NotNull OABlock getBlock()
Description copied from interface:IAlertEvent
Get the block- Specified by:
getBlock
in interfaceIAlertEvent
- Returns:
- Returns the
OABlock
-
getNumberOfBlocks
public int getNumberOfBlocks()
Description copied from interface:IAlertEvent
Get the number of blocks that have been found- Specified by:
getNumberOfBlocks
in interfaceIAlertEvent
- Returns:
- Returns the number of blocks
-
getLocation
public BlockLocation getLocation()
Description copied from interface:IAlertEvent
Get the location of the player when he found the blocks- Specified by:
getLocation
in interfaceIAlertEvent
- Returns:
- Returns the
BlockLocation
-
getLightLevel
public int getLightLevel()
Description copied from interface:IAlertEvent
Get the light level- Specified by:
getLightLevel
in interfaceIAlertEvent
- Returns:
- Returns the light level
-
getHeightLevel
public int getHeightLevel()
Description copied from interface:IAlertEvent
Get the height level- Specified by:
getHeightLevel
in interfaceIAlertEvent
- Returns:
- Returns the height level
-
-