Class SentinelWeaponHelper

java.lang.Object
org.mcmonkey.sentinel.SentinelHelperObject
org.mcmonkey.sentinel.SentinelWeaponHelper

public class SentinelWeaponHelper extends SentinelHelperObject
Helper for weapon management, particular attacking.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final org.bukkit.entity.EntityType
     
    static final org.bukkit.entity.EntityType
     
    static final org.bukkit.entity.EntityType
     

    Fields inherited from class org.mcmonkey.sentinel.SentinelHelperObject

    attackHelper, itemHelper, sentinel, targetingHelper, weaponHelper
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    addedPunchEffects(org.bukkit.entity.LivingEntity entity)
    Processes any extra effects (item enchantments) to apply when punching an entity.
    void
    fireArrow(org.bukkit.inventory.ItemStack type, org.bukkit.Location target, org.bukkit.util.Vector lead)
    Fires an arrow from the NPC at a target.
    void
    fireEgg(org.bukkit.Location target)
    Fires an egg from the NPC at a target.
    void
    fireEvokerFangs(org.bukkit.Location target)
    Spawns a line of evoker fangs towards the target.
    void
    fireFireball(org.bukkit.Location target)
    Fires a fireballs from the NPC at a target.
    void
    fireLlamaSpit(org.bukkit.Location target)
    Fires llama spit.
    void
    firePearl(org.bukkit.entity.LivingEntity target)
    Fires a pearl from the NPC at a target.
    void
    firePotion(org.bukkit.inventory.ItemStack potion, org.bukkit.Location target, org.bukkit.util.Vector lead)
    Fires a potion from the NPC at a target.
    void
    fireShulkerBullet(org.bukkit.entity.LivingEntity entity)
    Fires shulker bullet.
    void
    fireSkull(org.bukkit.Location target)
    Fires a skull from the NPC at a target.
    void
    fireSnowball(org.bukkit.Location target)
    Fires a snowball from the NPC at a target.
    void
    fireTrident(org.bukkit.Location target)
    Fires a trident from the NPC at a target.
    void
    knockback(org.bukkit.entity.LivingEntity entity, float force)
    Knocks a target back from damage received (for hacked-in damage applications when required by config, or knockback enchantment on an item).
    void
    punch(org.bukkit.entity.LivingEntity entity)
    Makes an NPC punch a target.

    Methods inherited from class org.mcmonkey.sentinel.SentinelHelperObject

    debug, getLivingEntity, getNPC, setTraitObject

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • LINGERING_POTION

      public static final org.bukkit.entity.EntityType LINGERING_POTION
    • TIPPED_ARROW

      public static final org.bukkit.entity.EntityType TIPPED_ARROW
    • SPLASH_POTION

      public static final org.bukkit.entity.EntityType SPLASH_POTION
  • Constructor Details

    • SentinelWeaponHelper

      public SentinelWeaponHelper()
  • Method Details

    • firePotion

      public void firePotion(org.bukkit.inventory.ItemStack potion, org.bukkit.Location target, org.bukkit.util.Vector lead)
      Fires a potion from the NPC at a target.
    • fireArrow

      public void fireArrow(org.bukkit.inventory.ItemStack type, org.bukkit.Location target, org.bukkit.util.Vector lead)
      Fires an arrow from the NPC at a target.
    • fireSnowball

      public void fireSnowball(org.bukkit.Location target)
      Fires a snowball from the NPC at a target.
    • fireTrident

      public void fireTrident(org.bukkit.Location target)
      Fires a trident from the NPC at a target.
    • fireEgg

      public void fireEgg(org.bukkit.Location target)
      Fires an egg from the NPC at a target.
    • firePearl

      public void firePearl(org.bukkit.entity.LivingEntity target)
      Fires a pearl from the NPC at a target.
    • fireFireball

      public void fireFireball(org.bukkit.Location target)
      Fires a fireballs from the NPC at a target.
    • fireSkull

      public void fireSkull(org.bukkit.Location target)
      Fires a skull from the NPC at a target.
    • fireLlamaSpit

      public void fireLlamaSpit(org.bukkit.Location target)
      Fires llama spit.
    • fireShulkerBullet

      public void fireShulkerBullet(org.bukkit.entity.LivingEntity entity)
      Fires shulker bullet.
    • fireEvokerFangs

      public void fireEvokerFangs(org.bukkit.Location target)
      Spawns a line of evoker fangs towards the target.
    • punch

      public void punch(org.bukkit.entity.LivingEntity entity)
      Makes an NPC punch a target.
    • addedPunchEffects

      public void addedPunchEffects(org.bukkit.entity.LivingEntity entity)
      Processes any extra effects (item enchantments) to apply when punching an entity.
    • knockback

      public void knockback(org.bukkit.entity.LivingEntity entity, float force)
      Knocks a target back from damage received (for hacked-in damage applications when required by config, or knockback enchantment on an item).