Class RadiationDamageEvent

java.lang.Object
org.bukkit.event.Event
io.github.thebusybiscuit.slimefun4.api.events.RadiationDamageEvent
All Implemented Interfaces:
Cancellable

public class RadiationDamageEvent extends Event implements Cancellable
The RadiationDamageEvent is called when a player takes radiation damage.
Author:
HoosierTransfer
  • Constructor Details

    • RadiationDamageEvent

      public RadiationDamageEvent(@Nonnull Player player, int exposure)
      This constructs a new RadiationDamageEvent.
      Parameters:
      player - The Player who took radiation damage
      exposure - The amount of radiation exposure
  • Method Details

    • getPlayer

      @Nonnull public Player getPlayer()
      This returns the Player who took radiation damage.
      Returns:
      The Player who took radiation damage
    • getExposure

      public int getExposure()
      This returns the amount of radiation exposure.
      Returns:
      The amount of radiation exposure
    • isCancelled

      public boolean isCancelled()
      Specified by:
      isCancelled in interface Cancellable
    • setCancelled

      public void setCancelled(boolean cancelled)
      Specified by:
      setCancelled in interface Cancellable
    • getHandlerList

      @Nonnull public static HandlerList getHandlerList()
    • getHandlers

      @Nonnull public HandlerList getHandlers()
      Specified by:
      getHandlers in class Event