Class SolarHelmetTask
java.lang.Object
io.github.thebusybiscuit.slimefun4.implementation.tasks.armor.AbstractArmorTask
io.github.thebusybiscuit.slimefun4.implementation.tasks.armor.SolarHelmetTask
- All Implemented Interfaces:
Runnable
The
SolarHelmetTask is responsible for handling SolarHelmet for generating power
and adding checks for if it has sunlight and if the player is actually wearing it.- Author:
- TheBusyBiscuit, martinbrom, Semisol
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected 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
-
SolarHelmetTask
public SolarHelmetTask()
-
-
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
-