Package wtf.choco.arrows.arrow
Class AlchemicalArrowLight
java.lang.Object
wtf.choco.arrows.api.AlchemicalArrow
wtf.choco.arrows.arrow.ConfigurableAlchemicalArrow
wtf.choco.arrows.arrow.AlchemicalArrowLight
public class AlchemicalArrowLight extends ConfigurableAlchemicalArrow
- 
Field SummaryFields Modifier and Type Field Description static ArrowPropertyPROPERTY_DISORIENTstatic ArrowPropertyPROPERTY_LIGHTNING_CHANCE
- 
Constructor SummaryConstructors Constructor Description AlchemicalArrowLight(AlchemicalArrows plugin)
- 
Method SummaryModifier and Type Method Description voidonHitEntity(AlchemicalArrowEntity arrow, org.bukkit.entity.Entity entity)Called when the arrow hits an entity (this excludes Players.voidonHitPlayer(AlchemicalArrowEntity arrow, org.bukkit.entity.Player player)Called when the arrow hits a playervoidtick(AlchemicalArrowEntity arrow, org.bukkit.Location location)Called 20 times every second.Methods inherited from class wtf.choco.arrows.arrow.ConfigurableAlchemicalArrowgetDisplayName, getItem, getKey, onShootFromPlayer, reloadMethods inherited from class wtf.choco.arrows.api.AlchemicalArrowcreateItemStack, createItemStack, createNewArrow, equals, getProperties, hashCode, hitEntityEventHandler, hitGroundEventHandler, matchesItem, onHitBlock, onShootFromBlockSource, onShootFromSkeleton, shootEventHandler
- 
Field Details- 
PROPERTY_DISORIENT
- 
PROPERTY_LIGHTNING_CHANCE
 
- 
- 
Constructor Details- 
AlchemicalArrowLight
 
- 
- 
Method Details- 
tickDescription copied from class:AlchemicalArrowCalled 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:
- tickin class- AlchemicalArrow
- Parameters:
- arrow- the alchemical arrow entity instance
- location- the arrow's current location at this tick
 
- 
onHitPlayerDescription copied from class:AlchemicalArrowCalled when the arrow hits a player- Overrides:
- onHitPlayerin class- AlchemicalArrow
- Parameters:
- arrow- the alchemical arrow entity instance
- player- the player damaged by the arrow
 
- 
onHitEntityDescription copied from class:AlchemicalArrowCalled when the arrow hits an entity (this excludes Players. For Players, seeAlchemicalArrow.onHitPlayer(AlchemicalArrowEntity, Player))- Overrides:
- onHitEntityin class- AlchemicalArrow
- Parameters:
- arrow- the alchemical arrow entity instance
- entity- the entity damaged by the arrow
 
 
-