Class EnchantmentTickTask
java.lang.Object
io.artificial.enchantments.internal.EnchantmentTickTask
- All Implemented Interfaces:
Runnable
Scheduled task that scans all online players' held items and armor,
dispatching
EffectDispatchSpine.DispatchEventType.HELD_TICK
and EffectDispatchSpine.DispatchEventType.ARMOR_TICK effects.
Runs once per second (every 20 ticks).
-
Constructor Summary
ConstructorsConstructorDescriptionEnchantmentTickTask(@NotNull org.bukkit.plugin.Plugin plugin, @NotNull FoliaScheduler scheduler, @NotNull EffectDispatchSpine spine, @NotNull ItemEnchantmentService itemService) Creates a new tick task for scanning player equipment. -
Method Summary
-
Constructor Details
-
EnchantmentTickTask
public EnchantmentTickTask(@NotNull @NotNull org.bukkit.plugin.Plugin plugin, @NotNull @NotNull FoliaScheduler scheduler, @NotNull @NotNull EffectDispatchSpine spine, @NotNull @NotNull ItemEnchantmentService itemService) Creates a new tick task for scanning player equipment.- Parameters:
plugin- the plugin instance for schedulingscheduler- scheduler abstraction used for the repeating scan taskspine- the effect dispatch spine for triggering enchantment effectsitemService- the item service for querying enchantments on items- Since:
- 0.1.0
-
-
Method Details