EnchantmentActions

public final class EnchantmentActions

Provider-owned Lua effects. Only copied facts and stable identities cross the shaded bridge.

Types

Link copied to clipboard
public final class Action implements AutoCloseable
One accepted activation.
Link copied to clipboard
public final class DamageInput extends Record
Provider-local view of copied action facts; only Bukkit/JDK values travel between owners.
Link copied to clipboard
public final class Source extends Record
The host chooses the lifetime from the authored effect, with no global gameplay quota.
Link copied to clipboard
public enum Status

Properties

Link copied to clipboard
public final static String CAPABILITY
Link copied to clipboard
public final static String SOURCE_FACTS

Functions

Link copied to clipboard
Called once by the host after accepting the action, using its launch-time definition/revision.
public static EnchantmentActions.Action begin(EnchantmentItems.Resolved resolved, int level, EnchantmentActions.Source source, ScriptHook initialHook)
The input owner can avoid creating a timed instance when this definition has no matching hook.
Link copied to clipboard
public static Map<String, ItemStack> captureEquipment(LivingEntity actor)
Six equipped slots at acceptance/launch.
Link copied to clipboard
public static Map<String, Object> captureProviderFacts(UUID actor, Map<String, ItemStack> equipment)
Provider combat facts are evaluated at input/launch, never again at delayed impact.