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

public class BungeeOreAnnouncerAlertEvent extends BungeeOreAnnouncerEvent implements IAlertEvent
  • Constructor Details

    • BungeeOreAnnouncerAlertEvent

      public BungeeOreAnnouncerAlertEvent(OAPlayer player, OABlock block, int number, BlockLocation location, int lightLevel, int heightLevel)
  • Method Details

    • getPlayer

      @NotNull public @NotNull OAPlayer getPlayer()
      Description copied from interface: IAlertEvent
      Get the target player of the alert
      Specified by:
      getPlayer in interface IAlertEvent
      Returns:
      Returns the OAPlayer
    • getBlock

      @NotNull public @NotNull OABlock getBlock()
      Description copied from interface: IAlertEvent
      Get the block
      Specified by:
      getBlock in interface IAlertEvent
      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 interface IAlertEvent
      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 interface IAlertEvent
      Returns:
      Returns the BlockLocation
    • getLightLevel

      public int getLightLevel()
      Description copied from interface: IAlertEvent
      Get the light level
      Specified by:
      getLightLevel in interface IAlertEvent
      Returns:
      Returns the light level
    • getHeightLevel

      public int getHeightLevel()
      Description copied from interface: IAlertEvent
      Get the height level
      Specified by:
      getHeightLevel in interface IAlertEvent
      Returns:
      Returns the height level