Class GlowArrow

All Implemented Interfaces:
net.kyori.adventure.audience.Audience, net.kyori.adventure.text.event.HoverEventSource<net.kyori.adventure.text.event.HoverEvent.ShowEntity>, org.bukkit.command.CommandSender, org.bukkit.entity.AbstractArrow, org.bukkit.entity.Arrow, org.bukkit.entity.Entity, org.bukkit.entity.Projectile, org.bukkit.metadata.Metadatable, org.bukkit.Nameable, org.bukkit.permissions.Permissible, org.bukkit.permissions.ServerOperator, org.bukkit.persistence.PersistentDataHolder
Direct Known Subclasses:
GlowSpectralArrow, GlowTippedArrow

public class GlowArrow extends GlowProjectile implements org.bukkit.entity.Arrow
  • Constructor Details

    • GlowArrow

      public GlowArrow(org.bukkit.Location location)
      Creates an arrow entity.
      Parameters:
      location - the initial location
  • Method Details

    • pulsePhysics

      protected void pulsePhysics()
      Overrides:
      pulsePhysics in class GlowProjectile
    • setOnGround

      public void setOnGround(boolean onGround)
      Description copied from class: GlowEntity
      Sets the on-ground flag and clears fall distance.
      Overrides:
      setOnGround in class GlowEntity
      Parameters:
      onGround - true if this entity is now on the ground; false otherwise
    • pulse

      public void pulse()
      Description copied from class: GlowEntity
      Called every game cycle. Subclasses should implement this to implement periodic functionality e.g. mob AI.
      Overrides:
      pulse in class GlowEntity
    • collide

      public void collide(org.bukkit.block.Block block)
      Description copied from class: GlowEntity
      Collide with the target block.
      Specified by:
      collide in class GlowProjectile
      Parameters:
      block - a block whose type Material.isOccluding()
    • collide

      public void collide(org.bukkit.entity.LivingEntity entity)
      Specified by:
      collide in class GlowProjectile
    • getObjectId

      protected int getObjectId()
      Specified by:
      getObjectId in class GlowProjectile
    • getPierceLevel

      public int getPierceLevel()
      Specified by:
      getPierceLevel in interface org.bukkit.entity.AbstractArrow
    • setPierceLevel

      public void setPierceLevel(int i)
      Specified by:
      setPierceLevel in interface org.bukkit.entity.AbstractArrow
    • isCritical

      public boolean isCritical()
      Specified by:
      isCritical in interface org.bukkit.entity.AbstractArrow
    • setCritical

      public void setCritical(boolean critical)
      Specified by:
      setCritical in interface org.bukkit.entity.AbstractArrow
    • getPickupStatus

      @NotNull public @NotNull org.bukkit.entity.AbstractArrow.PickupStatus getPickupStatus()
      Specified by:
      getPickupStatus in interface org.bukkit.entity.AbstractArrow
    • setPickupStatus

      public void setPickupStatus(@NotNull @NotNull org.bukkit.entity.AbstractArrow.PickupStatus pickupStatus)
      Specified by:
      setPickupStatus in interface org.bukkit.entity.AbstractArrow
    • isShotFromCrossbow

      public boolean isShotFromCrossbow()
      Specified by:
      isShotFromCrossbow in interface org.bukkit.entity.AbstractArrow
    • setShotFromCrossbow

      public void setShotFromCrossbow(boolean b)
      Specified by:
      setShotFromCrossbow in interface org.bukkit.entity.AbstractArrow
    • getItemStack

      @NotNull public @NotNull org.bukkit.inventory.ItemStack getItemStack()
      Specified by:
      getItemStack in interface org.bukkit.entity.AbstractArrow
    • getAttachedBlock

      public org.bukkit.block.Block getAttachedBlock()
      Specified by:
      getAttachedBlock in interface org.bukkit.entity.AbstractArrow
    • isInBlock

      public boolean isInBlock()
      Specified by:
      isInBlock in interface org.bukkit.entity.AbstractArrow
    • spigot

      public @NotNull org.bukkit.entity.Entity.Spigot spigot()
      Specified by:
      spigot in interface org.bukkit.command.CommandSender
      Specified by:
      spigot in interface org.bukkit.entity.Entity
      Overrides:
      spigot in class GlowEntity
    • getBasePotionData

      @NotNull public @NotNull org.bukkit.potion.PotionData getBasePotionData()
      Specified by:
      getBasePotionData in interface org.bukkit.entity.Arrow
    • setBasePotionData

      public void setBasePotionData(@NotNull @NotNull org.bukkit.potion.PotionData potionData)
      Specified by:
      setBasePotionData in interface org.bukkit.entity.Arrow
    • getColor

      @NotNull public @NotNull org.bukkit.Color getColor()
      Specified by:
      getColor in interface org.bukkit.entity.Arrow
    • setColor

      public void setColor(@NotNull @NotNull org.bukkit.Color color)
      Specified by:
      setColor in interface org.bukkit.entity.Arrow
    • hasCustomEffects

      public boolean hasCustomEffects()
      Specified by:
      hasCustomEffects in interface org.bukkit.entity.Arrow
    • getCustomEffects

      @NotNull public @NotNull List<org.bukkit.potion.PotionEffect> getCustomEffects()
      Specified by:
      getCustomEffects in interface org.bukkit.entity.Arrow
    • addCustomEffect

      public boolean addCustomEffect(@NotNull @NotNull org.bukkit.potion.PotionEffect potionEffect, boolean b)
      Specified by:
      addCustomEffect in interface org.bukkit.entity.Arrow
    • removeCustomEffect

      public boolean removeCustomEffect(@NotNull @NotNull org.bukkit.potion.PotionEffectType potionEffectType)
      Specified by:
      removeCustomEffect in interface org.bukkit.entity.Arrow
    • hasCustomEffect

      public boolean hasCustomEffect(@Nullable @Nullable org.bukkit.potion.PotionEffectType potionEffectType)
      Specified by:
      hasCustomEffect in interface org.bukkit.entity.Arrow
    • clearCustomEffects

      public void clearCustomEffects()
      Specified by:
      clearCustomEffects in interface org.bukkit.entity.Arrow
    • getKnockbackStrength

      public int getKnockbackStrength()
      Specified by:
      getKnockbackStrength in interface org.bukkit.entity.AbstractArrow
    • setKnockbackStrength

      public void setKnockbackStrength(int knockbackStrength)
      Specified by:
      setKnockbackStrength in interface org.bukkit.entity.AbstractArrow
    • getLife

      public short getLife()
    • setLife

      public void setLife(short life)
    • getDamage

      public double getDamage()
      Specified by:
      getDamage in interface org.bukkit.entity.AbstractArrow
    • setDamage

      public void setDamage(double damage)
      Specified by:
      setDamage in interface org.bukkit.entity.AbstractArrow