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(org.bukkit.entity.Player player) Adds the givenPlayer's grace period to the collection.protected voidonPlayerTick(org.bukkit.entity.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
@ParametersAreNonnullByDefault protected void onPlayerTick(org.bukkit.entity.Player p, PlayerProfile profile) 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
public static void addGracePeriod(@Nonnull org.bukkit.entity.Player player) Adds the givenPlayer's grace period to the collection.- Parameters:
player- The player to add the grace period to.
-