Class RadiationTask
java.lang.Object
io.github.thebusybiscuit.slimefun4.implementation.tasks.armor.AbstractArmorTask
io.github.thebusybiscuit.slimefun4.implementation.tasks.armor.RadiationTask
- All Implemented Interfaces:
Runnable
The
RadiationTask
handles radioactivity for
Radioactive
items.- Author:
- Semisol
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
addGracePeriod
(Player player) Adds the givenPlayer
's grace period to the collection.protected void
onPlayerTick
(Player p, PlayerProfile profile) Method to handle behavior for player's armor as a whole.Methods inherited from class io.github.thebusybiscuit.slimefun4.implementation.tasks.armor.AbstractArmorTask
onTick, run, schedule
-
Constructor Details
-
RadiationTask
public RadiationTask()
-
-
Method Details
-
onPlayerTick
Description copied from class:AbstractArmorTask
Method to handle behavior for player's armor as a whole. It is called once per player.- Specified by:
onPlayerTick
in classAbstractArmorTask
- Parameters:
p
- ThePlayer
wearing the armorprofile
- ThePlayer
'sPlayerProfile
-
addGracePeriod
Adds the givenPlayer
's grace period to the collection.- Parameters:
player
- The player to add the grace period to.
-