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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidonArmorPieceTick(Player p, SlimefunArmorPiece sfArmorPiece, ItemStack armorPiece) Method to handle behavior for pieces of armor.protected 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
-
SlimefunArmorTask
public SlimefunArmorTask()
-
-
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
-
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- ThePlayerwearing the piece of armorsfArmorPiece-SlimefunArmorPieceSlimefun instance of the piece of armorarmorPiece- The actualItemStackof the armor piece
-