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
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
onPlayerTick
(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: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
-