EnchantmentInputs
Accepted Bukkit inputs share one elected provider. Plugin-owned attacks supply their own captured source.
Properties
Functions
Link copied to clipboard
public static boolean applyExplicitDamage(Plugin owner, Player actor, LivingEntity target, Runnable damage)
Uses the elected native input observer; a cancelled or absent hit is not an applied effect.
Link copied to clipboard
public static Map<String, Object> capture(Player actor, ItemStack item, EnchantmentDefinition.Slot slot, int inventorySlot, ItemStack ammunition, String attackKind, UUID attackId)
The snapshot carries Bukkit/JDK values only, including pinned definition revisions and consumed ammunition.
Link copied to clipboard
Link copied to clipboard
public static boolean dispatch(Plugin owner, Map<String, Object> captured, ScriptHook hook, LivingEntity target, String stage)
Called after the base action succeeds.
Link copied to clipboard
Marks only this programmatic event, including nested events, across shaded input owners.
Link copied to clipboard
Suppresses automatic intake while the gameplay owner applies and explicitly attributes a hit.