Package wtf.choco.arrows.arrow
Class AlchemicalArrowFire
java.lang.Object
wtf.choco.arrows.api.AlchemicalArrow
wtf.choco.arrows.arrow.ConfigurableAlchemicalArrow
wtf.choco.arrows.arrow.AlchemicalArrowFire
public class AlchemicalArrowFire extends ConfigurableAlchemicalArrow
-
Field Summary
Fields Modifier and Type Field Description static ArrowProperty
PROPERTY_EXTINGUISHABLE
static ArrowProperty
PROPERTY_FIRE_TICKS_MAX
static ArrowProperty
PROPERTY_FIRE_TICKS_MIN
static ArrowProperty
PROPERTY_TICKS_TO_MELT
-
Constructor Summary
Constructors Constructor Description AlchemicalArrowFire(AlchemicalArrows plugin)
-
Method Summary
Modifier and Type Method Description @NotNull AlchemicalArrowEntity
createNewArrow(@NotNull org.bukkit.entity.Arrow arrow)
Create a new instance of anAlchemicalArrowEntity
.void
onHitEntity(AlchemicalArrowEntity arrow, org.bukkit.entity.Entity entity)
Called when the arrow hits an entity (this excludes Players.void
onHitPlayer(AlchemicalArrowEntity arrow, org.bukkit.entity.Player player)
Called when the arrow hits a playervoid
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, equals, getProperties, hashCode, hitEntityEventHandler, hitGroundEventHandler, matchesItem, onHitBlock, onShootFromBlockSource, onShootFromSkeleton, shootEventHandler
-
Field Details
-
PROPERTY_EXTINGUISHABLE
-
PROPERTY_FIRE_TICKS_MIN
-
PROPERTY_FIRE_TICKS_MAX
-
PROPERTY_TICKS_TO_MELT
-
-
Constructor Details
-
AlchemicalArrowFire
-
-
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
-
onHitPlayer
Description copied from class:AlchemicalArrow
Called when the arrow hits a player- Overrides:
onHitPlayer
in classAlchemicalArrow
- Parameters:
arrow
- the alchemical arrow entity instanceplayer
- the player damaged by the arrow
-
onHitEntity
Description copied from class:AlchemicalArrow
Called when the arrow hits an entity (this excludes Players. For Players, seeAlchemicalArrow.onHitPlayer(AlchemicalArrowEntity, Player)
)- Overrides:
onHitEntity
in classAlchemicalArrow
- Parameters:
arrow
- the alchemical arrow entity instanceentity
- the entity damaged by the arrow
-
createNewArrow
@NotNull public @NotNull AlchemicalArrowEntity createNewArrow(@NotNull @NotNull org.bukkit.entity.Arrow arrow)Description copied from class:AlchemicalArrow
Create a new instance of anAlchemicalArrowEntity
. If a custom AlchemicalArrowEntity implementation is used, this method must be overridden to return a custom instance of it. Under no circumstance should additional, non-arrow entity-related code be executed in an overridden implementation of this method. For additional logic, see AlchemicalArrow's various methods and override them where required- Overrides:
createNewArrow
in classAlchemicalArrow
- Parameters:
arrow
- the BukkitArrow
instance from which to create an AlchemicalArrowEntity- Returns:
- the new AlchemicalArrowEntity instance of this implementation
-