Package org.mcmonkey.sentinel
Class SentinelWeaponHelper
java.lang.Object
org.mcmonkey.sentinel.SentinelHelperObject
org.mcmonkey.sentinel.SentinelWeaponHelper
Helper for weapon management, particular attacking.
- 
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final org.bukkit.entity.EntityTypestatic final org.bukkit.entity.EntityTypestatic final org.bukkit.entity.EntityTypeFields inherited from class org.mcmonkey.sentinel.SentinelHelperObject
attackHelper, itemHelper, sentinel, targetingHelper, weaponHelper - 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionvoidaddedPunchEffects(org.bukkit.entity.LivingEntity entity) Processes any extra effects (item enchantments) to apply when punching an entity.voidfireArrow(org.bukkit.inventory.ItemStack type, org.bukkit.Location target, org.bukkit.util.Vector lead) Fires an arrow from the NPC at a target.voidfireEgg(org.bukkit.Location target) Fires an egg from the NPC at a target.voidfireEvokerFangs(org.bukkit.Location target) Spawns a line of evoker fangs towards the target.voidfireFireball(org.bukkit.Location target) Fires a fireballs from the NPC at a target.voidfireLlamaSpit(org.bukkit.Location target) Fires llama spit.voidfirePearl(org.bukkit.entity.LivingEntity target) Fires a pearl from the NPC at a target.voidfirePotion(org.bukkit.inventory.ItemStack potion, org.bukkit.Location target, org.bukkit.util.Vector lead) Fires a potion from the NPC at a target.voidfireShulkerBullet(org.bukkit.entity.LivingEntity entity) Fires shulker bullet.voidfireSkull(org.bukkit.Location target) Fires a skull from the NPC at a target.voidfireSnowball(org.bukkit.Location target) Fires a snowball from the NPC at a target.voidfireTrident(org.bukkit.Location target) Fires a trident from the NPC at a target.voidknockback(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).voidpunch(org.bukkit.entity.LivingEntity entity) Makes an NPC punch a target.Methods inherited from class org.mcmonkey.sentinel.SentinelHelperObject
debug, getLivingEntity, getNPC, setTraitObject 
- 
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). 
 -