java.lang.Object
studio.magemonkey.codex.manager.IListener<Divinity>
studio.magemonkey.codex.modules.IModule<Divinity>
All Implemented Interfaces:
org.bukkit.event.Listener, studio.magemonkey.codex.manager.AbstractListener, studio.magemonkey.codex.manager.api.Loggable

public class ArrowManager extends QModuleDrop<ArrowManager.QArrow>
  • Constructor Details

    • ArrowManager

      public ArrowManager(@NotNull Divinity plugin)
  • Method Details

    • getId

      @NotNull public String getId()
      Specified by:
      getId in class studio.magemonkey.codex.modules.IModule<Divinity>
    • version

      @NotNull public String version()
      Specified by:
      version in class studio.magemonkey.codex.modules.IModule<Divinity>
    • setup

      public void setup()
      Specified by:
      setup in class studio.magemonkey.codex.modules.IModule<Divinity>
    • shutdown

      public void shutdown()
      Specified by:
      shutdown in class studio.magemonkey.codex.modules.IModule<Divinity>
    • getArrow

      @Nullable public ArrowManager.QArrow getArrow(@NotNull org.bukkit.entity.Projectile pj)
    • getArrowLevel

      public int getArrowLevel(@NotNull org.bukkit.entity.Projectile pj)
    • getFirstArrow

      @Nullable public final org.bukkit.inventory.ItemStack getFirstArrow(@NotNull org.bukkit.entity.Player p, boolean checkAll)
      Parameters:
      p - Player instance
      Returns:
      First ItemStack with ARROW type in player's inventory.
    • onQuantumArrowLaunch

      public void onQuantumArrowLaunch(DivinityProjectileLaunchEvent e)
    • markArrow

      public void markArrow(@NotNull org.bukkit.entity.Projectile pj, @NotNull String id, int lvl)
    • onQuantumArrowHit

      public void onQuantumArrowHit(org.bukkit.event.entity.ProjectileHitEvent e)