java.lang.Object
io.github.thebusybiscuit.slimefun4.implementation.tasks.armor.AbstractArmorTask
io.github.thebusybiscuit.slimefun4.implementation.tasks.armor.SlimefunArmorTask
All Implemented Interfaces:
Runnable

public class SlimefunArmorTask extends AbstractArmorTask
The SlimefunArmorTask is responsible for handling SlimefunArmorPiece
Author:
TheBusyBiscuit, martinbrom, Semisol
  • Constructor Details

    • SlimefunArmorTask

      public SlimefunArmorTask()
  • Method Details

    • onPlayerTick

      @ParametersAreNonnullByDefault protected void onPlayerTick(Player p, PlayerProfile profile)
      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 class AbstractArmorTask
      Parameters:
      p - The Player wearing the armor
      profile - The Player's PlayerProfile
    • onArmorPieceTick

      @ParametersAreNonnullByDefault protected void onArmorPieceTick(Player p, SlimefunArmorPiece sfArmorPiece, ItemStack armorPiece)
      Method to handle behavior for pieces of armor. It is called per-player and per piece of armor.
      Parameters:
      p - The Player wearing the piece of armor
      sfArmorPiece - SlimefunArmorPiece Slimefun instance of the piece of armor
      armorPiece - The actual ItemStack of the armor piece