java.lang.Object
io.github.thebusybiscuit.slimefun4.implementation.tasks.ArmorTask
All Implemented Interfaces:
Runnable

public class ArmorTask extends Object implements Runnable
The ArmorTask is responsible for handling PotionEffects for Radioactive items or any SlimefunArmorPiece. It also handles the prevention of radiation through a Hazmat Suit
Author:
TheBusyBiscuit
  • Constructor Details

    • ArmorTask

      public ArmorTask(boolean radioactiveFire)
      This creates a new ArmorTask.
      Parameters:
      radioactiveFire - Whether radiation also causes a Player to burn
  • Method Details

    • getRadiationEffects

      @Nonnull public Set<PotionEffect> getRadiationEffects()
      This returns a Set of PotionEffects which get applied to a Player when they are exposed to deadly radiation.
      Returns:
      The Set of PotionEffects applied upon radioactive contact
    • run

      public void run()
      Specified by:
      run in interface Runnable