MagicWeaponRuntime

public final class MagicWeaponRuntime implements Listener, MagicWeaponService, AutoCloseable

FMM's sole input, projectile, collision and damage owner for built-in magic weapons.

Constructors

Link copied to clipboard
public void MagicWeaponRuntime(Plugin plugin)

Functions

Link copied to clipboard
public boolean applyEnchantmentDamage(Map<String, Object> request)
Reuses the native application owner without classifying an ordinary enchanted item as a wand.
Link copied to clipboard
public boolean applyWeaponData(ItemStack itemStack, String itemId)
Link copied to clipboard
public void close()
Link copied to clipboard
public boolean isOperational()
Link copied to clipboard
public boolean isWeapon(String itemId)
Link copied to clipboard
public void onDirectMelee(EntityDamageByEntityEvent event)
Link copied to clipboard
public void onEntityInteract(PlayerInteractEntityEvent event)
Link copied to clipboard
public void onEntityInteractAt(PlayerInteractAtEntityEvent event)
Link copied to clipboard
public void onInteract(PlayerInteractEvent event)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
public void onPluginDisable(PluginDisableEvent event)
Link copied to clipboard
public void onQuit(PlayerQuitEvent event)
Link copied to clipboard
public void pauseForContentReload()
Stops new casts; launched projectiles retain their captured definitions and modifiers.
Link copied to clipboard
public void refreshContentState()
Adopts the validated item catalog after the existing content-reload boundary.
Link copied to clipboard
public synchronized boolean registerResolver(Plugin owner, MagicAttackResolver candidate)
Link copied to clipboard
public static int requiredCapabilityVersion()
Link copied to clipboard
Reopens casting only after the rebuilt item and display-model registries are available.
Link copied to clipboard
public void start()
Link copied to clipboard
public synchronized void unregisterResolver(Plugin owner)
Link copied to clipboard
public MagicWeaponKind weaponKind(String itemId)