Class RainbowArmorTask
java.lang.Object
io.github.thebusybiscuit.slimefun4.implementation.tasks.armor.AbstractArmorTask
io.github.thebusybiscuit.slimefun4.implementation.tasks.armor.RainbowArmorTask
- All Implemented Interfaces:
Runnable
The
RainbowArmorTask
is responsible for handling the change in color of any Rainbow Armor piece.- Author:
- martinbrom
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
onPlayerTick
(Player p, PlayerProfile profile) Method to handle behavior for player's armor as a whole.protected void
onTick()
Method to handle things related to the task itself.Methods inherited from class io.github.thebusybiscuit.slimefun4.implementation.tasks.armor.AbstractArmorTask
run, schedule
-
Constructor Details
-
RainbowArmorTask
public RainbowArmorTask()
-
-
Method Details
-
onTick
protected void onTick()Description copied from class:AbstractArmorTask
Method to handle things related to the task itself. Called once per tick (per schedule interval).- Overrides:
onTick
in classAbstractArmorTask
-
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
-