Package io.artificial.enchantments.internal
package io.artificial.enchantments.internal
-
ClassDescriptionImplementation of
ArtificialEnchantmentsAPI.Helper for managing attribute modifiers on entities and items.FoliaLib-backed implementation ofFoliaScheduler.Factory for creating EffectContext implementations based on Bukkit events.Pure functions for damage calculation and modification.Central dispatch spine for all enchantment effects.Enumeration of all dispatchable event types.Context wrapper for executing enchantment effect handlers with exception isolation.Exception thrown when strict mode is enabled and an effect handler fails.Execution mode for handling effect handler failures.Internal implementation of the EnchantmentDefinition.Builder interface.Immutable implementation of EnchantmentDefinition.Bukkit event listener that bridges gameplay events into theEffectDispatchSpine.Implementation ofEnchantmentEventBus.Internal registry manager for tracking enchantment definitions.Scheduled task that scans all online players' held items and armor, dispatchingEffectDispatchSpine.DispatchEventType.HELD_TICKandEffectDispatchSpine.DispatchEventType.ARMOR_TICKeffects.Dispatches effects through the event bus to registered listeners.Thread-safe scheduler abstraction for Folia and non-Folia servers.Represents a scheduled task that can be cancelled.Service for mutating item enchantment state.Native-first implementation of ItemStorage.Handles auxiliary metadata storage in NBT for items.Paper 1.21+ PluginBootstrap implementation for registering custom enchantments via the native registry system during the bootstrap phase.Converts library EnchantmentDefinition instances to Paper's native EnchantmentRegistryEntry.Builder format for registration during bootstrap.Bridge between the library's enchantment registry and Paper's native enchantment registry.Cleans up event bus subscriptions when dependent plugins disable.Synthetic event used to carry tick-scan data into the dispatch spine.Dispatches effects to typed callback handlers (EnchantmentEffectHandler implementations).