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
ConstructorsConstructorDescriptionRadiationDamageEvent(Player player, int exposure) This constructs a newRadiationDamageEvent. -
Method Summary
Modifier and TypeMethodDescriptionintThis returns the amount of radiation exposure.static HandlerListThis returns thePlayerwho took radiation damage.booleanvoidsetCancelled(boolean cancelled) Methods inherited from class org.bukkit.event.Event
getEventName, isAsynchronous
-
Constructor Details
-
RadiationDamageEvent
This constructs a newRadiationDamageEvent.- Parameters:
player- ThePlayerwho took radiation damageexposure- The amount of radiation exposure
-
-
Method Details
-
getPlayer
This returns thePlayerwho took radiation damage.- Returns:
- The
Playerwho 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:
isCancelledin interfaceCancellable
-
setCancelled
public void setCancelled(boolean cancelled) - Specified by:
setCancelledin interfaceCancellable
-
getHandlerList
-
getHandlers
- Specified by:
getHandlersin classEvent
-