Package wtf.choco.arrows.arrow
Class AlchemicalArrowNecrotic
java.lang.Object
wtf.choco.arrows.api.AlchemicalArrow
wtf.choco.arrows.arrow.ConfigurableAlchemicalArrow
wtf.choco.arrows.arrow.AlchemicalArrowNecrotic
public class AlchemicalArrowNecrotic extends ConfigurableAlchemicalArrow
-
Constructor Summary
Constructors Constructor Description AlchemicalArrowNecrotic(AlchemicalArrows plugin) -
Method Summary
Modifier and Type Method Description voidhitEntityEventHandler(AlchemicalArrowEntity arrow, org.bukkit.event.entity.EntityDamageByEntityEvent event)Called the instant beforeAlchemicalArrow.onHitPlayer(AlchemicalArrowEntity, Player)orAlchemicalArrow.onHitEntity(AlchemicalArrowEntity, Entity)is called.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.ConfigurableAlchemicalArrow
getDisplayName, getItem, getKey, onShootFromPlayer, reloadMethods inherited from class wtf.choco.arrows.api.AlchemicalArrow
createItemStack, createItemStack, createNewArrow, equals, getProperties, hashCode, hitGroundEventHandler, matchesItem, onHitBlock, onHitEntity, onShootFromBlockSource, onShootFromSkeleton, shootEventHandler
-
Constructor Details
-
AlchemicalArrowNecrotic
-
-
Method Details
-
tick
Description 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 classAlchemicalArrow- Parameters:
arrow- the alchemical arrow entity instancelocation- the arrow's current location at this tick
-
onHitPlayer
Description copied from class:AlchemicalArrowCalled when the arrow hits a player- Overrides:
onHitPlayerin classAlchemicalArrow- Parameters:
arrow- the alchemical arrow entity instanceplayer- the player damaged by the arrow
-
hitEntityEventHandler
public void hitEntityEventHandler(AlchemicalArrowEntity arrow, org.bukkit.event.entity.EntityDamageByEntityEvent event)Description copied from class:AlchemicalArrowCalled the instant beforeAlchemicalArrow.onHitPlayer(AlchemicalArrowEntity, Player)orAlchemicalArrow.onHitEntity(AlchemicalArrowEntity, Entity)is called. Used to cancel events if necessary- Overrides:
hitEntityEventHandlerin classAlchemicalArrow- Parameters:
arrow- the alchemical arrow entity instanceevent- the EntityDamageByEntityEvent source
-