Index
All Classes and Interfaces|All Packages|Serialized Form
A
- addDamage(double) - Method in interface io.artificial.enchantments.api.context.CombatContext
-
Adds an amount to the current damage.
- addDrop(ItemStack) - Method in interface io.artificial.enchantments.api.context.ToolContext
-
Adds an item to the drops.
- addDrop(ItemStack) - Method in interface io.artificial.enchantments.api.loot.LootContext
-
Adds a drop to the list.
- addItemModifier(ItemStack, Attribute, UUID, double, AttributeModifier.Operation, EquipmentSlot) - Static method in class io.artificial.enchantments.internal.AttributeModifierHelper
-
Adds an attribute modifier to an item stack.
- addModifier(LivingEntity, Attribute, UUID, double, AttributeModifier.Operation) - Static method in class io.artificial.enchantments.internal.AttributeModifierHelper
-
Adds a temporary attribute modifier to a living entity.
- allowMultiple(boolean) - Method in interface io.artificial.enchantments.api.enchanttable.EnchantTableConfiguration.Builder
-
Sets whether multiple offers are allowed.
- allowMultiple(boolean) - Method in class io.artificial.enchantments.internal.enchanttable.EnchantTableConfigurationBuilder
-
Sets whether multiple offers are allowed.
- allowsMultipleOffers() - Method in interface io.artificial.enchantments.api.enchanttable.EnchantTableConfiguration
-
Checks if this enchantment can appear multiple times in the same table.
- allowsMultipleOffers() - Method in class io.artificial.enchantments.internal.enchanttable.EnchantTableConfigurationImpl
-
Checks if this enchantment can appear multiple times in the same table.
- AnvilCombinationLogic - Class in io.artificial.enchantments.internal.anvil
-
Logic for combining enchantments in an anvil.
- AnvilCombinationLogic(ItemStorage) - Constructor for class io.artificial.enchantments.internal.anvil.AnvilCombinationLogic
-
Creates a new anvil combination logic instance.
- AnvilCombinationLogic.CombinationResult - Record Class in io.artificial.enchantments.internal.anvil
-
Result of an anvil combination operation.
- AnvilCostCalculator - Class in io.artificial.enchantments.internal.anvil
-
Calculates anvil costs for enchantment operations.
- AnvilListener - Class in io.artificial.enchantments.internal.anvil
-
Listener for anvil events to enable custom enchantment support.
- AnvilListener(Plugin, ItemStorage, EnchantmentRegistryManager) - Constructor for class io.artificial.enchantments.internal.anvil.AnvilListener
-
Creates a new AnvilListener.
- applicable(Set<Material>) - Method in interface io.artificial.enchantments.api.EnchantmentDefinition.Builder
-
Sets applicable materials from a set.
- applicable(Set<Material>) - Method in class io.artificial.enchantments.internal.EnchantmentDefinitionBuilder
- applicable(Material...) - Method in interface io.artificial.enchantments.api.EnchantmentDefinition.Builder
-
Sets applicable materials from a varargs list.
- applicable(Material...) - Method in class io.artificial.enchantments.internal.EnchantmentDefinitionBuilder
- appliedEnchantments() - Method in record class io.artificial.enchantments.internal.anvil.AnvilCombinationLogic.CombinationResult
-
Returns the value of the
appliedEnchantmentsrecord component. - applyAdditiveBonus(double, double, double, double) - Static method in class io.artificial.enchantments.internal.DamageModifierHelper
-
Applies additive damage bonus with optional caps.
- applyArmorBonus(LivingEntity, String, double) - Static method in class io.artificial.enchantments.internal.AttributeModifierHelper
-
Applies armor bonus modifier to an entity.
- applyAttackSpeedBonus(LivingEntity, String, double) - Static method in class io.artificial.enchantments.internal.AttributeModifierHelper
-
Applies attack speed modifier to an entity.
- applyDamageBonus(LivingEntity, String, double) - Static method in class io.artificial.enchantments.internal.AttributeModifierHelper
-
Applies attack damage modifier to an entity.
- applyEnchantment(ItemStack, EnchantmentDefinition, int) - Method in interface io.artificial.enchantments.api.ArtificialEnchantmentsAPI
-
Applies an enchantment to an item at the specified level.
- applyEnchantment(ItemStack, EnchantmentDefinition, int) - Method in interface io.artificial.enchantments.api.ItemStorage
-
Applies an enchantment to an item at the specified level.
- applyEnchantment(ItemStack, EnchantmentDefinition, int) - Method in class io.artificial.enchantments.internal.ArtificialEnchantmentsAPIImpl
- applyEnchantment(ItemStack, EnchantmentDefinition, int) - Method in class io.artificial.enchantments.internal.ItemEnchantmentService
-
Applies an enchantment to an item at the specified level.
- applyEnchantment(ItemStack, EnchantmentDefinition, int) - Method in class io.artificial.enchantments.internal.NativeFirstItemStorage
- applyEnchantment(ItemStack, NamespacedKey, int) - Method in interface io.artificial.enchantments.api.ArtificialEnchantmentsAPI
-
Applies an enchantment by its registry key.
- applyEnchantment(ItemStack, NamespacedKey, int) - Method in interface io.artificial.enchantments.api.ItemStorage
-
Applies an enchantment by its registry key.
- applyEnchantment(ItemStack, NamespacedKey, int) - Method in class io.artificial.enchantments.internal.ArtificialEnchantmentsAPIImpl
- applyEnchantment(ItemStack, NamespacedKey, int) - Method in class io.artificial.enchantments.internal.ItemEnchantmentService
-
Applies an enchantment by its registry key.
- applyEnchantment(ItemStack, NamespacedKey, int) - Method in class io.artificial.enchantments.internal.NativeFirstItemStorage
- applyMovementSpeedBonus(LivingEntity, String, double) - Static method in class io.artificial.enchantments.internal.AttributeModifierHelper
-
Applies movement speed modifier to an entity.
- applyMultiplicativeBonus(double, double, double, double) - Static method in class io.artificial.enchantments.internal.DamageModifierHelper
-
Applies multiplicative damage bonus with optional caps.
- applyPriorWork(ItemStack, int) - Method in class io.artificial.enchantments.internal.anvil.AnvilListener
-
Applies prior work penalty to an item after a successful anvil operation.
- ARMOR_TICK - Enum constant in enum class io.artificial.enchantments.internal.EffectDispatchSpine.DispatchEventType
-
Armor tick.
- armorModifierUuid(String) - Static method in class io.artificial.enchantments.internal.AttributeModifierHelper
-
Creates a modifier UUID for armor modifiers.
- ArtificialEnchantmentsAPI - Interface in io.artificial.enchantments.api
-
The primary entry point for the Artificial Enchantments library.
- ArtificialEnchantmentsAPIImpl - Class in io.artificial.enchantments.internal
-
Implementation of
ArtificialEnchantmentsAPI. - ArtificialEnchantmentsPlugin - Class in io.artificial.enchantments
-
Main plugin class for Artificial Enchantments library.
- ArtificialEnchantmentsPlugin() - Constructor for class io.artificial.enchantments.ArtificialEnchantmentsPlugin
-
Creates a new plugin instance.
- ATTACK - Enum constant in enum class io.artificial.enchantments.api.event.CombatEvent.CombatType
-
Offensive attack.
- attackSpeedModifierUuid(String) - Static method in class io.artificial.enchantments.internal.AttributeModifierHelper
-
Creates a modifier UUID for attack speed modifiers.
- AttributeModifierHelper - Class in io.artificial.enchantments.internal
-
Helper for managing attribute modifiers on entities and items.
B
- BITE - Enum constant in enum class io.artificial.enchantments.api.event.FishingEvent.State
-
Fish biting.
- BLOCK_BREAK - Enum constant in enum class io.artificial.enchantments.api.event.ToolEvent.ToolType
-
Block break action.
- BLOCK_BREAK - Enum constant in enum class io.artificial.enchantments.internal.EffectDispatchSpine.DispatchEventType
-
Block broken by player.
- BLOCK_BREAK_PRE - Enum constant in enum class io.artificial.enchantments.api.event.ToolEvent.ToolType
-
Pre-block break action (before drops).
- BLOCK_BREAK_PRE - Enum constant in enum class io.artificial.enchantments.internal.EffectDispatchSpine.DispatchEventType
-
Pre-break check for block breaking.
- BLOCK_INTERACT - Enum constant in enum class io.artificial.enchantments.api.event.ToolEvent.ToolType
-
Block interaction action.
- BLOCK_INTERACT - Enum constant in enum class io.artificial.enchantments.internal.EffectDispatchSpine.DispatchEventType
-
Player interacts with a block.
- BLOCK_PLACE - Enum constant in enum class io.artificial.enchantments.api.event.ToolEvent.ToolType
-
Block place action.
- BLOCK_PLACE - Enum constant in enum class io.artificial.enchantments.internal.EffectDispatchSpine.DispatchEventType
-
Block placed by player.
- BlockBreakLootHandler - Class in io.artificial.enchantments.internal.loot
-
Handles block-break loot modification for enchanted tools.
- BlockBreakLootHandler(LootModifierRegistry, ItemEnchantmentService) - Constructor for class io.artificial.enchantments.internal.loot.BlockBreakLootHandler
-
Creates a new handler with the required dependencies.
- BlockBreakLootListener - Class in io.artificial.enchantments.internal.loot
-
Listener for block break events to apply loot modifiers.
- BlockBreakLootListener(Plugin, BlockBreakLootHandler) - Constructor for class io.artificial.enchantments.internal.loot.BlockBreakLootListener
-
Creates a new listener with the required dependencies.
- BookFactory - Class in io.artificial.enchantments.internal.book
-
Factory for creating
EnchantedBookinstances. - bootstrap(BootstrapContext) - Method in class io.artificial.enchantments.internal.PaperEnchantmentBootstrap
- BOW_SHOOT - Enum constant in enum class io.artificial.enchantments.internal.EffectDispatchSpine.DispatchEventType
-
Bow or crossbow shot.
- build() - Method in interface io.artificial.enchantments.api.book.EnchantedBook.Builder
-
Builds and returns the enchanted book.
- build() - Method in interface io.artificial.enchantments.api.EnchantmentDefinition.Builder
-
Builds and returns the enchantment definition.
- build() - Method in interface io.artificial.enchantments.api.enchanttable.EnchantTableConfiguration.Builder
-
Builds and returns the table configuration.
- build() - Method in class io.artificial.enchantments.internal.book.EnchantedBookBuilderImpl
-
Builds and returns the enchanted book.
- build() - Method in class io.artificial.enchantments.internal.EnchantmentDefinitionBuilder
- build() - Method in class io.artificial.enchantments.internal.enchanttable.EnchantTableConfigurationBuilder
-
Builds and returns the table configuration.
- build() - Method in class io.artificial.enchantments.optional.packetevents.ItemVisualProcessor.PreferencesBuilder
-
Builds and returns the configured preferences.
- builder() - Method in interface io.artificial.enchantments.api.book.EnchantedBook
-
Gets a builder for creating enchanted books.
- builder() - Static method in interface io.artificial.enchantments.api.EnchantmentDefinition
-
Creates a new builder for constructing enchantment definitions.
- builder() - Static method in interface io.artificial.enchantments.api.enchanttable.EnchantTableConfiguration
-
Creates a builder for constructing table configurations.
- builder() - Method in class io.artificial.enchantments.internal.book.EnchantedBookImpl
-
Gets a builder for creating enchanted books.
- BukkitFoliaScheduler - Class in io.artificial.enchantments.internal
-
FoliaLib-backed implementation of
FoliaScheduler. - BukkitFoliaScheduler(Plugin) - Constructor for class io.artificial.enchantments.internal.BukkitFoliaScheduler
-
Creates a new Bukkit folia scheduler.
C
- calculate(int) - Method in class io.artificial.enchantments.api.scaling.ConstantScaling
- calculate(int) - Method in class io.artificial.enchantments.api.scaling.DiminishingScaling
- calculate(int) - Method in class io.artificial.enchantments.api.scaling.ExponentialScaling
- calculate(int) - Method in interface io.artificial.enchantments.api.scaling.LevelScaling
-
Calculates the scaled value for a given enchantment level.
- calculate(int) - Method in class io.artificial.enchantments.api.scaling.LinearScaling
- calculate(int) - Method in class io.artificial.enchantments.api.scaling.SteppedScaling
- calculateAbsorption(double, double) - Static method in class io.artificial.enchantments.internal.DamageModifierHelper
-
Calculates damage absorption (like absorption hearts).
- calculateAdditiveDamage(double, LevelScaling, int) - Static method in class io.artificial.enchantments.internal.DamageModifierHelper
-
Calculates additive bonus damage using a scaling formula.
- calculateArmorPenetration(double, double) - Static method in class io.artificial.enchantments.internal.DamageModifierHelper
-
Calculates armor penetration damage bonus.
- calculateCeiled(LevelScaling, int) - Static method in class io.artificial.enchantments.internal.scaling.ScalingUtils
-
Calculates a value and ceils to the nearest integer.
- calculateCombineCost(Map<EnchantmentDefinition, Integer>, Map<EnchantmentDefinition, Integer>, int, int, boolean) - Static method in class io.artificial.enchantments.internal.anvil.AnvilCostCalculator
-
Calculates the cost for combining two items in an anvil.
- calculateCriticalDamage(double, double) - Static method in class io.artificial.enchantments.internal.DamageModifierHelper
-
Calculates critical hit damage.
- calculateDamageReduction(double, double) - Static method in class io.artificial.enchantments.internal.DamageModifierHelper
-
Calculates damage reduction percentage from armor/enchantments.
- calculateFinalDamage(double, double, double, boolean, double, double, double) - Static method in class io.artificial.enchantments.internal.DamageModifierHelper
-
Calculates damage with all modifiers applied in correct order.
- calculateFloored(LevelScaling, int) - Static method in class io.artificial.enchantments.internal.scaling.ScalingUtils
-
Calculates a value and floors to the nearest integer.
- calculateLifeSteal(double, double) - Static method in class io.artificial.enchantments.internal.DamageModifierHelper
-
Calculates life steal amount from damage dealt.
- calculateMultiplicativeDamage(double, LevelScaling, int) - Static method in class io.artificial.enchantments.internal.DamageModifierHelper
-
Calculates multiplicative bonus damage using a scaling formula.
- calculateNewPriorWork(int) - Static method in class io.artificial.enchantments.internal.anvil.AnvilCostCalculator
-
Calculates the new prior work penalty after an anvil operation.
- calculateRecoil(double, double) - Static method in class io.artificial.enchantments.internal.DamageModifierHelper
-
Calculates recoil/thorns damage to attacker.
- calculateRenameCost(String, String, int) - Static method in class io.artificial.enchantments.internal.anvil.AnvilCostCalculator
-
Calculates the cost for renaming an item.
- calculateRepairCost(int, int) - Static method in class io.artificial.enchantments.internal.anvil.AnvilCostCalculator
-
Calculates the cost for repairing an item with materials.
- calculateRounded(LevelScaling, int) - Static method in class io.artificial.enchantments.internal.scaling.ScalingUtils
-
Calculates a value and rounds to the nearest integer.
- calculateScaledDamageReduction(double, LevelScaling, int) - Static method in class io.artificial.enchantments.internal.DamageModifierHelper
-
Calculates damage reduction using scaling formula.
- calculateScaledLifeSteal(double, LevelScaling, int) - Static method in class io.artificial.enchantments.internal.DamageModifierHelper
-
Calculates life steal using a scaling formula.
- calculateScaledValue(int) - Method in interface io.artificial.enchantments.api.EnchantmentDefinition
-
Calculates the scaled value for a given level.
- calculateScaledValue(int) - Method in class io.artificial.enchantments.internal.EnchantmentDefinitionImpl
- cancel() - Method in interface io.artificial.enchantments.internal.FoliaScheduler.ScheduledTask
-
Cancels this task.
- CAST - Enum constant in enum class io.artificial.enchantments.api.event.FishingEvent.State
-
Casting the line.
- CAUGHT - Enum constant in enum class io.artificial.enchantments.api.event.FishingEvent.State
-
Caught something.
- checkCancelled() - Method in class io.artificial.enchantments.api.event.EnchantEffectEvent
-
Checks if this event has been cancelled.
- clampDamage(double, double, double) - Static method in class io.artificial.enchantments.internal.DamageModifierHelper
-
Clamps damage to specified minimum and maximum bounds.
- clear() - Method in interface io.artificial.enchantments.api.loot.LootModifierRegistry
-
Clears all registrations from this registry.
- clear() - Method in class io.artificial.enchantments.internal.EnchantmentRegistryManager
-
Clears all registrations.
- clear() - Method in class io.artificial.enchantments.internal.loot.LootModifierRegistryImpl
- clear(ItemStack) - Method in class io.artificial.enchantments.internal.NbtMetadataStorage
-
Clears all auxiliary metadata while preserving the root compound.
- clearAllPlayerPreferences() - Method in class io.artificial.enchantments.optional.packetevents.PacketEventsAdapter
-
Clears all player visual preferences.
- clearAuxiliaryMetadata(ItemStack) - Method in interface io.artificial.enchantments.api.ItemStorage
-
Clears all auxiliary metadata from an item.
- clearAuxiliaryMetadata(ItemStack) - Method in class io.artificial.enchantments.internal.NativeFirstItemStorage
- clearDrops() - Method in interface io.artificial.enchantments.api.loot.LootContext
-
Clears all drops from the list.
- clearLoreFormatters() - Method in class io.artificial.enchantments.optional.packetevents.ItemVisualProcessor
-
Clears all registered custom formatters.
- clearPendingNativeRegistration(NamespacedKey) - Method in class io.artificial.enchantments.internal.EnchantmentRegistryManager
-
Removes an enchantment from the pending native registration queue without marking it as registered.
- CombatContext - Interface in io.artificial.enchantments.api.context
-
Context for combat-related enchantment effects.
- CombatEvent - Class in io.artificial.enchantments.api.event
-
Event fired when a combat-related enchantment effect triggers.
- CombatEvent(EnchantmentDefinition, int, double, LivingEntity, LivingEntity, ItemStack, double, DamageSource, CombatEvent.CombatType) - Constructor for class io.artificial.enchantments.api.event.CombatEvent
-
Creates a new
CombatEvent. - CombatEvent.CombatType - Enum Class in io.artificial.enchantments.api.event
-
Represents the type of combat interaction.
- CombinationResult(ItemStack, int, int, boolean, Map<EnchantmentDefinition, Integer>, Set<EnchantmentDefinition>) - Constructor for record class io.artificial.enchantments.internal.anvil.AnvilCombinationLogic.CombinationResult
-
Creates an instance of a
CombinationResultrecord class. - combine(ItemStack, ItemStack, int, int, boolean) - Method in class io.artificial.enchantments.internal.anvil.AnvilCombinationLogic
-
Attempts to combine a target item with a sacrifice (book or item).
- combineBooks(ItemStack, ItemStack, int, int) - Method in class io.artificial.enchantments.internal.anvil.AnvilCombinationLogic
-
Attempts to combine two enchanted books.
- COMMON - Enum constant in enum class io.artificial.enchantments.api.EnchantmentDefinition.Rarity
-
Common enchantments appear frequently in trading and loot
- configuration() - Method in record class io.artificial.enchantments.internal.enchanttable.EnchantOfferGenerator.GeneratedOffer
-
Returns the value of the
configurationrecord component. - conflicts() - Method in record class io.artificial.enchantments.internal.anvil.AnvilCombinationLogic.CombinationResult
-
Returns the value of the
conflictsrecord component. - conflictsWith(EnchantmentDefinition) - Method in interface io.artificial.enchantments.api.EnchantmentDefinition
-
Checks if this enchantment conflicts with another.
- conflictsWith(EnchantmentDefinition) - Method in class io.artificial.enchantments.internal.EnchantmentDefinitionImpl
- conflictsWith(NamespacedKey) - Method in interface io.artificial.enchantments.api.EnchantmentDefinition.Builder
-
Adds a conflicting enchantment key.
- conflictsWith(NamespacedKey) - Method in class io.artificial.enchantments.internal.EnchantmentDefinitionBuilder
- conflictsWith(NamespacedKey...) - Method in interface io.artificial.enchantments.api.EnchantmentDefinition.Builder
-
Adds multiple conflicting enchantment keys.
- conflictsWith(NamespacedKey...) - Method in class io.artificial.enchantments.internal.EnchantmentDefinitionBuilder
- constant(double) - Static method in interface io.artificial.enchantments.api.scaling.LevelScaling
-
Creates constant scaling: same value at all levels.
- constant(double) - Static method in class io.artificial.enchantments.internal.scaling.ScalingUtils
-
Creates a constant scaling formula (value independent of level).
- ConstantScaling - Class in io.artificial.enchantments.api.scaling
-
A scaling algorithm that returns a constant value regardless of level.
- ConstantScaling(double) - Constructor for class io.artificial.enchantments.api.scaling.ConstantScaling
-
Creates a new constant scaling with the specified value.
- ConsumableContext - Interface in io.artificial.enchantments.api.context
-
Context for consumable-related enchantment effects.
- ConsumableEvent - Class in io.artificial.enchantments.api.event
-
Event fired when a consumable-related enchantment effect triggers.
- ConsumableEvent(EnchantmentDefinition, int, double, Player, ItemStack, Material, int, float, double, int) - Constructor for class io.artificial.enchantments.api.event.ConsumableEvent
-
Creates a new
ConsumableEvent. - ContextFactory - Class in io.artificial.enchantments.internal
-
Factory for creating EffectContext implementations based on Bukkit events.
- ContextFactory() - Constructor for class io.artificial.enchantments.internal.ContextFactory
-
Creates a new context factory.
- convertToBuilder(EnchantmentDefinition, EnchantmentRegistryEntry.Builder, RegistryComposeEvent<Enchantment, EnchantmentRegistryEntry.Builder>) - Static method in class io.artificial.enchantments.internal.PaperEnchantmentConverter
-
Configures a Paper EnchantmentRegistryEntry.Builder from an EnchantmentDefinition.
- cost() - Method in record class io.artificial.enchantments.internal.anvil.AnvilCombinationLogic.CombinationResult
-
Returns the value of the
costrecord component. - cost() - Method in record class io.artificial.enchantments.internal.enchanttable.EnchantOfferGenerator.GeneratedOffer
-
Returns the value of the
costrecord component. - costMultiplier(double) - Method in interface io.artificial.enchantments.api.enchanttable.EnchantTableConfiguration.Builder
-
Sets the cost multiplier.
- costMultiplier(double) - Method in class io.artificial.enchantments.internal.enchanttable.EnchantTableConfigurationBuilder
-
Sets the cost multiplier.
- create(double...) - Method in interface io.artificial.enchantments.api.scaling.ScalingAlgorithm
-
Creates a
LevelScalinginstance with the given parameters. - create(ItemStorage) - Static method in class io.artificial.enchantments.internal.book.BookFactory
-
Creates a new EnchantedBook API instance.
- create(Plugin) - Static method in interface io.artificial.enchantments.api.ArtificialEnchantmentsAPI
-
Creates or returns the shared API instance.
- create(Plugin) - Static method in class io.artificial.enchantments.internal.ArtificialEnchantmentsAPIImpl
-
Creates a new API instance bound to the specified plugin.
- createContext(EffectDispatchSpine.DispatchEventType, EnchantmentDefinition, int, double, Event, EquipmentSlot) - Method in class io.artificial.enchantments.internal.ContextFactory
-
Creates the appropriate context for the given event type.
- createDefaultPreferences() - Method in class io.artificial.enchantments.optional.packetevents.ItemVisualProcessor
-
Gets a default visual preferences object with sensible defaults.
- createPlugin(PluginProviderContext) - Method in class io.artificial.enchantments.internal.PaperEnchantmentBootstrap
- createPreferencesBuilder() - Method in class io.artificial.enchantments.optional.packetevents.ItemVisualProcessor
-
Creates a preferences builder with fluent API.
- curse() - Method in interface io.artificial.enchantments.api.EnchantmentDefinition.Builder
-
Marks this enchantment as a curse (convenience method).
- curse() - Method in class io.artificial.enchantments.internal.EnchantmentDefinitionBuilder
- curse(boolean) - Method in interface io.artificial.enchantments.api.EnchantmentDefinition.Builder
-
Sets whether this is a curse enchantment.
- curse(boolean) - Method in class io.artificial.enchantments.internal.EnchantmentDefinitionBuilder
- custom(Function<Integer, Double>) - Static method in class io.artificial.enchantments.internal.scaling.ScalingUtils
-
Creates a custom scaling formula from a user-defined function.
- customFormatter(Consumer<PacketEventsAdapter.VisualContext>) - Method in class io.artificial.enchantments.optional.packetevents.ItemVisualProcessor.PreferencesBuilder
-
Sets a custom lore formatter for enchantment display.
D
- DamageModifierHelper - Class in io.artificial.enchantments.internal
-
Pure functions for damage calculation and modification.
- damageModifierUuid(String) - Static method in class io.artificial.enchantments.internal.AttributeModifierHelper
-
Creates a modifier UUID for damage modifiers.
- decaying(double, double) - Static method in class io.artificial.enchantments.internal.scaling.ScalingUtils
-
Creates an alternative diminishing returns formula using exponential decay.
- defaults() - Static method in interface io.artificial.enchantments.api.enchanttable.EnchantTableConfiguration
-
Gets the default configuration with all default values.
- DEFENSE - Enum constant in enum class io.artificial.enchantments.api.event.CombatEvent.CombatType
-
Defensive damage reduction.
- definition() - Method in record class io.artificial.enchantments.internal.enchanttable.EnchantOfferGenerator.GeneratedOffer
-
Returns the value of the
definitionrecord component. - description(Component) - Method in interface io.artificial.enchantments.api.EnchantmentDefinition.Builder
-
Sets the optional description for lore display.
- description(Component) - Method in class io.artificial.enchantments.internal.EnchantmentDefinitionBuilder
- diminishing(double, double) - Static method in interface io.artificial.enchantments.api.scaling.LevelScaling
-
Creates diminishing scaling: maxValue * (level / (level + factor)).
- diminishing(double, double) - Static method in class io.artificial.enchantments.internal.scaling.ScalingUtils
-
Creates a diminishing returns scaling formula.
- DiminishingScaling - Class in io.artificial.enchantments.api.scaling
-
A scaling algorithm that approaches a maximum value with diminishing returns.
- DiminishingScaling(double, double) - Constructor for class io.artificial.enchantments.api.scaling.DiminishingScaling
-
Creates a new diminishing scaling.
- disable() - Method in class io.artificial.enchantments.optional.packetevents.PacketEventsAdapter
-
Disables the adapter and unregisters all packet listeners.
- discoverable(boolean) - Method in interface io.artificial.enchantments.api.EnchantmentDefinition.Builder
-
Sets whether this enchantment appears in loot tables.
- discoverable(boolean) - Method in class io.artificial.enchantments.internal.EnchantmentDefinitionBuilder
- dispatch(EnchantmentDefinition, int, Event, EquipmentSlot, EffectDispatchSpine.DispatchEventType) - Method in class io.artificial.enchantments.internal.EffectDispatchSpine
-
Dispatches an enchantment effect through both callback and event bus paths.
- dispatch(EnchantmentDefinition, EffectContext, Event, EffectDispatchSpine.DispatchEventType) - Method in class io.artificial.enchantments.internal.EventBusDispatcher
-
Dispatches an effect through the event bus.
- dispatch(EnchantmentEffectHandler, EffectContext, EffectDispatchSpine.DispatchEventType) - Method in class io.artificial.enchantments.internal.TypedCallbackDispatcher
-
Dispatches an effect to the appropriate handler method based on event type.
- dispatch(Class<T>, Supplier<T>) - Method in interface io.artificial.enchantments.api.EnchantmentEventBus
-
Dispatches an event created by a factory function.
- dispatch(Class<T>, Supplier<T>) - Method in class io.artificial.enchantments.internal.EnchantmentEventBusImpl
- dispatch(T) - Method in interface io.artificial.enchantments.api.EnchantmentEventBus
-
Dispatches an event to all registered handlers.
- dispatch(T) - Method in class io.artificial.enchantments.internal.EnchantmentEventBusImpl
- displayName(String) - Method in interface io.artificial.enchantments.api.book.EnchantedBook.Builder
-
Sets a custom display name for the book.
- displayName(String) - Method in class io.artificial.enchantments.internal.book.EnchantedBookBuilderImpl
-
Sets a custom display name for the book.
- displayName(Component) - Method in interface io.artificial.enchantments.api.EnchantmentDefinition.Builder
-
Sets the display name shown to players.
- displayName(Component) - Method in class io.artificial.enchantments.internal.EnchantmentDefinitionBuilder
- DURABILITY_DAMAGE - Enum constant in enum class io.artificial.enchantments.internal.EffectDispatchSpine.DispatchEventType
-
Durability damage taken.
E
- EffectContext - Interface in io.artificial.enchantments.api.context
-
Base interface for all effect contexts.
- EffectDispatchSpine - Class in io.artificial.enchantments.internal
-
Central dispatch spine for all enchantment effects.
- EffectDispatchSpine(FoliaScheduler, EnchantmentEventBus) - Constructor for class io.artificial.enchantments.internal.EffectDispatchSpine
-
Creates a new EffectDispatchSpine with the given components.
- EffectDispatchSpine(FoliaScheduler, EnchantmentEventBus, EffectExecutionContext.ExecutionMode) - Constructor for class io.artificial.enchantments.internal.EffectDispatchSpine
-
Creates a new EffectDispatchSpine with the given components and execution mode.
- EffectDispatchSpine.DispatchEventType - Enum Class in io.artificial.enchantments.internal
-
Enumeration of all dispatchable event types.
- EffectExecutionContext - Class in io.artificial.enchantments.internal
-
Context wrapper for executing enchantment effect handlers with exception isolation.
- EffectExecutionContext(EnchantmentDefinition, EffectDispatchSpine.DispatchEventType, EffectExecutionContext.ExecutionMode) - Constructor for class io.artificial.enchantments.internal.EffectExecutionContext
-
Creates a new execution context from an enchantment definition.
- EffectExecutionContext(NamespacedKey, String, int) - Constructor for class io.artificial.enchantments.internal.EffectExecutionContext
-
Creates a new execution context with lenient mode (default).
- EffectExecutionContext(NamespacedKey, String, int, EffectExecutionContext.ExecutionMode) - Constructor for class io.artificial.enchantments.internal.EffectExecutionContext
-
Creates a new execution context.
- EffectExecutionContext.EffectExecutionException - Exception Class in io.artificial.enchantments.internal
-
Exception thrown when strict mode is enabled and an effect handler fails.
- EffectExecutionContext.ExecutionMode - Enum Class in io.artificial.enchantments.internal
-
Execution mode for handling effect handler failures.
- EffectExecutionException(String, Throwable) - Constructor for exception class io.artificial.enchantments.internal.EffectExecutionContext.EffectExecutionException
-
Creates a new effect execution exception.
- effectHandler(EnchantmentEffectHandler) - Method in interface io.artificial.enchantments.api.EnchantmentDefinition.Builder
-
Sets the effect handler for this enchantment.
- effectHandler(EnchantmentEffectHandler) - Method in class io.artificial.enchantments.internal.EnchantmentDefinitionBuilder
- enable() - Method in class io.artificial.enchantments.optional.packetevents.PacketEventsAdapter
-
Enables the PacketEvents adapter if PacketEvents is available.
- enabled(boolean) - Method in class io.artificial.enchantments.optional.packetevents.ItemVisualProcessor.PreferencesBuilder
-
Sets whether visual customization is enabled.
- EnchantedBook - Interface in io.artificial.enchantments.api.book
-
API for creating and managing enchanted books with custom enchantments.
- EnchantedBook.Builder - Interface in io.artificial.enchantments.api.book
-
Builder for creating enchanted books.
- EnchantedBookBuilderImpl - Class in io.artificial.enchantments.internal.book
-
Builder implementation for creating enchanted books.
- EnchantedBookBuilderImpl(ItemStorage) - Constructor for class io.artificial.enchantments.internal.book.EnchantedBookBuilderImpl
-
Creates a new enchanted book builder.
- EnchantedBookImpl - Class in io.artificial.enchantments.internal.book
-
Implementation of
EnchantedBookusing native ItemMeta storage. - EnchantedBookImpl(ItemStorage) - Constructor for class io.artificial.enchantments.internal.book.EnchantedBookImpl
-
Creates a new enchanted book implementation.
- EnchantEffectEvent - Class in io.artificial.enchantments.api.event
-
Base class for all enchantment effect events dispatched through the event bus.
- EnchantEffectEvent(boolean, EnchantmentDefinition, int, double) - Constructor for class io.artificial.enchantments.api.event.EnchantEffectEvent
-
Creates a new enchant effect event with async flag.
- EnchantEffectEvent(EnchantmentDefinition, int, double) - Constructor for class io.artificial.enchantments.api.event.EnchantEffectEvent
-
Creates a new enchant effect event.
- EnchantmentDefinition - Interface in io.artificial.enchantments.api
-
Defines a custom enchantment that can be registered with the library.
- EnchantmentDefinition.Builder - Interface in io.artificial.enchantments.api
-
Builder for creating enchantment definitions.
- EnchantmentDefinition.Rarity - Enum Class in io.artificial.enchantments.api
-
Rarity tiers for enchantments, affecting trading and loot weights.
- EnchantmentDefinitionBuilder - Class in io.artificial.enchantments.internal
-
Internal implementation of the EnchantmentDefinition.Builder interface.
- EnchantmentDefinitionBuilder() - Constructor for class io.artificial.enchantments.internal.EnchantmentDefinitionBuilder
-
Creates a new enchantment definition builder.
- EnchantmentDefinitionImpl - Class in io.artificial.enchantments.internal
-
Immutable implementation of EnchantmentDefinition.
- EnchantmentEffectHandler - Interface in io.artificial.enchantments.api
-
Handler for enchantment effects triggered by game events.
- EnchantmentEffectListener - Class in io.artificial.enchantments.internal
-
Bukkit event listener that bridges gameplay events into the
EffectDispatchSpine. - EnchantmentEffectListener(Plugin, EffectDispatchSpine, ItemEnchantmentService) - Constructor for class io.artificial.enchantments.internal.EnchantmentEffectListener
-
Creates a new enchantment effect listener.
- EnchantmentEventBus - Interface in io.artificial.enchantments.api
-
Event bus for subscribing to enchantment-triggered effects.
- EnchantmentEventBus.EventSubscription<T> - Interface in io.artificial.enchantments.api
-
Represents a subscription to an event type.
- EnchantmentEventBusImpl - Class in io.artificial.enchantments.internal
-
Implementation of
EnchantmentEventBus. - EnchantmentEventBusImpl() - Constructor for class io.artificial.enchantments.internal.EnchantmentEventBusImpl
-
Creates a new enchantment event bus.
- EnchantmentRegistryManager - Class in io.artificial.enchantments.internal
-
Internal registry manager for tracking enchantment definitions.
- EnchantmentTableListener - Class in io.artificial.enchantments.internal.enchanttable
-
Listener for enchantment table events to enable custom enchantment support.
- EnchantmentTableListener(Plugin, EnchantmentRegistryManager, PaperRegistryBridge) - Constructor for class io.artificial.enchantments.internal.enchanttable.EnchantmentTableListener
-
Creates a new enchantment table listener.
- EnchantmentTickTask - Class in io.artificial.enchantments.internal
-
Scheduled task that scans all online players' held items and armor, dispatching
EffectDispatchSpine.DispatchEventType.HELD_TICKandEffectDispatchSpine.DispatchEventType.ARMOR_TICKeffects. - EnchantmentTickTask(Plugin, FoliaScheduler, EffectDispatchSpine, ItemEnchantmentService) - Constructor for class io.artificial.enchantments.internal.EnchantmentTickTask
-
Creates a new tick task for scanning player equipment.
- EnchantOfferGenerator - Class in io.artificial.enchantments.internal.enchanttable
-
Generates enchantment offers for the enchantment table.
- EnchantOfferGenerator(EnchantmentRegistryManager) - Constructor for class io.artificial.enchantments.internal.enchanttable.EnchantOfferGenerator
-
Creates a new offer generator.
- EnchantOfferGenerator.GeneratedOffer - Record Class in io.artificial.enchantments.internal.enchanttable
-
Record representing a generated enchantment offer.
- EnchantTableConfiguration - Interface in io.artificial.enchantments.api.enchanttable
-
Configuration API for customizing enchantment table behavior per-enchantment.
- EnchantTableConfiguration.Builder - Interface in io.artificial.enchantments.api.enchanttable
-
Builder for constructing table configurations.
- EnchantTableConfigurationBuilder - Class in io.artificial.enchantments.internal.enchanttable
-
Builder implementation for
EnchantTableConfiguration. - EnchantTableConfigurationBuilder() - Constructor for class io.artificial.enchantments.internal.enchanttable.EnchantTableConfigurationBuilder
-
Creates a new enchantment table configuration builder.
- EnchantTableConfigurationImpl - Class in io.artificial.enchantments.internal.enchanttable
-
Immutable implementation of
EnchantTableConfiguration. - EnchantTableConfigurationImpl(double, int, int, double, boolean, int, int, boolean) - Constructor for class io.artificial.enchantments.internal.enchanttable.EnchantTableConfigurationImpl
-
Creates a new immutable configuration.
- ENTITY_DAMAGE - Enum constant in enum class io.artificial.enchantments.internal.EffectDispatchSpine.DispatchEventType
-
Entity damaged by any source.
- ENTITY_DAMAGE_BY_ENTITY - Enum constant in enum class io.artificial.enchantments.internal.EffectDispatchSpine.DispatchEventType
-
Entity damaged by another entity.
- ENTITY_INTERACT - Enum constant in enum class io.artificial.enchantments.internal.EffectDispatchSpine.DispatchEventType
-
Player interacts with an entity.
- equals(Object) - Method in record class io.artificial.enchantments.internal.anvil.AnvilCombinationLogic.CombinationResult
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in class io.artificial.enchantments.internal.EffectExecutionContext
- equals(Object) - Method in class io.artificial.enchantments.internal.EnchantmentDefinitionImpl
- equals(Object) - Method in record class io.artificial.enchantments.internal.enchanttable.EnchantOfferGenerator.GeneratedOffer
-
Indicates whether some other object is "equal to" this one.
- EventBusDispatcher - Class in io.artificial.enchantments.internal
-
Dispatches effects through the event bus to registered listeners.
- EventBusDispatcher(EnchantmentEventBus) - Constructor for class io.artificial.enchantments.internal.EventBusDispatcher
-
Creates a new EventBusDispatcher.
- executeLenient(Class<?>, Runnable) - Method in class io.artificial.enchantments.internal.EffectExecutionContext
-
Executes the given runnable with exception isolation, using lenient mode by default.
- executeWithIsolation(Class<?>, Runnable) - Method in class io.artificial.enchantments.internal.EffectExecutionContext
-
Executes the given runnable with exception isolation.
- exponential(double, double) - Static method in interface io.artificial.enchantments.api.scaling.LevelScaling
-
Creates exponential scaling: base * multiplier^(level - 1).
- exponential(double, double) - Static method in class io.artificial.enchantments.internal.scaling.ScalingUtils
-
Creates an exponential scaling formula.
- ExponentialScaling - Class in io.artificial.enchantments.api.scaling
-
Exponential scaling algorithm: base * multiplier^(level - 1).
- ExponentialScaling(double, double) - Constructor for class io.artificial.enchantments.api.scaling.ExponentialScaling
-
Creates a new exponential scaling with the specified base and multiplier.
F
- FISHING_ACTION - Enum constant in enum class io.artificial.enchantments.internal.EffectDispatchSpine.DispatchEventType
-
Fishing rod action.
- FishingContext - Interface in io.artificial.enchantments.api.context
-
Context for fishing-related enchantment effects.
- FishingEvent - Class in io.artificial.enchantments.api.event
-
Event fired when a fishing-related enchantment effect triggers.
- FishingEvent(EnchantmentDefinition, int, double, Player, ItemStack, FishHook, Location, Item, Entity, FishingEvent.State, int, int, boolean) - Constructor for class io.artificial.enchantments.api.event.FishingEvent
-
Creates a new
FishingEvent. - FishingEvent.State - Enum Class in io.artificial.enchantments.api.event
-
Represents the state of a fishing action.
- FoliaScheduler - Interface in io.artificial.enchantments.internal
-
Thread-safe scheduler abstraction for Folia and non-Folia servers.
- FoliaScheduler.ScheduledTask - Interface in io.artificial.enchantments.internal
-
Represents a scheduled task that can be cancelled.
- fromNative(Enchantment) - Method in class io.artificial.enchantments.internal.PaperRegistryBridge
-
Converts a native Paper Enchantment to the library's EnchantmentDefinition.
G
- GeneratedOffer(EnchantmentDefinition, int, int, EnchantTableConfiguration) - Constructor for record class io.artificial.enchantments.internal.enchanttable.EnchantOfferGenerator.GeneratedOffer
-
Creates an instance of a
GeneratedOfferrecord class. - generateModifierUuid(String, String) - Static method in class io.artificial.enchantments.internal.AttributeModifierHelper
-
Generates a unique UUID for attribute modifiers.
- generateOffers(ItemStack, int, Set<Enchantment>) - Method in class io.artificial.enchantments.internal.enchanttable.EnchantOfferGenerator
-
Generates custom enchantment offers for an item.
- get(String, double...) - Method in interface io.artificial.enchantments.api.scaling.ScalingAlgorithmRegistry
-
Gets a scaling algorithm by name with the specified parameters.
- get(String, double...) - Method in class io.artificial.enchantments.internal.scaling.ScalingAlgorithmRegistryImpl
- get(NamespacedKey) - Method in class io.artificial.enchantments.internal.EnchantmentRegistryManager
-
Gets an enchantment definition by its key.
- getActiveModifiers(LivingEntity) - Static method in class io.artificial.enchantments.internal.AttributeModifierHelper
-
Gets all active modifiers created by this helper on an entity.
- getAll() - Method in class io.artificial.enchantments.internal.EnchantmentRegistryManager
-
Gets all registered enchantment definitions.
- getAllDefinitions() - Method in class io.artificial.enchantments.internal.PaperRegistryBridge
-
Gets all registered enchantment definitions.
- getAllEnchantmentKeys(ItemStack) - Method in interface io.artificial.enchantments.api.book.EnchantedBook
-
Gets all enchantment keys on a book as NamespacedKey to level mapping.
- getAllEnchantmentKeys(ItemStack) - Method in class io.artificial.enchantments.internal.book.EnchantedBookImpl
-
Gets all enchantment keys on a book as NamespacedKey to level mapping.
- getAllEnchantments() - Method in interface io.artificial.enchantments.api.ArtificialEnchantmentsAPI
-
Gets all registered enchantment definitions.
- getAllEnchantments() - Method in class io.artificial.enchantments.internal.ArtificialEnchantmentsAPIImpl
- getAllEnchantments() - Method in class io.artificial.enchantments.internal.ItemEnchantmentService
-
Gets all registered enchantment definitions.
- getAllEnchantments(ItemStack) - Method in interface io.artificial.enchantments.api.query.ItemEnchantmentQuery
-
Gets all artificial enchantments on an item.
- getAllEnchantments(ItemStack) - Method in class io.artificial.enchantments.internal.query.ItemEnchantmentQueryImpl
- getAPI() - Method in class io.artificial.enchantments.optional.packetevents.PacketEventsAdapter
-
Gets the API instance.
- getApplicableMaterials() - Method in interface io.artificial.enchantments.api.EnchantmentDefinition
-
Gets all materials this enchantment can be applied to.
- getApplicableMaterials() - Method in class io.artificial.enchantments.internal.EnchantmentDefinitionImpl
- getAttacker() - Method in interface io.artificial.enchantments.api.context.CombatContext
-
Gets the attacking entity, if any.
- getAttacker() - Method in class io.artificial.enchantments.api.event.CombatEvent
-
Gets the attacking entity, if any.
- getAuxiliaryMetadata(ItemStack, String) - Method in interface io.artificial.enchantments.api.ItemStorage
-
Gets an auxiliary metadata string value.
- getAuxiliaryMetadata(ItemStack, String) - Method in class io.artificial.enchantments.internal.ItemEnchantmentService
-
Gets auxiliary metadata from an item.
- getAuxiliaryMetadata(ItemStack, String) - Method in class io.artificial.enchantments.internal.NativeFirstItemStorage
- getAuxiliaryMetadataKeys(ItemStack) - Method in interface io.artificial.enchantments.api.ItemStorage
-
Gets the names of all auxiliary metadata keys stored for this item.
- getAuxiliaryMetadataKeys(ItemStack) - Method in class io.artificial.enchantments.internal.NativeFirstItemStorage
- getBase() - Method in class io.artificial.enchantments.api.scaling.ExponentialScaling
-
Gets the base value at level 1.
- getBase() - Method in class io.artificial.enchantments.api.scaling.LinearScaling
-
Gets the base value at level 1.
- getBaseDamage() - Method in interface io.artificial.enchantments.api.context.CombatContext
-
Gets the base damage before modifiers.
- getBaseDamage() - Method in class io.artificial.enchantments.api.event.CombatEvent
-
Gets the base damage before modifiers.
- getBaseValue(LivingEntity, Attribute) - Static method in class io.artificial.enchantments.internal.AttributeModifierHelper
-
Gets the base value of an attribute without modifiers.
- getBlock() - Method in interface io.artificial.enchantments.api.context.InteractionContext
-
Gets the block being interacted with, if any.
- getBlock() - Method in interface io.artificial.enchantments.api.context.ToolContext
-
Gets the block being affected.
- getBlock() - Method in class io.artificial.enchantments.api.event.InteractionEvent
-
Gets the block interacted with.
- getBlock() - Method in class io.artificial.enchantments.api.event.ToolEvent
-
Gets the block being affected.
- getBlock() - Method in interface io.artificial.enchantments.api.loot.LootContext
-
Gets the block being broken.
- getBlockFace() - Method in interface io.artificial.enchantments.api.context.InteractionContext
-
Gets the face of the block being clicked.
- getBlockFace() - Method in interface io.artificial.enchantments.api.context.ToolContext
-
Gets the face of the block being hit.
- getBlockFace() - Method in class io.artificial.enchantments.api.event.InteractionEvent
-
Gets the block face clicked.
- getBoolean(ItemStack, String, boolean) - Method in class io.artificial.enchantments.internal.NbtMetadataStorage
-
Gets a boolean metadata value.
- getCaughtEntity() - Method in interface io.artificial.enchantments.api.context.FishingContext
-
Gets the caught entity, if any.
- getCaughtEntity() - Method in class io.artificial.enchantments.api.event.FishingEvent
-
Gets the caught entity.
- getCaughtItem() - Method in interface io.artificial.enchantments.api.context.FishingContext
-
Gets the caught item, if any.
- getCaughtItem() - Method in class io.artificial.enchantments.api.event.FishingEvent
-
Gets the caught item.
- getCombatType() - Method in class io.artificial.enchantments.api.event.CombatEvent
-
Gets the combat type.
- getConflictingEnchantments() - Method in interface io.artificial.enchantments.api.EnchantmentDefinition
-
Gets all enchantment keys that conflict with this one.
- getConflictingEnchantments() - Method in class io.artificial.enchantments.internal.EnchantmentDefinitionImpl
- getConsumptionTime() - Method in interface io.artificial.enchantments.api.context.ConsumableContext
-
Gets the consumption time in ticks.
- getConsumptionTime() - Method in class io.artificial.enchantments.api.event.ConsumableEvent
-
Gets the consumption time in ticks.
- getContextFactory() - Method in class io.artificial.enchantments.internal.EffectDispatchSpine
-
Returns the ContextFactory for creating effect contexts.
- getCostMultiplier() - Method in interface io.artificial.enchantments.api.enchanttable.EnchantTableConfiguration
-
Gets the cost multiplier for enchanting with this enchantment.
- getCostMultiplier() - Method in class io.artificial.enchantments.internal.enchanttable.EnchantTableConfigurationImpl
-
Gets the cost multiplier for enchanting with this enchantment.
- getCurrentDamage() - Method in interface io.artificial.enchantments.api.context.CombatContext
-
Gets the current damage after modifications.
- getCurrentDurability() - Method in interface io.artificial.enchantments.api.context.ItemContext
-
Gets the current durability of the item.
- getCurrentDurability() - Method in class io.artificial.enchantments.api.event.ItemEvent
-
Gets the current durability.
- getCustomLoreFormatter() - Method in class io.artificial.enchantments.optional.packetevents.PacketEventsAdapter.PlayerVisualPreferences
-
Gets the custom lore formatter.
- getDamageSource() - Method in interface io.artificial.enchantments.api.context.CombatContext
-
Gets the Bukkit damage source.
- getDamageSource() - Method in class io.artificial.enchantments.api.event.CombatEvent
-
Gets the Bukkit damage source.
- getDamageTaken() - Method in interface io.artificial.enchantments.api.context.ItemContext
-
Gets the damage being taken by this item.
- getDamageTaken() - Method in class io.artificial.enchantments.api.event.ItemEvent
-
Gets the damage taken.
- getDefinition(NamespacedKey) - Method in class io.artificial.enchantments.internal.PaperRegistryBridge
-
Gets a library EnchantmentDefinition by its key.
- getDescription() - Method in interface io.artificial.enchantments.api.EnchantmentDefinition
-
Gets the optional description shown in lore.
- getDescription() - Method in interface io.artificial.enchantments.api.scaling.ScalingAlgorithm
-
Gets a human-readable description of this algorithm.
- getDescription() - Method in class io.artificial.enchantments.api.scaling.ScalingAlgorithmMetadata
-
Gets the algorithm description.
- getDescription() - Method in class io.artificial.enchantments.internal.EnchantmentDefinitionImpl
- getDisplayName() - Method in interface io.artificial.enchantments.api.EnchantmentDefinition
-
Gets the display name shown to players.
- getDisplayName() - Method in class io.artificial.enchantments.internal.EnchantmentDefinitionImpl
- getDrops() - Method in interface io.artificial.enchantments.api.context.ToolContext
-
Gets the list of drops from breaking the block.
- getDrops() - Method in class io.artificial.enchantments.api.event.ToolEvent
-
Gets the drops from the block.
- getDrops() - Method in interface io.artificial.enchantments.api.loot.LootContext
-
Gets the modifiable list of drops.
- getEffectHandler() - Method in interface io.artificial.enchantments.api.EnchantmentDefinition
-
Gets the effect handler for this enchantment, if any.
- getEffectHandler() - Method in class io.artificial.enchantments.internal.EnchantmentDefinitionImpl
- getEffectType() - Method in class io.artificial.enchantments.internal.EffectExecutionContext
-
Gets the effect type.
- getEnchantment() - Method in interface io.artificial.enchantments.api.context.EffectContext
-
Gets the enchantment definition that triggered this effect.
- getEnchantment() - Method in class io.artificial.enchantments.api.event.EnchantEffectEvent
-
Gets the enchantment definition that triggered this event.
- getEnchantment(NamespacedKey) - Method in interface io.artificial.enchantments.api.ArtificialEnchantmentsAPI
-
Gets an enchantment definition by its key.
- getEnchantment(NamespacedKey) - Method in class io.artificial.enchantments.internal.ArtificialEnchantmentsAPIImpl
- getEnchantment(NamespacedKey) - Method in class io.artificial.enchantments.internal.EnchantmentRegistryManager
-
Gets an enchantment definition by its key (nullable variant).
- getEnchantment(NamespacedKey) - Method in class io.artificial.enchantments.internal.ItemEnchantmentService
-
Gets an enchantment definition by key.
- getEnchantmentCount() - Method in class io.artificial.enchantments.internal.loot.LootModifierRegistryImpl
-
Gets the total number of enchantments with registered modifiers.
- getEnchantmentKey() - Method in class io.artificial.enchantments.internal.EffectExecutionContext
-
Gets the enchantment key.
- getEnchantmentKeys(ItemStack) - Method in interface io.artificial.enchantments.api.ItemStorage
-
Gets all artificial enchantment keys on an item as NamespacedKey to level mapping.
- getEnchantmentKeys(ItemStack) - Method in class io.artificial.enchantments.internal.ItemEnchantmentService
-
Gets all artificial enchantment keys on an item.
- getEnchantmentKeys(ItemStack) - Method in class io.artificial.enchantments.internal.NativeFirstItemStorage
- getEnchantmentLevel(String) - Method in interface io.artificial.enchantments.api.loot.LootContext
-
Gets the level of a specific enchantment on the tool.
- getEnchantmentLevel(ItemStack, EnchantmentDefinition) - Method in interface io.artificial.enchantments.api.ArtificialEnchantmentsAPI
-
Gets the level of an enchantment on an item.
- getEnchantmentLevel(ItemStack, EnchantmentDefinition) - Method in interface io.artificial.enchantments.api.book.EnchantedBook
-
Gets the level of a specific artificial enchantment on a book.
- getEnchantmentLevel(ItemStack, EnchantmentDefinition) - Method in interface io.artificial.enchantments.api.ItemStorage
-
Gets the level of a specific enchantment on an item.
- getEnchantmentLevel(ItemStack, EnchantmentDefinition) - Method in class io.artificial.enchantments.internal.ArtificialEnchantmentsAPIImpl
- getEnchantmentLevel(ItemStack, EnchantmentDefinition) - Method in class io.artificial.enchantments.internal.book.EnchantedBookImpl
-
Gets the level of a specific artificial enchantment on a book.
- getEnchantmentLevel(ItemStack, EnchantmentDefinition) - Method in class io.artificial.enchantments.internal.ItemEnchantmentService
-
Gets the level of a specific enchantment on an item.
- getEnchantmentLevel(ItemStack, EnchantmentDefinition) - Method in class io.artificial.enchantments.internal.NativeFirstItemStorage
- getEnchantmentLevel(ItemStack, NamespacedKey) - Method in interface io.artificial.enchantments.api.ArtificialEnchantmentsAPI
-
Gets the level of an enchantment by its key.
- getEnchantmentLevel(ItemStack, NamespacedKey) - Method in interface io.artificial.enchantments.api.book.EnchantedBook
-
Gets the level of an artificial enchantment by its key.
- getEnchantmentLevel(ItemStack, NamespacedKey) - Method in interface io.artificial.enchantments.api.ItemStorage
-
Gets the level of an enchantment by its registry key.
- getEnchantmentLevel(ItemStack, NamespacedKey) - Method in class io.artificial.enchantments.internal.ArtificialEnchantmentsAPIImpl
- getEnchantmentLevel(ItemStack, NamespacedKey) - Method in class io.artificial.enchantments.internal.book.EnchantedBookImpl
-
Gets the level of an artificial enchantment by its key.
- getEnchantmentLevel(ItemStack, NamespacedKey) - Method in class io.artificial.enchantments.internal.ItemEnchantmentService
-
Gets the level of an enchantment by its registry key.
- getEnchantmentLevel(ItemStack, NamespacedKey) - Method in class io.artificial.enchantments.internal.NativeFirstItemStorage
- getEnchantmentName() - Method in class io.artificial.enchantments.optional.packetevents.ItemVisualProcessor.VisualContext
-
Gets the enchantment display name.
- getEnchantmentName() - Method in class io.artificial.enchantments.optional.packetevents.PacketEventsAdapter.VisualContext
-
Gets the enchantment display name.
- getEnchantments(ItemStack) - Method in interface io.artificial.enchantments.api.ArtificialEnchantmentsAPI
-
Gets all artificial enchantments on an item.
- getEnchantments(ItemStack) - Method in interface io.artificial.enchantments.api.book.EnchantedBook
-
Gets all artificial enchantments stored on a book.
- getEnchantments(ItemStack) - Method in interface io.artificial.enchantments.api.ItemStorage
-
Gets all artificial enchantments on an item.
- getEnchantments(ItemStack) - Method in class io.artificial.enchantments.internal.ArtificialEnchantmentsAPIImpl
- getEnchantments(ItemStack) - Method in class io.artificial.enchantments.internal.book.EnchantedBookImpl
-
Gets all artificial enchantments stored on a book.
- getEnchantments(ItemStack) - Method in class io.artificial.enchantments.internal.ItemEnchantmentService
-
Gets all artificial enchantments on an item.
- getEnchantments(ItemStack) - Method in class io.artificial.enchantments.internal.NativeFirstItemStorage
- getEnchantmentsFor(Material) - Method in class io.artificial.enchantments.internal.ArtificialEnchantmentsAPIImpl
- getEnchantmentsFor(Material) - Method in interface io.artificial.enchantments.api.query.ItemEnchantmentQuery
-
Gets all enchantments that can be applied to a specific material.
- getEnchantmentsFor(Material) - Method in class io.artificial.enchantments.internal.query.ItemEnchantmentQueryImpl
- getEnchantmentsFor(Material) - Method in interface io.artificial.enchantments.api.ArtificialEnchantmentsAPI
-
Gets all enchantments applicable to a specific material.
- getEnchantmentsForMaterial(Material) - Method in class io.artificial.enchantments.internal.ItemEnchantmentService
-
Gets all enchantments applicable to a material.
- getEnchantmentsForMaterial(Material) - Method in class io.artificial.enchantments.internal.PaperRegistryBridge
-
Gets all enchantments applicable to a specific material.
- getEventBus() - Method in interface io.artificial.enchantments.api.ArtificialEnchantmentsAPI
-
Gets the event bus for subscribing to enchantment effects.
- getEventBus() - Method in class io.artificial.enchantments.internal.ArtificialEnchantmentsAPIImpl
- getEventType() - Method in interface io.artificial.enchantments.api.EnchantmentEventBus.EventSubscription
-
Gets the subscribed event type.
- getExecutionMode() - Method in class io.artificial.enchantments.internal.EffectDispatchSpine
-
Gets the current execution mode.
- getExecutionMode() - Method in class io.artificial.enchantments.internal.EffectExecutionContext
-
Gets the execution mode.
- getExpToDrop() - Method in interface io.artificial.enchantments.api.context.ToolContext
-
Gets the experience to drop from breaking the block.
- getExpToDrop() - Method in class io.artificial.enchantments.api.event.ToolEvent
-
Gets the experience to drop.
- getExpToDrop() - Method in interface io.artificial.enchantments.api.loot.LootContext
-
Gets the experience points to drop.
- getFace() - Method in class io.artificial.enchantments.api.event.ToolEvent
-
Gets the block face being interacted with.
- getFinalDamage() - Method in class io.artificial.enchantments.api.event.CombatEvent
-
Gets the final damage after modifications.
- getFishingRod() - Method in interface io.artificial.enchantments.api.context.FishingContext
-
Gets the fishing rod item.
- getFishingRod() - Method in class io.artificial.enchantments.api.event.FishingEvent
-
Gets the fishing rod item.
- getFoodLevel() - Method in interface io.artificial.enchantments.api.context.ConsumableContext
-
Gets the food level change from this item.
- getFoodLevel() - Method in class io.artificial.enchantments.api.event.ConsumableEvent
-
Gets the food level change.
- getForce() - Method in interface io.artificial.enchantments.api.context.WeaponContext
-
Gets the force/draw strength of the shot (0.0 to 1.0).
- getForce() - Method in class io.artificial.enchantments.api.event.WeaponEvent
-
Gets the force of the shot.
- getForMaterial(Material) - Method in class io.artificial.enchantments.internal.EnchantmentRegistryManager
-
Gets all enchantments applicable to a specific material.
- getHand() - Method in interface io.artificial.enchantments.api.context.InteractionContext
-
Gets the hand used for the interaction.
- getHand() - Method in class io.artificial.enchantments.api.event.InteractionEvent
-
Gets the hand used.
- getHandlerList() - Static method in class io.artificial.enchantments.api.event.CombatEvent
-
Gets the handler list for this event type.
- getHandlerList() - Static method in class io.artificial.enchantments.api.event.ConsumableEvent
-
Gets the handler list for this event type.
- getHandlerList() - Static method in class io.artificial.enchantments.api.event.EnchantEffectEvent
-
Gets the handler list for this event type.
- getHandlerList() - Static method in class io.artificial.enchantments.api.event.FishingEvent
-
Gets the handler list for this event type.
- getHandlerList() - Static method in class io.artificial.enchantments.api.event.InteractionEvent
-
Gets the handler list for this event type.
- getHandlerList() - Static method in class io.artificial.enchantments.api.event.ItemEvent
-
Gets the handler list for this event type.
- getHandlerList() - Static method in class io.artificial.enchantments.api.event.ProjectileEvent
-
Gets the handler list for this event type.
- getHandlerList() - Static method in class io.artificial.enchantments.api.event.TickEvent
-
Gets the handler list for this event type.
- getHandlerList() - Static method in class io.artificial.enchantments.api.event.ToolEvent
-
Gets the handler list for this event type.
- getHandlerList() - Static method in class io.artificial.enchantments.api.event.WeaponEvent
-
Gets the handler list for this event type.
- getHandlerList() - Static method in class io.artificial.enchantments.internal.TickDispatchEvent
-
Returns the shared handler list required by Bukkit events.
- getHandlers() - Method in class io.artificial.enchantments.api.event.CombatEvent
- getHandlers() - Method in class io.artificial.enchantments.api.event.ConsumableEvent
- getHandlers() - Method in class io.artificial.enchantments.api.event.EnchantEffectEvent
- getHandlers() - Method in class io.artificial.enchantments.api.event.FishingEvent
- getHandlers() - Method in class io.artificial.enchantments.api.event.InteractionEvent
- getHandlers() - Method in class io.artificial.enchantments.api.event.ItemEvent
- getHandlers() - Method in class io.artificial.enchantments.api.event.ProjectileEvent
- getHandlers() - Method in class io.artificial.enchantments.api.event.TickEvent
- getHandlers() - Method in class io.artificial.enchantments.api.event.ToolEvent
- getHandlers() - Method in class io.artificial.enchantments.api.event.WeaponEvent
- getHandlers() - Method in class io.artificial.enchantments.internal.TickDispatchEvent
- getHealthRestored() - Method in interface io.artificial.enchantments.api.context.ConsumableContext
-
Gets the health restored by this item.
- getHealthRestored() - Method in class io.artificial.enchantments.api.event.ConsumableEvent
-
Gets the health restored.
- getHeldDuration() - Method in interface io.artificial.enchantments.api.context.TickContext
-
Gets the duration the item has been held in milliseconds.
- getHeldDuration() - Method in class io.artificial.enchantments.api.event.TickEvent
-
Gets the duration the item has been held in ticks.
- getHeldDuration() - Method in class io.artificial.enchantments.internal.TickDispatchEvent
-
Returns the consecutive scan duration represented in milliseconds.
- getHighestLevel(ItemStack) - Method in interface io.artificial.enchantments.api.query.ItemEnchantmentQuery
-
Gets the highest enchantment level on an item.
- getHighestLevel(ItemStack) - Method in class io.artificial.enchantments.internal.query.ItemEnchantmentQueryImpl
- getHitBlock() - Method in interface io.artificial.enchantments.api.context.ProjectileContext
-
Gets the block hit by the projectile, if any.
- getHitBlock() - Method in class io.artificial.enchantments.api.event.ProjectileEvent
-
Gets the block hit by the projectile.
- getHitEntity() - Method in interface io.artificial.enchantments.api.context.ProjectileContext
-
Gets the entity hit by the projectile, if any.
- getHitEntity() - Method in class io.artificial.enchantments.api.event.ProjectileEvent
-
Gets the entity hit by the projectile.
- getHitPosition() - Method in interface io.artificial.enchantments.api.context.ProjectileContext
-
Gets the exact position where the projectile hit.
- getHitPosition() - Method in class io.artificial.enchantments.api.event.ProjectileEvent
-
Gets the precise hit position.
- getHook() - Method in interface io.artificial.enchantments.api.context.FishingContext
-
Gets the fish hook entity.
- getHook() - Method in class io.artificial.enchantments.api.event.FishingEvent
-
Gets the fish hook entity.
- getIncrement() - Method in class io.artificial.enchantments.api.scaling.LinearScaling
-
Gets the increment added per level.
- getInstance() - Static method in interface io.artificial.enchantments.api.ArtificialEnchantmentsAPI
-
Gets the shared API instance after the library has been initialized.
- getInstance() - Static method in class io.artificial.enchantments.internal.ArtificialEnchantmentsAPIImpl
-
Gets the shared API instance.
- getInstance() - Static method in class io.artificial.enchantments.internal.EnchantmentRegistryManager
-
Gets the singleton instance of the registry manager.
- getInstance() - Static method in class io.artificial.enchantments.internal.PaperRegistryBridge
-
Gets the singleton instance of the registry bridge.
- getInt(ItemStack, String, int) - Method in class io.artificial.enchantments.internal.NbtMetadataStorage
-
Gets an integer metadata value.
- getInteractionPoint() - Method in interface io.artificial.enchantments.api.context.InteractionContext
-
Gets the exact interaction point on the block/entity.
- getInteractionPoint() - Method in class io.artificial.enchantments.api.event.InteractionEvent
-
Gets the precise interaction point.
- getItem() - Method in interface io.artificial.enchantments.api.context.ConsumableContext
-
Gets the item being consumed.
- getItem() - Method in interface io.artificial.enchantments.api.context.InteractionContext
-
Gets the item used for the interaction.
- getItem() - Method in interface io.artificial.enchantments.api.context.ItemContext
-
Gets the item being processed.
- getItem() - Method in interface io.artificial.enchantments.api.context.TickContext
-
Gets the item being held or worn.
- getItem() - Method in class io.artificial.enchantments.api.event.ConsumableEvent
-
Gets the item being consumed.
- getItem() - Method in class io.artificial.enchantments.api.event.InteractionEvent
-
Gets the item used.
- getItem() - Method in class io.artificial.enchantments.api.event.ItemEvent
-
Gets the item.
- getItem() - Method in class io.artificial.enchantments.api.event.TickEvent
-
Gets the enchanted item.
- getItem() - Method in class io.artificial.enchantments.internal.TickDispatchEvent
-
Returns a snapshot of the item in the scanned slot.
- getItemStorage() - Method in interface io.artificial.enchantments.api.ArtificialEnchantmentsAPI
-
Gets the item storage for direct access to item enchantment operations.
- getItemStorage() - Method in class io.artificial.enchantments.internal.ArtificialEnchantmentsAPIImpl
- getKey() - Method in interface io.artificial.enchantments.api.EnchantmentDefinition
-
Gets the unique namespaced key for this enchantment.
- getKey() - Method in class io.artificial.enchantments.internal.EnchantmentDefinitionImpl
- getKeys(ItemStack) - Method in class io.artificial.enchantments.internal.NbtMetadataStorage
-
Gets all metadata keys.
- getLastExpToDrop() - Method in class io.artificial.enchantments.internal.loot.BlockBreakLootHandler
-
Gets the last processed exp to drop value.
- getLaunchLocation() - Method in interface io.artificial.enchantments.api.context.ProjectileContext
-
Gets the location where the projectile was launched.
- getLaunchLocation() - Method in class io.artificial.enchantments.api.event.ProjectileEvent
-
Gets the location where the projectile was launched.
- getLevel() - Method in interface io.artificial.enchantments.api.context.EffectContext
-
Gets the enchantment level applied to the item.
- getLevel() - Method in class io.artificial.enchantments.api.event.EnchantEffectEvent
-
Gets the level of the triggering enchantment.
- getLevel() - Method in interface io.artificial.enchantments.api.loot.LootContext
-
Gets the enchantment level.
- getLevel() - Method in class io.artificial.enchantments.internal.EffectExecutionContext
-
Gets the enchantment level.
- getLevel() - Method in class io.artificial.enchantments.optional.packetevents.ItemVisualProcessor.VisualContext
-
Gets the enchantment level.
- getLevel() - Method in class io.artificial.enchantments.optional.packetevents.PacketEventsAdapter.VisualContext
-
Gets the enchantment level.
- getLevel(ItemStack, EnchantmentDefinition) - Method in interface io.artificial.enchantments.api.query.ItemEnchantmentQuery
-
Gets the level of a specific enchantment on an item.
- getLevel(ItemStack, EnchantmentDefinition) - Method in class io.artificial.enchantments.internal.query.ItemEnchantmentQueryImpl
- getLevel(ItemStack, NamespacedKey) - Method in interface io.artificial.enchantments.api.query.ItemEnchantmentQuery
-
Gets the level of an enchantment by its registry key.
- getLevel(ItemStack, NamespacedKey) - Method in class io.artificial.enchantments.internal.query.ItemEnchantmentQueryImpl
- getLocation() - Method in interface io.artificial.enchantments.api.context.CombatContext
-
Gets the location where the damage occurred.
- getLocation() - Method in interface io.artificial.enchantments.api.context.ConsumableContext
-
Gets the location where consumption occurred.
- getLocation() - Method in interface io.artificial.enchantments.api.context.FishingContext
-
Gets the location of the hook.
- getLocation() - Method in interface io.artificial.enchantments.api.context.InteractionContext
-
Gets the interaction location.
- getLocation() - Method in interface io.artificial.enchantments.api.context.ItemContext
-
Gets the location of the item.
- getLocation() - Method in interface io.artificial.enchantments.api.context.TickContext
-
Gets the player's current location.
- getLocation() - Method in interface io.artificial.enchantments.api.context.ToolContext
-
Gets the location of the affected block.
- getLocation() - Method in interface io.artificial.enchantments.api.context.WeaponContext
-
Gets the location where the weapon was used.
- getLocation() - Method in class io.artificial.enchantments.api.event.FishingEvent
-
Gets the location.
- getLocation() - Method in class io.artificial.enchantments.api.event.InteractionEvent
-
Gets the interaction location.
- getLocation() - Method in class io.artificial.enchantments.api.event.WeaponEvent
-
Gets the location of the event.
- getLocation() - Method in interface io.artificial.enchantments.api.loot.LootContext
-
Gets the location where drops will spawn.
- getLogPrefix() - Method in class io.artificial.enchantments.internal.EffectExecutionContext
-
Gets a quick log message prefix for use in logging.
- getLootModifierRegistry() - Method in interface io.artificial.enchantments.api.ArtificialEnchantmentsAPI
-
Gets the loot modifier registry for block-break loot modifications.
- getLootModifierRegistry() - Method in class io.artificial.enchantments.internal.ArtificialEnchantmentsAPIImpl
- getLorePrefix() - Method in class io.artificial.enchantments.optional.packetevents.PacketEventsAdapter.PlayerVisualPreferences
-
Gets the lore prefix string.
- getLureSpeed() - Method in interface io.artificial.enchantments.api.context.FishingContext
-
Gets the current lure speed.
- getLureSpeed() - Method in class io.artificial.enchantments.api.event.FishingEvent
-
Gets the lure speed.
- getMaterial() - Method in class io.artificial.enchantments.api.event.ConsumableEvent
-
Gets the material of the consumed item.
- getMaxBookshelves() - Method in interface io.artificial.enchantments.api.enchanttable.EnchantTableConfiguration
-
Gets the maximum number of bookshelves for this enchantment.
- getMaxBookshelves() - Method in class io.artificial.enchantments.internal.enchanttable.EnchantTableConfigurationImpl
-
Gets the maximum number of bookshelves for this enchantment.
- getMaxCost() - Static method in class io.artificial.enchantments.internal.anvil.AnvilCostCalculator
-
Gets the maximum allowed anvil cost.
- getMaxDurability() - Method in interface io.artificial.enchantments.api.context.ItemContext
-
Gets the maximum durability of the item.
- getMaxDurability() - Method in class io.artificial.enchantments.api.event.ItemEvent
-
Gets the maximum durability.
- getMaxLevel() - Method in interface io.artificial.enchantments.api.EnchantmentDefinition
-
Gets the maximum valid level for this enchantment.
- getMaxLevel() - Method in class io.artificial.enchantments.internal.EnchantmentDefinitionImpl
- getMaxValue() - Method in class io.artificial.enchantments.api.scaling.DiminishingScaling
-
Gets the maximum asymptotic value.
- getMetadata(String) - Method in interface io.artificial.enchantments.api.scaling.ScalingAlgorithmRegistry
-
Gets the metadata for a registered algorithm.
- getMetadata(String) - Method in class io.artificial.enchantments.internal.scaling.ScalingAlgorithmRegistryImpl
- getMinBookshelves() - Method in interface io.artificial.enchantments.api.enchanttable.EnchantTableConfiguration
-
Gets the minimum number of bookshelves required for this enchantment.
- getMinBookshelves() - Method in class io.artificial.enchantments.internal.enchanttable.EnchantTableConfigurationImpl
-
Gets the minimum number of bookshelves required for this enchantment.
- getMinLevel() - Method in interface io.artificial.enchantments.api.EnchantmentDefinition
-
Gets the minimum valid level for this enchantment.
- getMinLevel() - Method in class io.artificial.enchantments.internal.EnchantmentDefinitionImpl
- getModifierCount(EnchantmentDefinition) - Method in interface io.artificial.enchantments.api.loot.LootModifierRegistry
-
Gets the number of modifiers registered for an enchantment.
- getModifierCount(EnchantmentDefinition) - Method in class io.artificial.enchantments.internal.loot.LootModifierRegistryImpl
- getModifiers(EnchantmentDefinition) - Method in interface io.artificial.enchantments.api.loot.LootModifierRegistry
-
Gets all loot modifiers registered for an enchantment.
- getModifiers(EnchantmentDefinition) - Method in class io.artificial.enchantments.internal.loot.LootModifierRegistryImpl
- getMultiplier() - Method in class io.artificial.enchantments.api.scaling.ExponentialScaling
-
Gets the multiplier applied per level.
- getName() - Method in class io.artificial.enchantments.api.scaling.ScalingAlgorithmMetadata
-
Gets the algorithm name.
- getNativeEnchantment(NamespacedKey) - Method in class io.artificial.enchantments.internal.PaperRegistryBridge
-
Gets the native Paper Enchantment by its key.
- getOverrideComponent() - Method in class io.artificial.enchantments.optional.packetevents.ItemVisualProcessor.VisualContext
-
Gets the override component if set.
- getOwningPlugin() - Method in interface io.artificial.enchantments.internal.FoliaScheduler.ScheduledTask
-
Returns the plugin that owns this task.
- getPacketEventsAdapter() - Method in class io.artificial.enchantments.ArtificialEnchantmentsPlugin
-
Gets the PacketEvents adapter if available and enabled.
- getParameterCount() - Method in interface io.artificial.enchantments.api.scaling.ScalingAlgorithm
-
Gets the number of parameters this algorithm requires.
- getParameterCount() - Method in class io.artificial.enchantments.api.scaling.ScalingAlgorithmMetadata
-
Gets the number of parameters required.
- getParameterNames() - Method in interface io.artificial.enchantments.api.scaling.ScalingAlgorithm
-
Gets the names of parameters for this algorithm.
- getParameterNames() - Method in class io.artificial.enchantments.api.scaling.ScalingAlgorithmMetadata
-
Gets the parameter names.
- getPendingRegistrations() - Method in class io.artificial.enchantments.internal.EnchantmentRegistryManager
-
Returns all enchantments pending native registration.
- getPierceLevel() - Method in interface io.artificial.enchantments.api.context.ProjectileContext
-
Gets the current pierce level.
- getPierceLevel() - Method in interface io.artificial.enchantments.api.context.WeaponContext
-
Gets the pierce level for this projectile.
- getPierceLevel() - Method in class io.artificial.enchantments.api.event.ProjectileEvent
-
Gets the pierce level.
- getPierceLevel() - Method in class io.artificial.enchantments.api.event.WeaponEvent
-
Gets the pierce level.
- getPlayer() - Method in interface io.artificial.enchantments.api.context.ConsumableContext
-
Gets the player consuming the item.
- getPlayer() - Method in interface io.artificial.enchantments.api.context.FishingContext
-
Gets the player fishing.
- getPlayer() - Method in interface io.artificial.enchantments.api.context.InteractionContext
-
Gets the player performing the interaction.
- getPlayer() - Method in interface io.artificial.enchantments.api.context.ItemContext
-
Gets the player holding the item.
- getPlayer() - Method in interface io.artificial.enchantments.api.context.TickContext
-
Gets the player holding or wearing the item.
- getPlayer() - Method in interface io.artificial.enchantments.api.context.ToolContext
-
Gets the player using the tool.
- getPlayer() - Method in interface io.artificial.enchantments.api.context.WeaponContext
-
Gets the player using the weapon.
- getPlayer() - Method in class io.artificial.enchantments.api.event.ConsumableEvent
-
Gets the player consuming the item.
- getPlayer() - Method in class io.artificial.enchantments.api.event.FishingEvent
-
Gets the player fishing.
- getPlayer() - Method in class io.artificial.enchantments.api.event.InteractionEvent
-
Gets the player interacting.
- getPlayer() - Method in class io.artificial.enchantments.api.event.ItemEvent
-
Gets the player associated with the item.
- getPlayer() - Method in class io.artificial.enchantments.api.event.TickEvent
-
Gets the player holding or wearing the item.
- getPlayer() - Method in class io.artificial.enchantments.api.event.ToolEvent
-
Gets the player using the tool.
- getPlayer() - Method in class io.artificial.enchantments.api.event.WeaponEvent
-
Gets the player using the weapon.
- getPlayer() - Method in interface io.artificial.enchantments.api.loot.LootContext
-
Gets the player breaking the block.
- getPlayer() - Method in class io.artificial.enchantments.internal.TickDispatchEvent
-
Returns the player currently being scanned.
- getPlayerPreferences(UUID) - Method in class io.artificial.enchantments.optional.packetevents.PacketEventsAdapter
-
Gets the visual preferences for a player.
- getPlugin() - Method in interface io.artificial.enchantments.api.ArtificialEnchantmentsAPI
-
Gets the plugin that owns this API instance.
- getPlugin() - Method in class io.artificial.enchantments.internal.ArtificialEnchantmentsAPIImpl
- getPlugin() - Method in class io.artificial.enchantments.optional.packetevents.PacketEventsAdapter
-
Gets the plugin instance.
- getPriority() - Method in interface io.artificial.enchantments.api.EnchantmentEventBus.EventSubscription
-
Gets the listener priority.
- getProjectile() - Method in interface io.artificial.enchantments.api.context.ProjectileContext
-
Gets the projectile entity.
- getProjectile() - Method in interface io.artificial.enchantments.api.context.WeaponContext
-
Gets the projectile being launched.
- getProjectile() - Method in class io.artificial.enchantments.api.event.ProjectileEvent
-
Gets the projectile entity.
- getProjectile() - Method in class io.artificial.enchantments.api.event.WeaponEvent
-
Gets the projectile.
- getRarity() - Method in interface io.artificial.enchantments.api.EnchantmentDefinition
-
Gets the rarity tier of this enchantment.
- getRarity() - Method in class io.artificial.enchantments.internal.EnchantmentDefinitionImpl
- getRegisteredNames() - Method in interface io.artificial.enchantments.api.scaling.ScalingAlgorithmRegistry
-
Gets all registered algorithm names.
- getRegisteredNames() - Method in class io.artificial.enchantments.internal.scaling.ScalingAlgorithmRegistryImpl
- getRegistry() - Static method in class io.artificial.enchantments.internal.scaling.ScalingRegistryHolder
-
Gets the registry instance.
- getSaturation() - Method in interface io.artificial.enchantments.api.context.ConsumableContext
-
Gets the saturation change from this item.
- getSaturation() - Method in class io.artificial.enchantments.api.event.ConsumableEvent
-
Gets the saturation change.
- getScaledValue() - Method in interface io.artificial.enchantments.api.context.EffectContext
-
Gets the scaled value calculated from the enchantment level.
- getScaledValue() - Method in class io.artificial.enchantments.api.event.EnchantEffectEvent
-
Gets the scaled value from the enchantment's scaling algorithm.
- getScaledValue() - Method in interface io.artificial.enchantments.api.loot.LootContext
-
Gets the scaled value calculated from the enchantment level.
- getScaling() - Method in interface io.artificial.enchantments.api.EnchantmentDefinition
-
Gets the scaling formula for calculating effect values.
- getScaling() - Method in class io.artificial.enchantments.internal.EnchantmentDefinitionImpl
- getScalingFactor() - Method in class io.artificial.enchantments.api.scaling.DiminishingScaling
-
Gets the scaling factor.
- getScalingRegistry() - Method in interface io.artificial.enchantments.api.ArtificialEnchantmentsAPI
-
Gets the scaling algorithm registry.
- getScalingRegistry() - Method in class io.artificial.enchantments.internal.ArtificialEnchantmentsAPIImpl
- getScheduler() - Method in interface io.artificial.enchantments.api.ArtificialEnchantmentsAPI
-
Gets the Folia-compatible scheduler for thread-safe task execution.
- getScheduler() - Method in class io.artificial.enchantments.internal.ArtificialEnchantmentsAPIImpl
- getScheduler() - Method in class io.artificial.enchantments.internal.EffectDispatchSpine
-
Returns the FoliaScheduler for scheduling tasks.
- getShooter() - Method in interface io.artificial.enchantments.api.context.ProjectileContext
-
Gets the entity that shot the projectile.
- getShooter() - Method in class io.artificial.enchantments.api.event.ProjectileEvent
-
Gets the entity that shot the projectile.
- getSlot() - Method in interface io.artificial.enchantments.api.context.ItemContext
-
Gets the equipment slot where the item is held.
- getSlot() - Method in interface io.artificial.enchantments.api.context.TickContext
-
Gets the equipment slot where the item is located.
- getSlot() - Method in class io.artificial.enchantments.api.event.ItemEvent
-
Gets the equipment slot.
- getSlot() - Method in class io.artificial.enchantments.api.event.TickEvent
-
Gets the equipment slot.
- getSlot() - Method in class io.artificial.enchantments.internal.TickDispatchEvent
-
Returns the scanned equipment slot.
- getState() - Method in class io.artificial.enchantments.api.event.FishingEvent
-
Gets the fishing state.
- getSteps() - Method in class io.artificial.enchantments.api.scaling.SteppedScaling
-
Gets an unmodifiable view of the defined steps.
- getString(ItemStack, String) - Method in class io.artificial.enchantments.internal.NbtMetadataStorage
-
Gets a string metadata value.
- getTableMaxLevel() - Method in interface io.artificial.enchantments.api.enchanttable.EnchantTableConfiguration
-
Gets the maximum enchantment level that can appear in the table.
- getTableMaxLevel() - Method in class io.artificial.enchantments.internal.enchanttable.EnchantTableConfigurationImpl
-
Gets the maximum enchantment level that can appear in the table.
- getTableMinLevel() - Method in interface io.artificial.enchantments.api.enchanttable.EnchantTableConfiguration
-
Gets the minimum enchantment level that can appear in the table.
- getTableMinLevel() - Method in class io.artificial.enchantments.internal.enchanttable.EnchantTableConfigurationImpl
-
Gets the minimum enchantment level that can appear in the table.
- getTarget() - Method in interface io.artificial.enchantments.api.context.WeaponContext
-
Gets the target entity, if any.
- getTarget() - Method in class io.artificial.enchantments.api.event.WeaponEvent
-
Gets the target entity.
- getTargetEntity() - Method in interface io.artificial.enchantments.api.context.InteractionContext
-
Gets the entity being interacted with, if any.
- getTargetEntity() - Method in class io.artificial.enchantments.api.event.InteractionEvent
-
Gets the entity clicked.
- getTickCount() - Method in interface io.artificial.enchantments.api.context.TickContext
-
Gets the number of ticks this item has been held/worn.
- getTickCount() - Method in class io.artificial.enchantments.api.event.TickEvent
-
Gets the tick counter.
- getTickCount() - Method in class io.artificial.enchantments.internal.TickDispatchEvent
-
Returns the consecutive scan duration represented in ticks.
- getTool() - Method in interface io.artificial.enchantments.api.context.ToolContext
-
Gets the tool item.
- getTool() - Method in class io.artificial.enchantments.api.event.ToolEvent
-
Gets the tool item.
- getTool() - Method in interface io.artificial.enchantments.api.loot.LootContext
-
Gets the tool item that triggered this loot modification.
- getToolType() - Method in class io.artificial.enchantments.api.event.ToolEvent
-
Gets the tool interaction type.
- getTotalEnchantmentLevel(ItemStack) - Method in interface io.artificial.enchantments.api.query.ItemEnchantmentQuery
-
Gets the total level of all enchantments on an item.
- getTotalEnchantmentLevel(ItemStack) - Method in class io.artificial.enchantments.internal.query.ItemEnchantmentQueryImpl
- getTotalModifierCount() - Method in class io.artificial.enchantments.internal.loot.LootModifierRegistryImpl
-
Gets the total number of registered modifiers across all enchantments.
- getTotalValue(LivingEntity, Attribute) - Static method in class io.artificial.enchantments.internal.AttributeModifierHelper
-
Gets the total value of an attribute including all modifiers.
- getValidationErrors() - Method in interface io.artificial.enchantments.api.EnchantmentDefinition.Builder
-
Gets all validation errors for the current builder state.
- getValidationErrors() - Method in class io.artificial.enchantments.internal.EnchantmentDefinitionBuilder
- getValue() - Method in class io.artificial.enchantments.api.scaling.ConstantScaling
-
Gets the constant value.
- getVelocity() - Method in interface io.artificial.enchantments.api.context.ProjectileContext
-
Gets the current projectile velocity.
- getVelocity() - Method in class io.artificial.enchantments.api.event.ProjectileEvent
-
Gets the projectile velocity.
- getVersion() - Method in interface io.artificial.enchantments.api.ArtificialEnchantmentsAPI
-
Gets the library version string.
- getVersion() - Method in class io.artificial.enchantments.internal.ArtificialEnchantmentsAPIImpl
- getVictim() - Method in interface io.artificial.enchantments.api.context.CombatContext
-
Gets the victim receiving damage.
- getVictim() - Method in class io.artificial.enchantments.api.event.CombatEvent
-
Gets the victim receiving damage.
- getVisualProcessor() - Method in class io.artificial.enchantments.optional.packetevents.PacketEventsAdapter
-
Gets the visual processor for customizing item display.
- getWaitTime() - Method in interface io.artificial.enchantments.api.context.FishingContext
-
Gets the current wait time.
- getWaitTime() - Method in class io.artificial.enchantments.api.event.FishingEvent
-
Gets the wait time in ticks.
- getWeapon() - Method in interface io.artificial.enchantments.api.context.CombatContext
-
Gets the weapon used in the attack, if any.
- getWeapon() - Method in interface io.artificial.enchantments.api.context.ProjectileContext
-
Gets the weapon used to launch the projectile.
- getWeapon() - Method in interface io.artificial.enchantments.api.context.WeaponContext
-
Gets the weapon item being used.
- getWeapon() - Method in class io.artificial.enchantments.api.event.CombatEvent
-
Gets the weapon used in the attack, if any.
- getWeapon() - Method in class io.artificial.enchantments.api.event.ProjectileEvent
-
Gets the weapon used to launch the projectile.
- getWeapon() - Method in class io.artificial.enchantments.api.event.WeaponEvent
-
Gets the weapon item.
- getWeightMultiplier() - Method in interface io.artificial.enchantments.api.enchanttable.EnchantTableConfiguration
-
Gets the weight multiplier for this enchantment in the table.
- getWeightMultiplier() - Method in class io.artificial.enchantments.internal.enchanttable.EnchantTableConfigurationImpl
-
Gets the weight multiplier for this enchantment in the table.
H
- hasAlgorithm(String) - Method in interface io.artificial.enchantments.api.scaling.ScalingAlgorithmRegistry
-
Checks if an algorithm with the specified name is registered.
- hasAlgorithm(String) - Method in class io.artificial.enchantments.internal.scaling.ScalingAlgorithmRegistryImpl
- hasAllEnchantments(ItemStack, EnchantmentDefinition...) - Method in interface io.artificial.enchantments.api.query.ItemEnchantmentQuery
-
Checks if multiple enchantments are present on an item.
- hasAllEnchantments(ItemStack, EnchantmentDefinition...) - Method in class io.artificial.enchantments.internal.query.ItemEnchantmentQueryImpl
- hasAnyEnchantment(ItemStack, EnchantmentDefinition...) - Method in interface io.artificial.enchantments.api.query.ItemEnchantmentQuery
-
Checks if any of the specified enchantments are present on an item.
- hasAnyEnchantment(ItemStack, EnchantmentDefinition...) - Method in class io.artificial.enchantments.internal.query.ItemEnchantmentQueryImpl
- hasAnyMetadata(ItemStack) - Method in class io.artificial.enchantments.internal.NbtMetadataStorage
-
Checks if any auxiliary metadata exists.
- hasAuxiliaryMetadata(ItemStack, String) - Method in interface io.artificial.enchantments.api.ItemStorage
-
Checks if auxiliary metadata with the given key exists.
- hasAuxiliaryMetadata(ItemStack, String) - Method in class io.artificial.enchantments.internal.NativeFirstItemStorage
- hasCaughtEntity() - Method in interface io.artificial.enchantments.api.context.FishingContext
-
Checks if an entity has been caught.
- hasCaughtEntity() - Method in class io.artificial.enchantments.api.event.FishingEvent
-
Checks if an entity was caught.
- hasCaughtItem() - Method in interface io.artificial.enchantments.api.context.FishingContext
-
Checks if an item has been caught.
- hasCaughtItem() - Method in class io.artificial.enchantments.api.event.FishingEvent
-
Checks if an item was caught.
- hasCustomEnchantments(ItemStack) - Method in interface io.artificial.enchantments.api.book.EnchantedBook
-
Checks if an enchanted book contains custom (artificial) enchantments.
- hasCustomEnchantments(ItemStack) - Method in class io.artificial.enchantments.internal.book.EnchantedBookImpl
-
Checks if an enchanted book contains custom (artificial) enchantments.
- hasEnchantment(String) - Method in interface io.artificial.enchantments.api.loot.LootContext
-
Checks if the tool has a specific enchantment.
- hasEnchantment(ItemStack, EnchantmentDefinition) - Method in interface io.artificial.enchantments.api.ArtificialEnchantmentsAPI
-
Checks if an item has a specific enchantment.
- hasEnchantment(ItemStack, EnchantmentDefinition) - Method in interface io.artificial.enchantments.api.book.EnchantedBook
-
Checks if a specific artificial enchantment exists on a book.
- hasEnchantment(ItemStack, EnchantmentDefinition) - Method in interface io.artificial.enchantments.api.ItemStorage
-
Checks if an item has a specific enchantment.
- hasEnchantment(ItemStack, EnchantmentDefinition) - Method in class io.artificial.enchantments.internal.ArtificialEnchantmentsAPIImpl
- hasEnchantment(ItemStack, EnchantmentDefinition) - Method in class io.artificial.enchantments.internal.book.EnchantedBookImpl
-
Checks if a specific artificial enchantment exists on a book.
- hasEnchantment(ItemStack, EnchantmentDefinition) - Method in class io.artificial.enchantments.internal.ItemEnchantmentService
-
Checks if an item has a specific enchantment.
- hasEnchantment(ItemStack, EnchantmentDefinition) - Method in class io.artificial.enchantments.internal.NativeFirstItemStorage
- hasEnchantment(ItemStack, NamespacedKey) - Method in interface io.artificial.enchantments.api.ArtificialEnchantmentsAPI
-
Checks if an item has an enchantment by its key.
- hasEnchantment(ItemStack, NamespacedKey) - Method in interface io.artificial.enchantments.api.book.EnchantedBook
-
Checks if an artificial enchantment exists by its key.
- hasEnchantment(ItemStack, NamespacedKey) - Method in interface io.artificial.enchantments.api.ItemStorage
-
Checks if an item has an enchantment by its registry key.
- hasEnchantment(ItemStack, NamespacedKey) - Method in class io.artificial.enchantments.internal.ArtificialEnchantmentsAPIImpl
- hasEnchantment(ItemStack, NamespacedKey) - Method in class io.artificial.enchantments.internal.book.EnchantedBookImpl
-
Checks if an artificial enchantment exists by its key.
- hasEnchantment(ItemStack, NamespacedKey) - Method in class io.artificial.enchantments.internal.ItemEnchantmentService
-
Checks if an item has an enchantment by its registry key.
- hasEnchantment(ItemStack, NamespacedKey) - Method in class io.artificial.enchantments.internal.NativeFirstItemStorage
- hasEnchantment(ItemStack, EnchantmentDefinition) - Method in interface io.artificial.enchantments.api.query.ItemEnchantmentQuery
-
Checks if an item has a specific enchantment.
- hasEnchantment(ItemStack, EnchantmentDefinition) - Method in class io.artificial.enchantments.internal.query.ItemEnchantmentQueryImpl
- hasEnchantment(ItemStack, NamespacedKey) - Method in interface io.artificial.enchantments.api.query.ItemEnchantmentQuery
-
Checks if an item has an enchantment by its registry key.
- hasEnchantment(ItemStack, NamespacedKey) - Method in class io.artificial.enchantments.internal.query.ItemEnchantmentQueryImpl
- hasGravity() - Method in interface io.artificial.enchantments.api.context.ProjectileContext
-
Checks if gravity affects the projectile.
- hasGravity() - Method in class io.artificial.enchantments.api.event.ProjectileEvent
-
Checks if the projectile has gravity.
- hashCode() - Method in record class io.artificial.enchantments.internal.anvil.AnvilCombinationLogic.CombinationResult
-
Returns a hash code value for this object.
- hashCode() - Method in class io.artificial.enchantments.internal.EffectExecutionContext
- hashCode() - Method in class io.artificial.enchantments.internal.EnchantmentDefinitionImpl
- hashCode() - Method in record class io.artificial.enchantments.internal.enchanttable.EnchantOfferGenerator.GeneratedOffer
-
Returns a hash code value for this object.
- hasHitBlock() - Method in interface io.artificial.enchantments.api.context.ProjectileContext
-
Checks if the projectile hit a block.
- hasHitBlock() - Method in class io.artificial.enchantments.api.event.ProjectileEvent
-
Checks if the projectile hit a block.
- hasHitEntity() - Method in interface io.artificial.enchantments.api.context.ProjectileContext
-
Checks if the projectile hit an entity.
- hasHitEntity() - Method in class io.artificial.enchantments.api.event.ProjectileEvent
-
Checks if the projectile hit an entity.
- hasKey(ItemStack, String) - Method in class io.artificial.enchantments.internal.NbtMetadataStorage
-
Checks if a metadata key exists.
- hasModifier(EnchantmentDefinition) - Method in interface io.artificial.enchantments.api.loot.LootModifierRegistry
-
Checks if an enchantment has any registered loot modifiers.
- hasModifier(EnchantmentDefinition) - Method in class io.artificial.enchantments.internal.loot.LootModifierRegistryImpl
- HELD_TICK - Enum constant in enum class io.artificial.enchantments.internal.EffectDispatchSpine.DispatchEventType
-
Held item tick.
- hideVanillaEnchantments(boolean) - Method in class io.artificial.enchantments.optional.packetevents.ItemVisualProcessor.PreferencesBuilder
-
Sets whether to hide vanilla enchantments from display.
I
- initialize(ScalingAlgorithmRegistry) - Static method in class io.artificial.enchantments.internal.scaling.ScalingRegistryHolder
-
Initializes the holder with the registry instance.
- InteractionContext - Interface in io.artificial.enchantments.api.context
-
Context for player interaction enchantment effects.
- InteractionEvent - Class in io.artificial.enchantments.api.event
-
Event fired when an interaction-related enchantment effect triggers.
- InteractionEvent(EnchantmentDefinition, int, double, Player, ItemStack, EquipmentSlot, Location, Block, BlockFace, Entity, boolean, boolean, Vector) - Constructor for class io.artificial.enchantments.api.event.InteractionEvent
-
Creates a new
InteractionEvent. - io.artificial.enchantments - package io.artificial.enchantments
- io.artificial.enchantments.api - package io.artificial.enchantments.api
- io.artificial.enchantments.api.book - package io.artificial.enchantments.api.book
- io.artificial.enchantments.api.context - package io.artificial.enchantments.api.context
- io.artificial.enchantments.api.enchanttable - package io.artificial.enchantments.api.enchanttable
- io.artificial.enchantments.api.event - package io.artificial.enchantments.api.event
- io.artificial.enchantments.api.loot - package io.artificial.enchantments.api.loot
- io.artificial.enchantments.api.query - package io.artificial.enchantments.api.query
- io.artificial.enchantments.api.scaling - package io.artificial.enchantments.api.scaling
- io.artificial.enchantments.internal - package io.artificial.enchantments.internal
- io.artificial.enchantments.internal.anvil - package io.artificial.enchantments.internal.anvil
- io.artificial.enchantments.internal.book - package io.artificial.enchantments.internal.book
- io.artificial.enchantments.internal.enchanttable - package io.artificial.enchantments.internal.enchanttable
- io.artificial.enchantments.internal.loot - package io.artificial.enchantments.internal.loot
- io.artificial.enchantments.internal.query - package io.artificial.enchantments.internal.query
- io.artificial.enchantments.internal.scaling - package io.artificial.enchantments.internal.scaling
- io.artificial.enchantments.optional.packetevents - package io.artificial.enchantments.optional.packetevents
- isActive() - Method in interface io.artificial.enchantments.api.EnchantmentEventBus.EventSubscription
-
Checks if this subscription is still active.
- isAlwaysEdible() - Method in interface io.artificial.enchantments.api.context.ConsumableContext
-
Checks if the item is edible even when not hungry.
- isAlwaysEdible() - Method in class io.artificial.enchantments.api.event.ConsumableEvent
-
Checks if the item is edible even when not hungry.
- isAnvilCombination() - Method in interface io.artificial.enchantments.api.context.ItemContext
-
Checks if the item is being combined in an anvil.
- isAnvilCombination() - Method in class io.artificial.enchantments.api.event.ItemEvent
-
Checks if this is an anvil combination.
- isApplicableTo(Material) - Method in interface io.artificial.enchantments.api.EnchantmentDefinition
-
Checks if this enchantment can be applied to a specific material.
- isApplicableTo(Material) - Method in class io.artificial.enchantments.internal.EnchantmentDefinitionImpl
- isApplicableTo(ItemStack) - Method in interface io.artificial.enchantments.api.EnchantmentDefinition
-
Checks if this enchantment can be applied to an item.
- isApplicableTo(ItemStack) - Method in class io.artificial.enchantments.internal.EnchantmentDefinitionImpl
- isApplyLure() - Method in interface io.artificial.enchantments.api.context.FishingContext
-
Checks if lure effects are being applied.
- isApplyLure() - Method in class io.artificial.enchantments.api.event.FishingEvent
-
Checks if lure should be applied.
- isArmor() - Method in interface io.artificial.enchantments.api.context.TickContext
-
Checks if the item is equipped as armor.
- isArmor() - Method in class io.artificial.enchantments.api.event.TickEvent
-
Checks if the item is worn as armor.
- isArmored() - Method in interface io.artificial.enchantments.api.context.CombatContext
-
Checks if the victim is wearing armor.
- isArtificial() - Method in class io.artificial.enchantments.optional.packetevents.ItemVisualProcessor.VisualContext
-
Checks if this is an artificial enchantment.
- isArtificial() - Method in class io.artificial.enchantments.optional.packetevents.PacketEventsAdapter.VisualContext
-
Checks if this is an artificial enchantment.
- isAttack() - Method in class io.artificial.enchantments.api.event.CombatEvent
-
Checks if this is an attack event.
- isBite() - Method in interface io.artificial.enchantments.api.context.FishingContext
-
Checks if a fish has bitten.
- isBite() - Method in class io.artificial.enchantments.api.event.FishingEvent
-
Checks if this is a bite event.
- isBlocking() - Method in interface io.artificial.enchantments.api.context.CombatContext
-
Checks if the victim is blocking with a shield.
- isBlockInteraction() - Method in interface io.artificial.enchantments.api.context.InteractionContext
-
Checks if this is a block interaction.
- isBlockInteraction() - Method in class io.artificial.enchantments.api.event.InteractionEvent
-
Checks if this is a block interaction.
- isBow() - Method in interface io.artificial.enchantments.api.context.WeaponContext
-
Checks if the weapon is a bow.
- isBow() - Method in class io.artificial.enchantments.api.event.WeaponEvent
-
Checks if this is a bow event.
- isBreak() - Method in interface io.artificial.enchantments.api.context.ToolContext
-
Checks if the block is being broken.
- isBuiltIn() - Method in class io.artificial.enchantments.api.scaling.ScalingAlgorithmMetadata
-
Checks if this is a built-in algorithm.
- isCancellable() - Method in interface io.artificial.enchantments.api.context.EffectContext
-
Checks if this context supports cancellation.
- isCancellable() - Method in class io.artificial.enchantments.api.event.EnchantEffectEvent
-
Checks if this event type is cancellable.
- isCancelled() - Method in interface io.artificial.enchantments.api.context.EffectContext
-
Checks if the underlying event has been cancelled.
- isCancelled() - Method in class io.artificial.enchantments.api.event.CombatEvent
- isCancelled() - Method in class io.artificial.enchantments.api.event.ConsumableEvent
- isCancelled() - Method in class io.artificial.enchantments.api.event.FishingEvent
- isCancelled() - Method in class io.artificial.enchantments.api.event.InteractionEvent
- isCancelled() - Method in class io.artificial.enchantments.api.event.ItemEvent
- isCancelled() - Method in class io.artificial.enchantments.api.event.ProjectileEvent
- isCancelled() - Method in class io.artificial.enchantments.api.event.ToolEvent
- isCancelled() - Method in interface io.artificial.enchantments.internal.FoliaScheduler.ScheduledTask
-
Returns true if this task is cancelled.
- isCancelled(Object) - Method in interface io.artificial.enchantments.api.EnchantmentEffectHandler
-
Checks if the given context has been cancelled.
- isCast() - Method in interface io.artificial.enchantments.api.context.FishingContext
-
Checks if the player is casting the line.
- isCast() - Method in class io.artificial.enchantments.api.event.FishingEvent
-
Checks if this is a cast event.
- isCraftingIngredient() - Method in interface io.artificial.enchantments.api.context.ItemContext
-
Checks if the item is being used as a crafting ingredient.
- isCraftingIngredient() - Method in class io.artificial.enchantments.api.event.ItemEvent
-
Checks if this is a crafting ingredient.
- isCritical() - Method in interface io.artificial.enchantments.api.context.CombatContext
-
Checks if the attack was a critical hit.
- isCritical() - Method in interface io.artificial.enchantments.api.context.WeaponContext
-
Checks if this shot is a critical hit.
- isCritical() - Method in class io.artificial.enchantments.api.event.WeaponEvent
-
Checks if this is a critical hit.
- isCrossbow() - Method in interface io.artificial.enchantments.api.context.WeaponContext
-
Checks if the weapon is a crossbow.
- isCrossbow() - Method in class io.artificial.enchantments.api.event.WeaponEvent
-
Checks if this is a crossbow event.
- isCurse() - Method in interface io.artificial.enchantments.api.EnchantmentDefinition
-
Checks if this is a curse enchantment.
- isCurse() - Method in class io.artificial.enchantments.internal.EnchantmentDefinitionImpl
- isDefense() - Method in class io.artificial.enchantments.api.event.CombatEvent
-
Checks if this is a defense event.
- isDiscoverable() - Method in interface io.artificial.enchantments.api.EnchantmentDefinition
-
Checks if this enchantment can be found in loot.
- isDiscoverable() - Method in class io.artificial.enchantments.internal.EnchantmentDefinitionImpl
- isDrink() - Method in interface io.artificial.enchantments.api.context.ConsumableContext
-
Checks if the consumed item is a drink.
- isDrink() - Method in class io.artificial.enchantments.api.event.ConsumableEvent
-
Checks if the consumed item is a drink.
- isDrop() - Method in interface io.artificial.enchantments.api.context.ItemContext
-
Checks if this event is an item drop.
- isDrop() - Method in class io.artificial.enchantments.api.event.ItemEvent
-
Checks if this is a drop event.
- isEnabled() - Method in class io.artificial.enchantments.optional.packetevents.PacketEventsAdapter
-
Checks if the adapter is enabled and actively processing packets.
- isEnabled() - Method in class io.artificial.enchantments.optional.packetevents.PacketEventsAdapter.PlayerVisualPreferences
-
Checks if visual customization is enabled.
- isEnchanted(ItemStack) - Method in interface io.artificial.enchantments.api.query.ItemEnchantmentQuery
-
Checks if an item has any custom enchantment.
- isEnchanted(ItemStack) - Method in class io.artificial.enchantments.internal.query.ItemEnchantmentQueryImpl
- isEnchantedBook(ItemStack) - Method in interface io.artificial.enchantments.api.book.EnchantedBook
-
Checks if an item is an enchanted book (vanilla or custom).
- isEnchantedBook(ItemStack) - Method in class io.artificial.enchantments.internal.book.EnchantedBookImpl
-
Checks if an item is an enchanted book (vanilla or custom).
- isEntityInteraction() - Method in interface io.artificial.enchantments.api.context.InteractionContext
-
Checks if this is an entity interaction.
- isEntityInteraction() - Method in class io.artificial.enchantments.api.event.InteractionEvent
-
Checks if this is an entity interaction.
- isEnvironmentalDamage(EntityDamageEvent.DamageCause) - Static method in class io.artificial.enchantments.internal.DamageModifierHelper
-
Determines if damage type is environmental (fire, lava, drowning, etc.).
- isExplosion() - Method in interface io.artificial.enchantments.api.context.CombatContext
-
Checks if the damage is from an explosion.
- isFolia() - Method in interface io.artificial.enchantments.api.ArtificialEnchantmentsAPI
-
Checks if running on a Folia server.
- isFolia() - Method in class io.artificial.enchantments.internal.ArtificialEnchantmentsAPIImpl
- isFood() - Method in interface io.artificial.enchantments.api.context.ConsumableContext
-
Checks if the consumed item is food.
- isFood() - Method in class io.artificial.enchantments.api.event.ConsumableEvent
-
Checks if the consumed item is food.
- isHeld() - Method in interface io.artificial.enchantments.api.context.TickContext
-
Checks if the item is being held in main or off hand.
- isHeld() - Method in class io.artificial.enchantments.api.event.TickEvent
-
Checks if the item is being held in hand.
- isHeld() - Method in class io.artificial.enchantments.internal.TickDispatchEvent
-
Returns whether the scan came from a held-item slot.
- isHideVanillaEnchantments() - Method in class io.artificial.enchantments.optional.packetevents.PacketEventsAdapter.PlayerVisualPreferences
-
Checks if vanilla enchantments should be hidden.
- isHit() - Method in interface io.artificial.enchantments.api.context.ProjectileContext
-
Checks if this is a hit event.
- isHit() - Method in class io.artificial.enchantments.api.event.ProjectileEvent
-
Checks if this is a projectile hit event.
- isIgnoreCancelled() - Method in interface io.artificial.enchantments.api.EnchantmentEventBus.EventSubscription
-
Checks if this subscription ignores cancelled events.
- isInitialized() - Static method in class io.artificial.enchantments.internal.scaling.ScalingRegistryHolder
-
Checks if the holder has been initialized.
- isInteract() - Method in interface io.artificial.enchantments.api.context.ToolContext
-
Checks if this is a block interact event.
- isLaunch() - Method in interface io.artificial.enchantments.api.context.ProjectileContext
-
Checks if this is a launch event.
- isLaunch() - Method in class io.artificial.enchantments.api.event.ProjectileEvent
-
Checks if this is a projectile launch event.
- isLeftClick() - Method in interface io.artificial.enchantments.api.context.InteractionContext
-
Checks if this is a left-click interaction.
- isLeftClick() - Method in class io.artificial.enchantments.api.event.InteractionEvent
-
Checks if this is a left click.
- isMagic() - Method in interface io.artificial.enchantments.api.context.CombatContext
-
Checks if the damage is magical.
- isMagicalDamage(EntityDamageEvent.DamageCause) - Static method in class io.artificial.enchantments.internal.DamageModifierHelper
-
Determines if damage type is magical (ignores armor).
- isMelee() - Method in interface io.artificial.enchantments.api.context.CombatContext
-
Checks if the damage is from a melee attack.
- isModifyLore() - Method in class io.artificial.enchantments.optional.packetevents.PacketEventsAdapter.PlayerVisualPreferences
-
Checks if lore modification is enabled.
- isNativeRegistered(NamespacedKey) - Method in class io.artificial.enchantments.internal.EnchantmentRegistryManager
-
Checks if an enchantment has been registered to the native registry.
- isNativeRegistered(NamespacedKey) - Method in class io.artificial.enchantments.internal.PaperRegistryBridge
-
Checks if an enchantment is registered in the native Paper registry.
- isNativeRegistrationClosed() - Method in class io.artificial.enchantments.internal.EnchantmentRegistryManager
-
Checks whether native enchantment registration is closed.
- isPacketEventsActive() - Method in class io.artificial.enchantments.ArtificialEnchantmentsPlugin
-
Checks if PacketEvents integration is active.
- isPacketEventsAvailable() - Method in class io.artificial.enchantments.optional.packetevents.PacketEventsAdapter
-
Checks if PacketEvents is present on the server.
- isPhysicalDamage(EntityDamageEvent.DamageCause) - Static method in class io.artificial.enchantments.internal.DamageModifierHelper
-
Determines if damage type is physical (can be reduced by armor).
- isPickup() - Method in interface io.artificial.enchantments.api.context.ItemContext
-
Checks if this event is an item pickup.
- isPickup() - Method in class io.artificial.enchantments.api.event.ItemEvent
-
Checks if this is a pickup event.
- isPlace() - Method in interface io.artificial.enchantments.api.context.ToolContext
-
Checks if a block is being placed.
- isPotion() - Method in interface io.artificial.enchantments.api.context.ConsumableContext
-
Checks if the consumed item is a potion.
- isPotion() - Method in class io.artificial.enchantments.api.event.ConsumableEvent
-
Checks if the consumed item is a potion.
- isPreBreak() - Method in interface io.artificial.enchantments.api.context.ToolContext
-
Checks if this is a pre-break event (before block drops).
- isPrimaryThread() - Method in class io.artificial.enchantments.internal.BukkitFoliaScheduler
-
Returns true if the current thread is the primary server thread.
- isPrimaryThread() - Method in interface io.artificial.enchantments.internal.FoliaScheduler
-
Returns true if the current thread is the primary server thread.
- isProjectile() - Method in interface io.artificial.enchantments.api.context.CombatContext
-
Checks if the damage is from a projectile.
- isReel() - Method in interface io.artificial.enchantments.api.context.FishingContext
-
Checks if the player is reeling in.
- isReel() - Method in class io.artificial.enchantments.api.event.FishingEvent
-
Checks if this is a reel event.
- isRegistered(EnchantmentDefinition, LootModifier) - Method in interface io.artificial.enchantments.api.loot.LootModifierRegistry
-
Checks if a specific modifier is registered for an enchantment.
- isRegistered(EnchantmentDefinition, LootModifier) - Method in class io.artificial.enchantments.internal.loot.LootModifierRegistryImpl
- isRightClick() - Method in interface io.artificial.enchantments.api.context.InteractionContext
-
Checks if this is a right-click interaction.
- isRightClick() - Method in class io.artificial.enchantments.api.event.InteractionEvent
-
Checks if this is a right click.
- isShieldBlock() - Method in interface io.artificial.enchantments.api.context.CombatContext
-
Checks if the damage was fully blocked by a shield.
- isShooting() - Method in interface io.artificial.enchantments.api.context.WeaponContext
-
Checks if the weapon is currently shooting.
- isShooting() - Method in class io.artificial.enchantments.api.event.WeaponEvent
-
Checks if this is a shooting event.
- isShowEnchantmentGlint() - Method in class io.artificial.enchantments.optional.packetevents.PacketEventsAdapter.PlayerVisualPreferences
-
Checks if enchantment glint should be shown.
- isShutdown() - Method in class io.artificial.enchantments.internal.EffectDispatchSpine
-
Check if the spine has been shut down.
- isSneaking() - Method in interface io.artificial.enchantments.api.context.InteractionContext
-
Checks if the player is sneaking during interaction.
- isSneaking() - Method in class io.artificial.enchantments.api.event.InteractionEvent
-
Checks if the player is sneaking.
- isSuccess() - Method in record class io.artificial.enchantments.internal.anvil.AnvilCombinationLogic.CombinationResult
-
Returns whether the combination was successful.
- isThrowing() - Method in interface io.artificial.enchantments.api.context.WeaponContext
-
Checks if the weapon is being thrown.
- isThrowing() - Method in class io.artificial.enchantments.api.event.WeaponEvent
-
Checks if this is a throwing event.
- isTooExpensive(int) - Static method in class io.artificial.enchantments.internal.anvil.AnvilCostCalculator
-
Checks if a cost exceeds the maximum allowed (too expensive).
- isTradeable() - Method in interface io.artificial.enchantments.api.EnchantmentDefinition
-
Checks if this enchantment can be traded with villagers.
- isTradeable() - Method in class io.artificial.enchantments.internal.EnchantmentDefinitionImpl
- isTreasure() - Method in interface io.artificial.enchantments.api.enchanttable.EnchantTableConfiguration
-
Checks if this enchantment respects vanilla treasure/book restrictions.
- isTreasure() - Method in class io.artificial.enchantments.internal.enchanttable.EnchantTableConfigurationImpl
-
Checks if this enchantment respects vanilla treasure/book restrictions.
- isTrident() - Method in interface io.artificial.enchantments.api.context.WeaponContext
-
Checks if the weapon is a trident.
- isTrident() - Method in class io.artificial.enchantments.api.event.WeaponEvent
-
Checks if this is a trident event.
- isValid() - Method in interface io.artificial.enchantments.api.EnchantmentDefinition.Builder
-
Checks if the current builder state is valid.
- ITEM_CONSUME - Enum constant in enum class io.artificial.enchantments.internal.EffectDispatchSpine.DispatchEventType
-
Item consumed.
- ITEM_DROP - Enum constant in enum class io.artificial.enchantments.internal.EffectDispatchSpine.DispatchEventType
-
Item dropped.
- ITEM_PICKUP - Enum constant in enum class io.artificial.enchantments.internal.EffectDispatchSpine.DispatchEventType
-
Item picked up.
- ITEM_USED - Enum constant in enum class io.artificial.enchantments.internal.EffectDispatchSpine.DispatchEventType
-
Item used.
- ItemContext - Interface in io.artificial.enchantments.api.context
-
Context for item-related enchantment effects.
- ItemEnchantmentQuery - Interface in io.artificial.enchantments.api.query
-
A scoped, developer-friendly API for querying enchantments on items.
- ItemEnchantmentQueryImpl - Class in io.artificial.enchantments.internal.query
-
Implementation of
ItemEnchantmentQuerythat delegates toItemStorageandEnchantmentRegistryManager. - ItemEnchantmentQueryImpl(ItemStorage, EnchantmentRegistryManager) - Constructor for class io.artificial.enchantments.internal.query.ItemEnchantmentQueryImpl
-
Creates a new query facade.
- ItemEnchantmentService - Class in io.artificial.enchantments.internal
-
Service for mutating item enchantment state.
- ItemEnchantmentService(ItemStorage, EnchantmentRegistryManager) - Constructor for class io.artificial.enchantments.internal.ItemEnchantmentService
-
Creates a new item enchantment service.
- ItemEvent - Class in io.artificial.enchantments.api.event
-
Event fired when an item-related enchantment effect triggers.
- ItemEvent(EnchantmentDefinition, int, double, Player, ItemStack, EquipmentSlot, boolean, boolean, int, int, int) - Constructor for class io.artificial.enchantments.api.event.ItemEvent
-
Creates a new
ItemEvent. - ItemStorage - Interface in io.artificial.enchantments.api
-
Abstraction for storing and retrieving enchantment data on items.
- ItemVisualProcessor - Class in io.artificial.enchantments.optional.packetevents
-
Processes items for visual customization on a per-player basis.
- ItemVisualProcessor.PreferencesBuilder - Class in io.artificial.enchantments.optional.packetevents
-
Fluent builder for creating visual preferences.
- ItemVisualProcessor.VisualContext - Class in io.artificial.enchantments.optional.packetevents
-
Context object passed to lore formatters.
K
- key(NamespacedKey) - Method in interface io.artificial.enchantments.api.EnchantmentDefinition.Builder
-
Sets the unique namespaced key for this enchantment.
- key(NamespacedKey) - Method in class io.artificial.enchantments.internal.EnchantmentDefinitionBuilder
L
- LENIENT - Enum constant in enum class io.artificial.enchantments.internal.EffectExecutionContext.ExecutionMode
-
Log exceptions and continue with remaining handlers.
- level() - Method in record class io.artificial.enchantments.internal.enchanttable.EnchantOfferGenerator.GeneratedOffer
-
Returns the value of the
levelrecord component. - LevelScaling - Interface in io.artificial.enchantments.api.scaling
-
Functional interface for calculating scaled values from enchantment levels.
- linear(double, double) - Static method in interface io.artificial.enchantments.api.scaling.LevelScaling
-
Creates linear scaling: base + (level - 1) * increment.
- linear(double, double) - Static method in class io.artificial.enchantments.internal.scaling.ScalingUtils
-
Creates a linear scaling formula.
- LinearScaling - Class in io.artificial.enchantments.api.scaling
-
Linear scaling algorithm: base + (level - 1) * increment.
- LinearScaling(double, double) - Constructor for class io.artificial.enchantments.api.scaling.LinearScaling
-
Creates a new linear scaling with the specified base and increment.
- LootContext - Interface in io.artificial.enchantments.api.loot
-
Context for loot modification during block break events.
- LootModifier - Interface in io.artificial.enchantments.api.loot
-
Functional interface for modifying loot drops from enchanted items.
- LootModifierRegistry - Interface in io.artificial.enchantments.api.loot
-
Registry for managing loot modifiers per-enchantment.
- LootModifierRegistryImpl - Class in io.artificial.enchantments.internal.loot
-
Thread-safe implementation of
LootModifierRegistry. - LootModifierRegistryImpl() - Constructor for class io.artificial.enchantments.internal.loot.LootModifierRegistryImpl
-
Creates a new empty registry.
- lore(String...) - Method in interface io.artificial.enchantments.api.book.EnchantedBook.Builder
-
Adds lore lines to the book.
- lore(String...) - Method in class io.artificial.enchantments.internal.book.EnchantedBookBuilderImpl
-
Adds lore lines to the book.
- lorePrefix(String) - Method in class io.artificial.enchantments.optional.packetevents.ItemVisualProcessor.PreferencesBuilder
-
Sets the lore prefix string used for enchantment lines.
M
- markNativeRegistered(NamespacedKey) - Method in class io.artificial.enchantments.internal.EnchantmentRegistryManager
-
Marks an enchantment as successfully registered to native registry.
- markNativeRegistrationClosed() - Method in class io.artificial.enchantments.internal.EnchantmentRegistryManager
-
Marks the native registry composition window as closed.
- maxBookshelves(int) - Method in interface io.artificial.enchantments.api.enchanttable.EnchantTableConfiguration.Builder
-
Sets the maximum bookshelves allowed.
- maxBookshelves(int) - Method in class io.artificial.enchantments.internal.enchanttable.EnchantTableConfigurationBuilder
-
Sets the maximum bookshelves allowed.
- maxLevel(int) - Method in interface io.artificial.enchantments.api.EnchantmentDefinition.Builder
-
Sets the maximum valid level.
- maxLevel(int) - Method in class io.artificial.enchantments.internal.EnchantmentDefinitionBuilder
- maxPriorWork(int, int) - Static method in class io.artificial.enchantments.internal.anvil.AnvilCostCalculator
-
Calculates the maximum of two prior work penalties.
- minBookshelves(int) - Method in interface io.artificial.enchantments.api.enchanttable.EnchantTableConfiguration.Builder
-
Sets the minimum bookshelves required.
- minBookshelves(int) - Method in class io.artificial.enchantments.internal.enchanttable.EnchantTableConfigurationBuilder
-
Sets the minimum bookshelves required.
- minLevel(int) - Method in interface io.artificial.enchantments.api.EnchantmentDefinition.Builder
-
Sets the minimum valid level.
- minLevel(int) - Method in class io.artificial.enchantments.internal.EnchantmentDefinitionBuilder
- modify(LootContext) - Method in interface io.artificial.enchantments.api.loot.LootModifier
-
Modifies the loot drops based on the context.
- modifyLore(boolean) - Method in class io.artificial.enchantments.optional.packetevents.ItemVisualProcessor.PreferencesBuilder
-
Sets whether to modify item lore with enchantment information.
- movementSpeedModifierUuid(String) - Static method in class io.artificial.enchantments.internal.AttributeModifierHelper
-
Creates a modifier UUID for movement speed modifiers.
- multiplyDamage(double) - Method in interface io.artificial.enchantments.api.context.CombatContext
-
Multiplies the current damage by a factor.
N
- NativeFirstItemStorage - Class in io.artificial.enchantments.internal
-
Native-first implementation of ItemStorage.
- NativeFirstItemStorage(Supplier<EnchantmentRegistryManager>, NbtMetadataStorage) - Constructor for class io.artificial.enchantments.internal.NativeFirstItemStorage
-
Creates a new native-first item storage.
- NbtMetadataStorage - Class in io.artificial.enchantments.internal
-
Handles auxiliary metadata storage in NBT for items.
- NbtMetadataStorage() - Constructor for class io.artificial.enchantments.internal.NbtMetadataStorage
-
Creates a new NBT metadata storage handler.
- newPriorWork() - Method in record class io.artificial.enchantments.internal.anvil.AnvilCombinationLogic.CombinationResult
-
Returns the value of the
newPriorWorkrecord component.
O
- of(Function<Integer, Double>) - Static method in interface io.artificial.enchantments.api.scaling.LevelScaling
-
Creates a scaling from a custom function.
- onArmorTick(TickContext) - Method in interface io.artificial.enchantments.api.EnchantmentEffectHandler
-
Called periodically while an armor item is equipped.
- onBlockBreak(ToolContext) - Method in interface io.artificial.enchantments.api.EnchantmentEffectHandler
-
Called after a block is broken.
- onBlockBreak(BlockBreakEvent) - Method in class io.artificial.enchantments.internal.EnchantmentEffectListener
-
Handles block break events, dispatching enchantment effects for the tool used to break the block.
- onBlockBreak(BlockBreakEvent) - Method in class io.artificial.enchantments.internal.loot.BlockBreakLootListener
-
Handles block break events to apply loot modifiers.
- onBlockBreakPre(ToolContext) - Method in interface io.artificial.enchantments.api.EnchantmentEffectHandler
-
Called before a block break is confirmed (pre-event).
- onBlockInteract(InteractionContext) - Method in interface io.artificial.enchantments.api.EnchantmentEffectHandler
-
Called when a player interacts with a block (right-click, left-click).
- onBlockPlace(ToolContext) - Method in interface io.artificial.enchantments.api.EnchantmentEffectHandler
-
Called when a player places a block.
- onBlockPlace(BlockPlaceEvent) - Method in class io.artificial.enchantments.internal.EnchantmentEffectListener
-
Handles block place events, dispatching enchantment effects for the item used to place the block.
- onBowShoot(WeaponContext) - Method in interface io.artificial.enchantments.api.EnchantmentEffectHandler
-
Called when a bow or crossbow is fired.
- onDisable() - Method in class io.artificial.enchantments.ArtificialEnchantmentsPlugin
-
Disables the plugin, stopping all tasks and cleaning up resources.
- onDurabilityDamage(ItemContext) - Method in interface io.artificial.enchantments.api.EnchantmentEffectHandler
-
Called when an item takes durability damage.
- onEnable() - Method in class io.artificial.enchantments.ArtificialEnchantmentsPlugin
-
Enables the plugin, initializing the API and registering all listeners.
- onEnchantItem(EnchantItemEvent) - Method in class io.artificial.enchantments.internal.enchanttable.EnchantmentTableListener
-
Handles EnchantItemEvent to apply selected custom enchantments to the item.
- onEntityDamage(CombatContext) - Method in interface io.artificial.enchantments.api.EnchantmentEffectHandler
-
Called when an entity takes damage from any source.
- onEntityDamage(EntityDamageEvent) - Method in class io.artificial.enchantments.internal.EnchantmentEffectListener
-
Handles general entity damage events for armor and shield enchantments.
- onEntityDamageByEntity(CombatContext) - Method in interface io.artificial.enchantments.api.EnchantmentEffectHandler
-
Called when an entity damages another entity (attack context).
- onEntityDamageByEntity(EntityDamageByEntityEvent) - Method in class io.artificial.enchantments.internal.EnchantmentEffectListener
-
Handles entity damage by entity events, dispatching enchantment effects for weapons held by the attacking player.
- onEntityInteract(InteractionContext) - Method in interface io.artificial.enchantments.api.EnchantmentEffectHandler
-
Called when a player interacts with an entity (right-click).
- onEntityPickupItem(EntityPickupItemEvent) - Method in class io.artificial.enchantments.internal.EnchantmentEffectListener
-
Handles entity pickup item events, dispatching enchantment effects for the item being picked up.
- onEntityShootBow(EntityShootBowEvent) - Method in class io.artificial.enchantments.internal.EnchantmentEffectListener
-
Handles entity shoot bow events, dispatching enchantment effects for the bow used to shoot the arrow.
- onFishingAction(FishingContext) - Method in interface io.artificial.enchantments.api.EnchantmentEffectHandler
-
Called when fishing rod actions occur (cast, reel, bite).
- onHeldTick(TickContext) - Method in interface io.artificial.enchantments.api.EnchantmentEffectHandler
-
Called periodically while an item is held in the main or off hand.
- onItemConsume(ConsumableContext) - Method in interface io.artificial.enchantments.api.EnchantmentEffectHandler
-
Called when a player consumes an item (food, potion).
- onItemDrop(ItemContext) - Method in interface io.artificial.enchantments.api.EnchantmentEffectHandler
-
Called when an item is dropped.
- onItemPickup(ItemContext) - Method in interface io.artificial.enchantments.api.EnchantmentEffectHandler
-
Called when an item is picked up.
- onItemUsed(ItemContext) - Method in interface io.artificial.enchantments.api.EnchantmentEffectHandler
-
Called when an item is used (interacted with).
- onPlayerDropItem(PlayerDropItemEvent) - Method in class io.artificial.enchantments.internal.EnchantmentEffectListener
-
Handles player drop item events, dispatching enchantment effects for the item being dropped.
- onPlayerFish(PlayerFishEvent) - Method in class io.artificial.enchantments.internal.EnchantmentEffectListener
-
Handles player fishing events, dispatching enchantment effects for the fishing rod in the main hand.
- onPlayerInteract(PlayerInteractEvent) - Method in class io.artificial.enchantments.internal.EnchantmentEffectListener
-
Handles player interact events with blocks, dispatching enchantment effects for the item in the interacting hand.
- onPlayerInteractEntity(PlayerInteractEntityEvent) - Method in class io.artificial.enchantments.internal.EnchantmentEffectListener
-
Handles player interact entity events, dispatching enchantment effects for the item in the interacting hand.
- onPlayerItemConsume(PlayerItemConsumeEvent) - Method in class io.artificial.enchantments.internal.EnchantmentEffectListener
-
Handles player item consume events, dispatching enchantment effects for the item being consumed.
- onPlayerItemDamage(PlayerItemDamageEvent) - Method in class io.artificial.enchantments.internal.EnchantmentEffectListener
-
Handles player item damage events, dispatching enchantment effects for the item taking durability damage.
- onPluginDisable(PluginDisableEvent) - Method in class io.artificial.enchantments.internal.PluginDisableCleanupListener
-
Removes all subscriptions owned by the plugin that just disabled.
- onPrepareAnvil(PrepareAnvilEvent) - Method in class io.artificial.enchantments.internal.anvil.AnvilListener
-
Handles PrepareAnvilEvent to calculate custom enchantment combinations.
- onPrepareItemEnchant(PrepareItemEnchantEvent) - Method in class io.artificial.enchantments.internal.enchanttable.EnchantmentTableListener
-
Handles PrepareItemEnchantEvent to generate and inject custom enchantment offers.
- onProjectileHit(ProjectileContext) - Method in interface io.artificial.enchantments.api.EnchantmentEffectHandler
-
Called when a projectile hits a block or entity.
- onProjectileHit(ProjectileHitEvent) - Method in class io.artificial.enchantments.internal.EnchantmentEffectListener
-
Handles projectile hit events, dispatching enchantment effects for the item used to launch the projectile.
- onProjectileLaunch(ProjectileContext) - Method in interface io.artificial.enchantments.api.EnchantmentEffectHandler
-
Called when a projectile is launched (arrow, trident, etc.).
- onProjectileLaunch(ProjectileLaunchEvent) - Method in class io.artificial.enchantments.internal.EnchantmentEffectListener
-
Handles projectile launch events, dispatching enchantment effects for the item used to launch the projectile (e.g., bow, crossbow, snowball).
- onShieldBlock(CombatContext) - Method in interface io.artificial.enchantments.api.EnchantmentEffectHandler
-
Called when a player successfully blocks with a shield.
- onTridentThrow(WeaponContext) - Method in interface io.artificial.enchantments.api.EnchantmentEffectHandler
-
Called when a trident is thrown.
P
- PacketEventsAdapter - Class in io.artificial.enchantments.optional.packetevents
-
Optional PacketEvents adapter for Artificial Enchantments.
- PacketEventsAdapter(ArtificialEnchantmentsPlugin) - Constructor for class io.artificial.enchantments.optional.packetevents.PacketEventsAdapter
-
Creates a new PacketEventsAdapter instance.
- PacketEventsAdapter.PlayerVisualPreferences - Class in io.artificial.enchantments.optional.packetevents
-
Per-player visual customization preferences.
- PacketEventsAdapter.VisualContext - Class in io.artificial.enchantments.optional.packetevents
-
Context passed to custom lore formatters.
- PaperEnchantmentBootstrap - Class in io.artificial.enchantments.internal
-
Paper 1.21+ PluginBootstrap implementation for registering custom enchantments via the native registry system during the bootstrap phase.
- PaperEnchantmentBootstrap() - Constructor for class io.artificial.enchantments.internal.PaperEnchantmentBootstrap
-
Creates a new Paper enchantment bootstrap.
- PaperEnchantmentConverter - Class in io.artificial.enchantments.internal
-
Converts library EnchantmentDefinition instances to Paper's native EnchantmentRegistryEntry.Builder format for registration during bootstrap.
- PaperRegistryBridge - Class in io.artificial.enchantments.internal
-
Bridge between the library's enchantment registry and Paper's native enchantment registry.
- PlayerVisualPreferences() - Constructor for class io.artificial.enchantments.optional.packetevents.PacketEventsAdapter.PlayerVisualPreferences
-
Creates default preferences (all customization enabled).
- PluginDisableCleanupListener - Class in io.artificial.enchantments.internal
-
Cleans up event bus subscriptions when dependent plugins disable.
- PluginDisableCleanupListener(EnchantmentEventBus) - Constructor for class io.artificial.enchantments.internal.PluginDisableCleanupListener
-
Creates a new cleanup listener for the shared enchantment event bus.
- processBlockBreak(Player, ItemStack, Block, List<ItemStack>, int) - Method in class io.artificial.enchantments.internal.loot.BlockBreakLootHandler
-
Processes loot modifications for a block break event.
- processForPlayer(ItemStack, UUID) - Method in class io.artificial.enchantments.optional.packetevents.ItemVisualProcessor
-
Processes an item for display to a specific player.
- processWithPreferences(ItemStack, PacketEventsAdapter.PlayerVisualPreferences) - Method in class io.artificial.enchantments.optional.packetevents.ItemVisualProcessor
-
Processes an item for display to a specific player with explicit preferences.
- PROJECTILE_HIT - Enum constant in enum class io.artificial.enchantments.internal.EffectDispatchSpine.DispatchEventType
-
Projectile hits a target.
- PROJECTILE_LAUNCH - Enum constant in enum class io.artificial.enchantments.internal.EffectDispatchSpine.DispatchEventType
-
Projectile launched.
- ProjectileContext - Interface in io.artificial.enchantments.api.context
-
Context for projectile-related enchantment effects.
- ProjectileEvent - Class in io.artificial.enchantments.api.event
-
Event fired when a projectile-related enchantment effect triggers.
- ProjectileEvent(EnchantmentDefinition, int, double, Projectile, LivingEntity, Location, ItemStack, Entity, Block, Vector, boolean) - Constructor for class io.artificial.enchantments.api.event.ProjectileEvent
-
Creates a new
ProjectileEvent.
Q
- query() - Method in interface io.artificial.enchantments.api.ArtificialEnchantmentsAPI
-
Gets the query facade for convenient enchantment lookups on items.
- query() - Method in class io.artificial.enchantments.internal.ArtificialEnchantmentsAPIImpl
R
- RARE - Enum constant in enum class io.artificial.enchantments.api.EnchantmentDefinition.Rarity
-
Rare enchantments appear infrequently
- rarity(EnchantmentDefinition.Rarity) - Method in interface io.artificial.enchantments.api.EnchantmentDefinition.Builder
-
Sets the rarity tier.
- rarity(EnchantmentDefinition.Rarity) - Method in class io.artificial.enchantments.internal.EnchantmentDefinitionBuilder
- reduceDamage(int) - Method in interface io.artificial.enchantments.api.context.ItemContext
-
Reduces the damage taken by a specified amount.
- reduceDamage(int) - Method in class io.artificial.enchantments.api.event.ItemEvent
-
Reduces the damage taken by the specified amount.
- REEL - Enum constant in enum class io.artificial.enchantments.api.event.FishingEvent.State
-
Reeling in the line.
- register(EnchantmentDefinition) - Method in class io.artificial.enchantments.internal.EnchantmentRegistryManager
-
Registers an enchantment definition.
- register(EnchantmentDefinition, LootModifier) - Method in interface io.artificial.enchantments.api.loot.LootModifierRegistry
-
Registers a loot modifier for an enchantment.
- register(EnchantmentDefinition, LootModifier) - Method in class io.artificial.enchantments.internal.loot.LootModifierRegistryImpl
- register(String, ScalingAlgorithm) - Method in interface io.artificial.enchantments.api.scaling.ScalingAlgorithmRegistry
-
Registers a custom scaling algorithm with a unique name.
- register(String, ScalingAlgorithm) - Method in class io.artificial.enchantments.internal.scaling.ScalingAlgorithmRegistryImpl
- register(Plugin, Class<T>, Consumer<T>) - Method in interface io.artificial.enchantments.api.EnchantmentEventBus
-
Registers a simple event handler with default priority and cancellation handling.
- register(Plugin, Class<T>, Consumer<T>) - Method in class io.artificial.enchantments.internal.EnchantmentEventBusImpl
- register(Plugin, Class<T>, EventPriority, boolean, Consumer<T>) - Method in interface io.artificial.enchantments.api.EnchantmentEventBus
-
Registers an event handler with full control over priority and cancellation.
- register(Plugin, Class<T>, EventPriority, boolean, Consumer<T>) - Method in class io.artificial.enchantments.internal.EnchantmentEventBusImpl
- register(Plugin, Class<T>, EventPriority, Consumer<T>) - Method in interface io.artificial.enchantments.api.EnchantmentEventBus
-
Registers an event handler with specific priority.
- register(Plugin, Class<T>, EventPriority, Consumer<T>) - Method in class io.artificial.enchantments.internal.EnchantmentEventBusImpl
- registerBootstrapEnchantment(EnchantmentDefinition) - Static method in interface io.artificial.enchantments.api.ArtificialEnchantmentsAPI
-
Queues an enchantment definition for Paper's native registry bootstrap.
- registerEnchantment(EnchantmentDefinition) - Method in interface io.artificial.enchantments.api.ArtificialEnchantmentsAPI
-
Registers a new enchantment definition with the library.
- registerEnchantment(EnchantmentDefinition) - Method in class io.artificial.enchantments.internal.ArtificialEnchantmentsAPIImpl
- registerEnchantment(EnchantmentDefinition) - Method in class io.artificial.enchantments.internal.ItemEnchantmentService
-
Registers a new enchantment definition.
- registerEnchantment(EnchantmentDefinition) - Method in class io.artificial.enchantments.internal.PaperRegistryBridge
-
Registers an enchantment definition with both the internal registry and prepares it for native Paper registration.
- registerLoreFormatter(String, Consumer<ItemVisualProcessor.VisualContext>) - Method in class io.artificial.enchantments.optional.packetevents.ItemVisualProcessor
-
Registers a custom lore formatter for a specific enchantment type.
- remove(ItemStack, String) - Method in class io.artificial.enchantments.internal.NbtMetadataStorage
-
Removes a metadata entry.
- removeAllEnchantments(ItemStack) - Method in interface io.artificial.enchantments.api.ArtificialEnchantmentsAPI
-
Removes all artificial enchantments from an item.
- removeAllEnchantments(ItemStack) - Method in interface io.artificial.enchantments.api.ItemStorage
-
Removes all artificial enchantments from an item.
- removeAllEnchantments(ItemStack) - Method in class io.artificial.enchantments.internal.ArtificialEnchantmentsAPIImpl
- removeAllEnchantments(ItemStack) - Method in class io.artificial.enchantments.internal.ItemEnchantmentService
-
Removes all artificial enchantments from an item.
- removeAllEnchantments(ItemStack) - Method in class io.artificial.enchantments.internal.NativeFirstItemStorage
- removeAllModifiers(LivingEntity) - Static method in class io.artificial.enchantments.internal.AttributeModifierHelper
-
Removes all modifiers created by this helper from an entity.
- removeDrop(ItemStack) - Method in interface io.artificial.enchantments.api.context.ToolContext
-
Removes an item from the drops.
- removeDrop(ItemStack) - Method in interface io.artificial.enchantments.api.loot.LootContext
-
Removes a drop from the list.
- removeEnchantment(ItemStack, EnchantmentDefinition) - Method in interface io.artificial.enchantments.api.ArtificialEnchantmentsAPI
-
Removes an enchantment from an item.
- removeEnchantment(ItemStack, EnchantmentDefinition) - Method in interface io.artificial.enchantments.api.ItemStorage
-
Removes an enchantment from an item.
- removeEnchantment(ItemStack, EnchantmentDefinition) - Method in class io.artificial.enchantments.internal.ArtificialEnchantmentsAPIImpl
- removeEnchantment(ItemStack, EnchantmentDefinition) - Method in class io.artificial.enchantments.internal.ItemEnchantmentService
-
Removes an enchantment from an item.
- removeEnchantment(ItemStack, EnchantmentDefinition) - Method in class io.artificial.enchantments.internal.NativeFirstItemStorage
- removeEnchantment(ItemStack, NamespacedKey) - Method in interface io.artificial.enchantments.api.ArtificialEnchantmentsAPI
-
Removes an enchantment by its key.
- removeEnchantment(ItemStack, NamespacedKey) - Method in interface io.artificial.enchantments.api.ItemStorage
-
Removes an enchantment by its registry key.
- removeEnchantment(ItemStack, NamespacedKey) - Method in class io.artificial.enchantments.internal.ArtificialEnchantmentsAPIImpl
- removeEnchantment(ItemStack, NamespacedKey) - Method in class io.artificial.enchantments.internal.ItemEnchantmentService
-
Removes an enchantment by its registry key.
- removeEnchantment(ItemStack, NamespacedKey) - Method in class io.artificial.enchantments.internal.NativeFirstItemStorage
- removeItemModifier(ItemStack, Attribute, UUID) - Static method in class io.artificial.enchantments.internal.AttributeModifierHelper
-
Removes an attribute modifier from an item stack.
- removeModifier(LivingEntity, Attribute, UUID) - Static method in class io.artificial.enchantments.internal.AttributeModifierHelper
-
Removes an attribute modifier by UUID.
- removePlayerPreferences(UUID) - Method in class io.artificial.enchantments.optional.packetevents.PacketEventsAdapter
-
Removes visual preferences for a player.
- reset() - Method in interface io.artificial.enchantments.api.book.EnchantedBook.Builder
-
Resets the builder to its initial state.
- reset() - Method in class io.artificial.enchantments.internal.book.EnchantedBookBuilderImpl
-
Resets the builder to its initial state.
- result() - Method in record class io.artificial.enchantments.internal.anvil.AnvilCombinationLogic.CombinationResult
-
Returns the value of the
resultrecord component. - run() - Method in class io.artificial.enchantments.internal.EnchantmentTickTask
- runAtEntity(Plugin, Entity, Runnable) - Method in class io.artificial.enchantments.internal.BukkitFoliaScheduler
-
Executes a task on the entity's scheduler.
- runAtEntity(Plugin, Entity, Runnable) - Method in interface io.artificial.enchantments.internal.FoliaScheduler
-
Executes a task on the entity's scheduler.
- runAtLocation(Plugin, Location, Runnable) - Method in class io.artificial.enchantments.internal.BukkitFoliaScheduler
-
Executes a task on the region thread for the given location.
- runAtLocation(Plugin, Location, Runnable) - Method in interface io.artificial.enchantments.internal.FoliaScheduler
-
Executes a task on the region thread for the given location.
- runGlobal(Plugin, Runnable) - Method in class io.artificial.enchantments.internal.BukkitFoliaScheduler
-
Executes a task on the global region thread.
- runGlobal(Plugin, Runnable) - Method in interface io.artificial.enchantments.internal.FoliaScheduler
-
Executes a task on the global region thread.
- runGlobalDelayed(Plugin, Runnable, long) - Method in class io.artificial.enchantments.internal.BukkitFoliaScheduler
-
Schedules a delayed task on the global region thread.
- runGlobalDelayed(Plugin, Runnable, long) - Method in interface io.artificial.enchantments.internal.FoliaScheduler
-
Schedules a delayed task on the global region thread.
- runGlobalTimer(Plugin, Consumer<FoliaScheduler.ScheduledTask>, long, long) - Method in class io.artificial.enchantments.internal.BukkitFoliaScheduler
-
Schedules a repeating task on the global region thread.
- runGlobalTimer(Plugin, Consumer<FoliaScheduler.ScheduledTask>, long, long) - Method in interface io.artificial.enchantments.internal.FoliaScheduler
-
Schedules a repeating task on the global region thread.
S
- scaling(LevelScaling) - Method in interface io.artificial.enchantments.api.EnchantmentDefinition.Builder
-
Sets the scaling formula using a
LevelScalinginstance. - scaling(LevelScaling) - Method in class io.artificial.enchantments.internal.EnchantmentDefinitionBuilder
- scaling(String, double...) - Method in interface io.artificial.enchantments.api.EnchantmentDefinition.Builder
-
Sets the scaling formula using a registered algorithm by name.
- scaling(String, double...) - Method in class io.artificial.enchantments.internal.EnchantmentDefinitionBuilder
- scaling(Function<Integer, Double>) - Method in interface io.artificial.enchantments.api.EnchantmentDefinition.Builder
-
Sets a custom scaling formula using a lambda.
- scaling(Function<Integer, Double>) - Method in class io.artificial.enchantments.internal.EnchantmentDefinitionBuilder
- ScalingAlgorithm - Interface in io.artificial.enchantments.api.scaling
-
Defines a parameterized scaling algorithm that can be registered and used to create
LevelScalinginstances. - ScalingAlgorithmMetadata - Class in io.artificial.enchantments.api.scaling
-
Immutable metadata for a registered scaling algorithm.
- ScalingAlgorithmMetadata(String, String, int, String[], boolean) - Constructor for class io.artificial.enchantments.api.scaling.ScalingAlgorithmMetadata
-
Creates metadata for a scaling algorithm.
- ScalingAlgorithmRegistry - Interface in io.artificial.enchantments.api.scaling
-
Registry for named scaling algorithms.
- ScalingAlgorithmRegistryImpl - Class in io.artificial.enchantments.internal.scaling
-
Thread-safe implementation of ScalingAlgorithmRegistry.
- ScalingAlgorithmRegistryImpl() - Constructor for class io.artificial.enchantments.internal.scaling.ScalingAlgorithmRegistryImpl
-
Creates a new registry and pre-registers all built-in algorithms.
- ScalingRegistryHolder - Class in io.artificial.enchantments.internal.scaling
-
Holder for the scaling algorithm registry instance.
- ScalingUtils - Class in io.artificial.enchantments.internal.scaling
-
Internal scaling utilities for the effect dispatch spine.
- setApplyLure(boolean) - Method in interface io.artificial.enchantments.api.context.FishingContext
-
Sets whether lure enchantment effects apply.
- setApplyLure(boolean) - Method in class io.artificial.enchantments.api.event.FishingEvent
-
Sets whether lure should be applied.
- setAuxiliaryMetadata(ItemStack, String, String) - Method in interface io.artificial.enchantments.api.ItemStorage
-
Sets an auxiliary metadata string value.
- setAuxiliaryMetadata(ItemStack, String, String) - Method in class io.artificial.enchantments.internal.NativeFirstItemStorage
- setAuxiliaryMetadata(ItemStack, String, String) - Method in class io.artificial.enchantments.internal.ItemEnchantmentService
-
Sets auxiliary metadata on an item.
- setBoolean(ItemStack, String, boolean) - Method in class io.artificial.enchantments.internal.NbtMetadataStorage
-
Sets a boolean metadata value.
- setCancelled(boolean) - Method in class io.artificial.enchantments.api.event.CombatEvent
- setCancelled(boolean) - Method in class io.artificial.enchantments.api.event.ConsumableEvent
- setCancelled(boolean) - Method in class io.artificial.enchantments.api.event.FishingEvent
- setCancelled(boolean) - Method in class io.artificial.enchantments.api.event.InteractionEvent
- setCancelled(boolean) - Method in class io.artificial.enchantments.api.event.ItemEvent
- setCancelled(boolean) - Method in class io.artificial.enchantments.api.event.ProjectileEvent
- setCancelled(boolean) - Method in class io.artificial.enchantments.api.event.ToolEvent
- setConsumptionTime(int) - Method in interface io.artificial.enchantments.api.context.ConsumableContext
-
Sets the consumption time in ticks.
- setConsumptionTime(int) - Method in class io.artificial.enchantments.api.event.ConsumableEvent
-
Sets the consumption time in ticks.
- setCritical(boolean) - Method in interface io.artificial.enchantments.api.context.WeaponContext
-
Sets whether this shot is a critical hit.
- setCritical(boolean) - Method in class io.artificial.enchantments.api.event.WeaponEvent
-
Sets whether this is a critical hit.
- setCustomLoreFormatter(Consumer<PacketEventsAdapter.VisualContext>) - Method in class io.artificial.enchantments.optional.packetevents.PacketEventsAdapter.PlayerVisualPreferences
-
Sets a custom lore formatter for enchantment display.
- setDamage(double) - Method in interface io.artificial.enchantments.api.context.CombatContext
-
Sets the damage to a specific value.
- setDamageTaken(int) - Method in interface io.artificial.enchantments.api.context.ItemContext
-
Sets the damage to be taken by this item.
- setDamageTaken(int) - Method in class io.artificial.enchantments.api.event.ItemEvent
-
Sets the damage taken.
- setDrops(List<ItemStack>) - Method in interface io.artificial.enchantments.api.context.ToolContext
-
Sets the drops from breaking the block.
- setDrops(List<ItemStack>) - Method in class io.artificial.enchantments.api.event.ToolEvent
-
Sets the drops from the block.
- setDrops(List<ItemStack>) - Method in interface io.artificial.enchantments.api.loot.LootContext
-
Sets the entire drops list, replacing vanilla drops.
- setEnabled(boolean) - Method in class io.artificial.enchantments.optional.packetevents.PacketEventsAdapter.PlayerVisualPreferences
-
Sets whether visual customization is enabled.
- setExecutionMode(EffectExecutionContext.ExecutionMode) - Method in class io.artificial.enchantments.internal.EffectDispatchSpine
-
Sets the execution mode for effect handler failures.
- setExpToDrop(int) - Method in interface io.artificial.enchantments.api.context.ToolContext
-
Sets the experience to drop.
- setExpToDrop(int) - Method in class io.artificial.enchantments.api.event.ToolEvent
-
Sets the experience to drop.
- setExpToDrop(int) - Method in interface io.artificial.enchantments.api.loot.LootContext
-
Sets the experience points to drop.
- setFinalDamage(double) - Method in class io.artificial.enchantments.api.event.CombatEvent
-
Sets the final damage value.
- setFoodLevel(int) - Method in interface io.artificial.enchantments.api.context.ConsumableContext
-
Sets the food level change.
- setFoodLevel(int) - Method in class io.artificial.enchantments.api.event.ConsumableEvent
-
Sets the food level change.
- setForce(float) - Method in interface io.artificial.enchantments.api.context.WeaponContext
-
Sets the force/draw strength of the shot.
- setForce(float) - Method in class io.artificial.enchantments.api.event.WeaponEvent
-
Sets the force of the shot.
- setGravity(boolean) - Method in interface io.artificial.enchantments.api.context.ProjectileContext
-
Sets whether gravity affects the projectile.
- setGravity(boolean) - Method in class io.artificial.enchantments.api.event.ProjectileEvent
-
Sets whether the projectile has gravity.
- setHealthRestored(double) - Method in interface io.artificial.enchantments.api.context.ConsumableContext
-
Sets the health restored.
- setHealthRestored(double) - Method in class io.artificial.enchantments.api.event.ConsumableEvent
-
Sets the health restored.
- setHideVanillaEnchantments(boolean) - Method in class io.artificial.enchantments.optional.packetevents.PacketEventsAdapter.PlayerVisualPreferences
-
Sets whether to hide vanilla enchantments from display.
- setInt(ItemStack, String, int) - Method in class io.artificial.enchantments.internal.NbtMetadataStorage
-
Sets an integer metadata value.
- setLorePrefix(String) - Method in class io.artificial.enchantments.optional.packetevents.PacketEventsAdapter.PlayerVisualPreferences
-
Sets the lore prefix string.
- setLureSpeed(int) - Method in interface io.artificial.enchantments.api.context.FishingContext
-
Sets the lure speed modifier.
- setLureSpeed(int) - Method in class io.artificial.enchantments.api.event.FishingEvent
-
Sets the lure speed.
- setModifyLore(boolean) - Method in class io.artificial.enchantments.optional.packetevents.PacketEventsAdapter.PlayerVisualPreferences
-
Sets whether to modify item lore.
- setOverrideComponent(Component) - Method in class io.artificial.enchantments.optional.packetevents.ItemVisualProcessor.VisualContext
-
Sets an override component to replace the default formatted line.
- setPierceLevel(int) - Method in interface io.artificial.enchantments.api.context.ProjectileContext
-
Sets the pierce level for this projectile.
- setPierceLevel(int) - Method in interface io.artificial.enchantments.api.context.WeaponContext
-
Sets the pierce level for this projectile.
- setPierceLevel(int) - Method in class io.artificial.enchantments.api.event.ProjectileEvent
-
Sets the pierce level.
- setPierceLevel(int) - Method in class io.artificial.enchantments.api.event.WeaponEvent
-
Sets the pierce level.
- setPlayerPreferences(UUID, PacketEventsAdapter.PlayerVisualPreferences) - Method in class io.artificial.enchantments.optional.packetevents.PacketEventsAdapter
-
Sets visual preferences for a specific player.
- setSaturation(float) - Method in interface io.artificial.enchantments.api.context.ConsumableContext
-
Sets the saturation change.
- setSaturation(float) - Method in class io.artificial.enchantments.api.event.ConsumableEvent
-
Sets the saturation change.
- setShowEnchantmentGlint(boolean) - Method in class io.artificial.enchantments.optional.packetevents.PacketEventsAdapter.PlayerVisualPreferences
-
Sets whether to show the enchantment glint effect.
- setString(ItemStack, String, String) - Method in class io.artificial.enchantments.internal.NbtMetadataStorage
-
Sets a string metadata value.
- setVelocity(Vector) - Method in interface io.artificial.enchantments.api.context.ProjectileContext
-
Sets the projectile velocity.
- setVelocity(Vector) - Method in class io.artificial.enchantments.api.event.ProjectileEvent
-
Sets the projectile velocity.
- setWaitTime(int) - Method in interface io.artificial.enchantments.api.context.FishingContext
-
Sets the wait time for fish bite in ticks.
- setWaitTime(int) - Method in class io.artificial.enchantments.api.event.FishingEvent
-
Sets the wait time in ticks.
- SHIELD_BLOCK - Enum constant in enum class io.artificial.enchantments.api.event.CombatEvent.CombatType
-
Shield block interaction.
- SHIELD_BLOCK - Enum constant in enum class io.artificial.enchantments.internal.EffectDispatchSpine.DispatchEventType
-
Shield block event.
- showGlint(boolean) - Method in class io.artificial.enchantments.optional.packetevents.ItemVisualProcessor.PreferencesBuilder
-
Sets whether to show the enchantment glint effect.
- shutdown() - Method in class io.artificial.enchantments.internal.EffectDispatchSpine
-
Shuts down the dispatch spine, preventing further dispatches.
- start() - Method in class io.artificial.enchantments.internal.EnchantmentTickTask
-
Starts the tick task, scheduling it to run every 20 ticks (1 second).
- stepped(Map<Integer, Double>) - Static method in interface io.artificial.enchantments.api.scaling.LevelScaling
-
Creates stepped scaling with interpolation between defined levels.
- SteppedScaling - Class in io.artificial.enchantments.api.scaling
-
Stepped scaling algorithm with linear interpolation between defined levels.
- SteppedScaling(Map<Integer, Double>) - Constructor for class io.artificial.enchantments.api.scaling.SteppedScaling
-
Creates a new stepped scaling from a map of level-value pairs.
- stop() - Method in class io.artificial.enchantments.internal.EnchantmentTickTask
-
Stops the tick task, cancelling any pending executions.
- STRICT - Enum constant in enum class io.artificial.enchantments.internal.EffectExecutionContext.ExecutionMode
-
Log exceptions and propagate to stop all further execution.
T
- tableMaxLevel(int) - Method in interface io.artificial.enchantments.api.enchanttable.EnchantTableConfiguration.Builder
-
Sets the maximum enchantment level for table offers.
- tableMaxLevel(int) - Method in class io.artificial.enchantments.internal.enchanttable.EnchantTableConfigurationBuilder
-
Sets the maximum enchantment level for table offers.
- tableMinLevel(int) - Method in interface io.artificial.enchantments.api.enchanttable.EnchantTableConfiguration.Builder
-
Sets the minimum enchantment level for table offers.
- tableMinLevel(int) - Method in class io.artificial.enchantments.internal.enchanttable.EnchantTableConfigurationBuilder
-
Sets the minimum enchantment level for table offers.
- TickContext - Interface in io.artificial.enchantments.api.context
-
Context for periodic tick-based enchantment effects.
- TickDispatchEvent - Class in io.artificial.enchantments.internal
-
Synthetic event used to carry tick-scan data into the dispatch spine.
- TickDispatchEvent(Player, ItemStack, EquipmentSlot, boolean, int, long) - Constructor for class io.artificial.enchantments.internal.TickDispatchEvent
- TickEvent - Class in io.artificial.enchantments.api.event
-
Event fired periodically when an enchanted item is held or worn as armor.
- TickEvent(EnchantmentDefinition, int, double, Player, ItemStack, EquipmentSlot, boolean, boolean, int, long) - Constructor for class io.artificial.enchantments.api.event.TickEvent
-
Creates a new
TickEvent. - toBukkitOffer(Enchantment) - Method in record class io.artificial.enchantments.internal.enchanttable.EnchantOfferGenerator.GeneratedOffer
-
Converts this generated offer to a Bukkit EnchantmentOffer.
- toCeiledDamage(double) - Static method in class io.artificial.enchantments.internal.DamageModifierHelper
-
Calculates final damage rounded up (ceiling).
- toFlooredDamage(double) - Static method in class io.artificial.enchantments.internal.DamageModifierHelper
-
Calculates final damage rounded down (floor).
- toNative(EnchantmentDefinition) - Method in class io.artificial.enchantments.internal.PaperRegistryBridge
-
Gets the native Paper Enchantment for a library definition.
- tooExpensive() - Method in record class io.artificial.enchantments.internal.anvil.AnvilCombinationLogic.CombinationResult
-
Returns the value of the
tooExpensiverecord component. - ToolContext - Interface in io.artificial.enchantments.api.context
-
Context for tool-related enchantment effects.
- ToolEvent - Class in io.artificial.enchantments.api.event
-
Event fired when a tool-related enchantment effect triggers.
- ToolEvent(EnchantmentDefinition, int, double, Player, ItemStack, Block, BlockFace, ToolEvent.ToolType, List<ItemStack>, int) - Constructor for class io.artificial.enchantments.api.event.ToolEvent
-
Creates a new
ToolEvent. - ToolEvent.ToolType - Enum Class in io.artificial.enchantments.api.event
-
Represents the type of tool interaction.
- toRoundedDamage(double) - Static method in class io.artificial.enchantments.internal.DamageModifierHelper
-
Calculates final damage rounded to nearest integer.
- toString() - Method in class io.artificial.enchantments.api.scaling.ConstantScaling
- toString() - Method in class io.artificial.enchantments.api.scaling.DiminishingScaling
- toString() - Method in class io.artificial.enchantments.api.scaling.ExponentialScaling
- toString() - Method in class io.artificial.enchantments.api.scaling.LinearScaling
- toString() - Method in class io.artificial.enchantments.api.scaling.ScalingAlgorithmMetadata
- toString() - Method in class io.artificial.enchantments.api.scaling.SteppedScaling
- toString() - Method in record class io.artificial.enchantments.internal.anvil.AnvilCombinationLogic.CombinationResult
-
Returns a string representation of this record class.
- toString() - Method in class io.artificial.enchantments.internal.EffectExecutionContext
- toString() - Method in class io.artificial.enchantments.internal.EnchantmentDefinitionImpl
- toString() - Method in record class io.artificial.enchantments.internal.enchanttable.EnchantOfferGenerator.GeneratedOffer
-
Returns a string representation of this record class.
- tradeable(boolean) - Method in interface io.artificial.enchantments.api.EnchantmentDefinition.Builder
-
Sets whether this enchantment is tradeable with villagers.
- tradeable(boolean) - Method in class io.artificial.enchantments.internal.EnchantmentDefinitionBuilder
- treasure(boolean) - Method in interface io.artificial.enchantments.api.book.EnchantedBook.Builder
-
Sets whether the book is a "treasure" book (from chests/loot).
- treasure(boolean) - Method in interface io.artificial.enchantments.api.enchanttable.EnchantTableConfiguration.Builder
-
Sets whether this is a treasure enchantment.
- treasure(boolean) - Method in class io.artificial.enchantments.internal.book.EnchantedBookBuilderImpl
-
Sets whether the book is a "treasure" book (from chests/loot).
- treasure(boolean) - Method in class io.artificial.enchantments.internal.enchanttable.EnchantTableConfigurationBuilder
-
Sets whether this is a treasure enchantment.
- TRIDENT_THROW - Enum constant in enum class io.artificial.enchantments.internal.EffectDispatchSpine.DispatchEventType
-
Trident thrown.
- tryCancel() - Method in interface io.artificial.enchantments.api.context.EffectContext
-
Attempts to cancel the underlying event.
- tryCancel(Object) - Method in interface io.artificial.enchantments.api.EnchantmentEffectHandler
-
Attempts to cancel the given context if it supports cancellation.
- TypedCallbackDispatcher - Class in io.artificial.enchantments.internal
-
Dispatches effects to typed callback handlers (EnchantmentEffectHandler implementations).
- TypedCallbackDispatcher() - Constructor for class io.artificial.enchantments.internal.TypedCallbackDispatcher
-
Creates a new typed callback dispatcher.
U
- UNCOMMON - Enum constant in enum class io.artificial.enchantments.api.EnchantmentDefinition.Rarity
-
Uncommon enchantments appear less frequently
- unregister(EnchantmentDefinition, LootModifier) - Method in interface io.artificial.enchantments.api.loot.LootModifierRegistry
-
Unregisters a specific loot modifier from an enchantment.
- unregister(EnchantmentDefinition, LootModifier) - Method in class io.artificial.enchantments.internal.loot.LootModifierRegistryImpl
- unregister(EnchantmentEventBus.EventSubscription<T>) - Method in interface io.artificial.enchantments.api.EnchantmentEventBus
-
Unregisters a specific subscription.
- unregister(EnchantmentEventBus.EventSubscription<T>) - Method in class io.artificial.enchantments.internal.EnchantmentEventBusImpl
- unregister(String) - Method in interface io.artificial.enchantments.api.scaling.ScalingAlgorithmRegistry
-
Unregisters a custom algorithm by name.
- unregister(String) - Method in class io.artificial.enchantments.internal.scaling.ScalingAlgorithmRegistryImpl
- unregister(NamespacedKey) - Method in class io.artificial.enchantments.internal.EnchantmentRegistryManager
-
Unregisters an enchantment definition.
- unregisterAll(EnchantmentDefinition) - Method in interface io.artificial.enchantments.api.loot.LootModifierRegistry
-
Unregisters all loot modifiers for an enchantment.
- unregisterAll(EnchantmentDefinition) - Method in class io.artificial.enchantments.internal.loot.LootModifierRegistryImpl
- unregisterAll(Plugin) - Method in interface io.artificial.enchantments.api.EnchantmentEventBus
-
Unregisters all handlers for a plugin.
- unregisterAll(Plugin) - Method in class io.artificial.enchantments.internal.EnchantmentEventBusImpl
- unregisterEnchantment(NamespacedKey) - Method in interface io.artificial.enchantments.api.ArtificialEnchantmentsAPI
-
Unregisters an enchantment by its key.
- unregisterEnchantment(NamespacedKey) - Method in class io.artificial.enchantments.internal.ArtificialEnchantmentsAPIImpl
- unregisterEnchantment(NamespacedKey) - Method in class io.artificial.enchantments.internal.ItemEnchantmentService
-
Unregisters an enchantment.
- unregisterEnchantment(NamespacedKey) - Method in class io.artificial.enchantments.internal.PaperRegistryBridge
-
Unregisters an enchantment from the internal tracking.
- unregisterLoreFormatter(String) - Method in class io.artificial.enchantments.optional.packetevents.ItemVisualProcessor
-
Unregisters a custom lore formatter.
- unsubscribe() - Method in interface io.artificial.enchantments.api.EnchantmentEventBus.EventSubscription
-
Unsubscribes this listener from receiving further events.
V
- validate() - Method in interface io.artificial.enchantments.api.EnchantmentDefinition.Builder
-
Validates the current builder state without building.
- validateLevel(int) - Static method in class io.artificial.enchantments.internal.scaling.ScalingUtils
-
Validates that a level is valid (>= 1).
- valueOf(String) - Static method in enum class io.artificial.enchantments.api.EnchantmentDefinition.Rarity
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class io.artificial.enchantments.api.event.CombatEvent.CombatType
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class io.artificial.enchantments.api.event.FishingEvent.State
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class io.artificial.enchantments.api.event.ToolEvent.ToolType
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class io.artificial.enchantments.internal.EffectDispatchSpine.DispatchEventType
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class io.artificial.enchantments.internal.EffectExecutionContext.ExecutionMode
-
Returns the enum constant of this class with the specified name.
- values() - Static method in enum class io.artificial.enchantments.api.EnchantmentDefinition.Rarity
-
Returns an array containing the constants of this enum class, in the order they are declared.
- values() - Static method in enum class io.artificial.enchantments.api.event.CombatEvent.CombatType
-
Returns an array containing the constants of this enum class, in the order they are declared.
- values() - Static method in enum class io.artificial.enchantments.api.event.FishingEvent.State
-
Returns an array containing the constants of this enum class, in the order they are declared.
- values() - Static method in enum class io.artificial.enchantments.api.event.ToolEvent.ToolType
-
Returns an array containing the constants of this enum class, in the order they are declared.
- values() - Static method in enum class io.artificial.enchantments.internal.EffectDispatchSpine.DispatchEventType
-
Returns an array containing the constants of this enum class, in the order they are declared.
- values() - Static method in enum class io.artificial.enchantments.internal.EffectExecutionContext.ExecutionMode
-
Returns an array containing the constants of this enum class, in the order they are declared.
- VERY_RARE - Enum constant in enum class io.artificial.enchantments.api.EnchantmentDefinition.Rarity
-
Very rare enchantments are hard to find
- VisualContext(String, int, boolean) - Constructor for class io.artificial.enchantments.optional.packetevents.ItemVisualProcessor.VisualContext
-
Creates a new visual context.
- VisualContext(String, int, boolean) - Constructor for class io.artificial.enchantments.optional.packetevents.PacketEventsAdapter.VisualContext
-
Creates a new visual context.
W
- WeaponContext - Interface in io.artificial.enchantments.api.context
-
Context for weapon-related enchantment effects.
- WeaponEvent - Class in io.artificial.enchantments.api.event
-
Event fired when a weapon-related enchantment effect triggers.
- WeaponEvent(EnchantmentDefinition, int, double, Player, ItemStack, Location, LivingEntity, Projectile, boolean, boolean, boolean, boolean, boolean, float, boolean, int) - Constructor for class io.artificial.enchantments.api.event.WeaponEvent
-
Creates a new
WeaponEvent. - weightMultiplier(double) - Method in interface io.artificial.enchantments.api.enchanttable.EnchantTableConfiguration.Builder
-
Sets the weight multiplier for this enchantment.
- weightMultiplier(double) - Method in class io.artificial.enchantments.internal.enchanttable.EnchantTableConfigurationBuilder
-
Sets the weight multiplier for this enchantment.
- willBreak() - Method in interface io.artificial.enchantments.api.context.ItemContext
-
Checks if the item will break from this damage.
- willBreak() - Method in class io.artificial.enchantments.api.event.ItemEvent
-
Checks if the item will break from the damage.
- willDamageTool() - Method in interface io.artificial.enchantments.api.context.ToolContext
-
Checks if the tool will take damage.
- willDropItems() - Method in interface io.artificial.enchantments.api.context.ToolContext
-
Checks if items will be dropped.
- withEnchantment(EnchantmentDefinition, int) - Method in interface io.artificial.enchantments.api.book.EnchantedBook.Builder
-
Adds an enchantment to the book at the specified level.
- withEnchantment(EnchantmentDefinition, int) - Method in class io.artificial.enchantments.internal.book.EnchantedBookBuilderImpl
-
Adds an enchantment to the book at the specified level.
- withEnchantment(NamespacedKey, int) - Method in interface io.artificial.enchantments.api.book.EnchantedBook.Builder
-
Adds an enchantment by its registry key.
- withEnchantment(NamespacedKey, int) - Method in class io.artificial.enchantments.internal.book.EnchantedBookBuilderImpl
-
Adds an enchantment by its registry key.
- withExecutionMode(EffectExecutionContext.ExecutionMode) - Method in class io.artificial.enchantments.internal.EffectExecutionContext
-
Returns a new context with the specified execution mode.
- withLevel(int) - Method in class io.artificial.enchantments.internal.EffectExecutionContext
-
Returns a new context with the specified level.
All Classes and Interfaces|All Packages|Serialized Form