Class SlimefunArmorTask
java.lang.Object
io.github.thebusybiscuit.slimefun4.implementation.tasks.armor.AbstractArmorTask
io.github.thebusybiscuit.slimefun4.implementation.tasks.armor.SlimefunArmorTask
- All Implemented Interfaces:
Runnable
The
SlimefunArmorTask
is responsible for handling SlimefunArmorPiece
- Author:
- TheBusyBiscuit, martinbrom, Semisol
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
onArmorPieceTick
(Player p, SlimefunArmorPiece sfArmorPiece, ItemStack armorPiece) Method to handle behavior for pieces of armor.protected 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
-
SlimefunArmorTask
public SlimefunArmorTask()
-
-
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
-
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
- ThePlayer
wearing the piece of armorsfArmorPiece
-SlimefunArmorPiece
Slimefun instance of the piece of armorarmorPiece
- The actualItemStack
of the armor piece
-