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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidaddGracePeriod(Player player) Adds the givenPlayer's grace period to the collection.protected voidonPlayerTick(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:AbstractArmorTaskMethod to handle behavior for player's armor as a whole. It is called once per player.- Specified by:
onPlayerTickin classAbstractArmorTask- Parameters:
p- ThePlayerwearing the armorprofile- ThePlayer'sPlayerProfile
-
addGracePeriod
Adds the givenPlayer's grace period to the collection.- Parameters:
player- The player to add the grace period to.
-