Class BungeeOreAnnouncerAlertEvent
java.lang.Object
net.md_5.bungee.api.plugin.Event
com.alessiodp.oreannouncer.api.events.bungee.BungeeOreAnnouncerEvent
com.alessiodp.oreannouncer.api.events.bungee.common.BungeeOreAnnouncerAlertEvent
- All Implemented Interfaces:
IAlertEvent,OreAnnouncerEvent
-
Constructor Summary
ConstructorsConstructorDescriptionBungeeOreAnnouncerAlertEvent(OAPlayer player, OABlock block, int number, BlockLocation location, int lightLevel, int heightLevel) -
Method Summary
Methods 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
-
BungeeOreAnnouncerAlertEvent
public BungeeOreAnnouncerAlertEvent(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
-