ScriptNativeProjectiles

public final class ScriptNativeProjectiles implements Listener, AutoCloseable

Optional attribution/restoration adapter for native projectiles spawned by ordinary Lua.

Constructors

Link copied to clipboard
public void ScriptNativeProjectiles(Plugin plugin)

Functions

Link copied to clipboard
public static void applyAttributedDamage(LivingEntity target, double amount, Player actor)
Retains the native cause/source only for the current impact's attributed application.
Link copied to clipboard
public boolean bind(Projectile projectile, ScriptInstance instance, BooleanSupplier active, LuaFunction damage, boolean protect)
Link copied to clipboard
public void close()
Link copied to clipboard
public void damage(EntityDamageByEntityEvent event)
Link copied to clipboard
public void explode(EntityExplodeEvent event)
Link copied to clipboard
public void ignite(BlockIgniteEvent event)
Link copied to clipboard
public static boolean isProtectionAware(Entity entity)
Stable metadata allows each shaded host's existing explosion policy to recognize opt-in projectiles.