Package wtf.choco.arrows.arrow
Class AlchemicalArrowAir
java.lang.Object
wtf.choco.arrows.api.AlchemicalArrow
wtf.choco.arrows.arrow.ConfigurableAlchemicalArrow
wtf.choco.arrows.arrow.AlchemicalArrowAir
public class AlchemicalArrowAir extends ConfigurableAlchemicalArrow
-
Field Summary
Fields Modifier and Type Field Description static ArrowProperty
PROPERTY_BREATHE_RADIUS
static ArrowProperty
PROPERTY_LAUNCH_STRENGTH_MAX
static ArrowProperty
PROPERTY_LAUNCH_STRENGTH_MIN
-
Constructor Summary
Constructors Constructor Description AlchemicalArrowAir(AlchemicalArrows plugin)
-
Method Summary
Modifier and Type Method Description void
hitEntityEventHandler(AlchemicalArrowEntity arrow, org.bukkit.event.entity.EntityDamageByEntityEvent event)
Called the instant beforeAlchemicalArrow.onHitPlayer(AlchemicalArrowEntity, Player)
orAlchemicalArrow.onHitEntity(AlchemicalArrowEntity, Entity)
is called.void
tick(AlchemicalArrowEntity arrow, org.bukkit.Location location)
Called 20 times every second.Methods inherited from class wtf.choco.arrows.arrow.ConfigurableAlchemicalArrow
getDisplayName, getItem, getKey, onShootFromPlayer, reload
Methods inherited from class wtf.choco.arrows.api.AlchemicalArrow
createItemStack, createItemStack, createNewArrow, equals, getProperties, hashCode, hitGroundEventHandler, matchesItem, onHitBlock, onHitEntity, onHitPlayer, onShootFromBlockSource, onShootFromSkeleton, shootEventHandler
-
Field Details
-
PROPERTY_BREATHE_RADIUS
-
PROPERTY_LAUNCH_STRENGTH_MIN
-
PROPERTY_LAUNCH_STRENGTH_MAX
-
-
Constructor Details
-
AlchemicalArrowAir
-
-
Method Details
-
tick
Description copied from class:AlchemicalArrow
Called 20 times every second. This method is intended for displaying particles around the arrow, performing tasks whilst the arrow is still in the world, etc.- Overrides:
tick
in classAlchemicalArrow
- Parameters:
arrow
- the alchemical arrow entity instancelocation
- the arrow's current location at this tick
-
hitEntityEventHandler
public void hitEntityEventHandler(AlchemicalArrowEntity arrow, org.bukkit.event.entity.EntityDamageByEntityEvent event)Description copied from class:AlchemicalArrow
Called the instant beforeAlchemicalArrow.onHitPlayer(AlchemicalArrowEntity, Player)
orAlchemicalArrow.onHitEntity(AlchemicalArrowEntity, Entity)
is called. Used to cancel events if necessary- Overrides:
hitEntityEventHandler
in classAlchemicalArrow
- Parameters:
arrow
- the alchemical arrow entity instanceevent
- the EntityDamageByEntityEvent source
-