Class RadiationDamageEvent
java.lang.Object
org.bukkit.event.Event
io.github.thebusybiscuit.slimefun4.api.events.RadiationDamageEvent
- All Implemented Interfaces:
Cancellable
The
RadiationDamageEvent
is called when a player takes radiation damage.- Author:
- HoosierTransfer
-
Nested Class Summary
Nested classes/interfaces inherited from class org.bukkit.event.Event
Event.Result
-
Constructor Summary
ConstructorDescriptionRadiationDamageEvent
(Player player, int exposure) This constructs a newRadiationDamageEvent
. -
Method Summary
Modifier and TypeMethodDescriptionint
This returns the amount of radiation exposure.static HandlerList
This returns thePlayer
who took radiation damage.boolean
void
setCancelled
(boolean cancelled) Methods inherited from class org.bukkit.event.Event
getEventName, isAsynchronous
-
Constructor Details
-
RadiationDamageEvent
This constructs a newRadiationDamageEvent
.- Parameters:
player
- ThePlayer
who took radiation damageexposure
- The amount of radiation exposure
-
-
Method Details
-
getPlayer
This returns thePlayer
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 interfaceCancellable
-
setCancelled
public void setCancelled(boolean cancelled) - Specified by:
setCancelled
in interfaceCancellable
-
getHandlerList
-
getHandlers
- Specified by:
getHandlers
in classEvent
-