Class GlowFireball

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.Entity, org.bukkit.entity.Explosive, org.bukkit.entity.Fireball, 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:
GlowWitherSkull

public class GlowFireball extends GlowProjectile implements org.bukkit.entity.Fireball
  • Constructor Details

    • GlowFireball

      public GlowFireball(org.bukkit.Location location)
      Creates a fireball.
      Parameters:
      location - the initial location
  • Method Details

    • 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
    • getDirection

      public org.bukkit.util.Vector getDirection()
      Specified by:
      getDirection in interface org.bukkit.entity.Fireball
    • setDirection

      public void setDirection(org.bukkit.util.Vector vector)
      Specified by:
      setDirection in interface org.bukkit.entity.Fireball
    • setIsIncendiary

      public void setIsIncendiary(boolean b)
      Specified by:
      setIsIncendiary in interface org.bukkit.entity.Explosive
    • isIncendiary

      public boolean isIncendiary()
      Specified by:
      isIncendiary in interface org.bukkit.entity.Explosive
    • getYield

      public float getYield()
      Specified by:
      getYield in interface org.bukkit.entity.Explosive
    • setYield

      public void setYield(float yield)
      Specified by:
      setYield in interface org.bukkit.entity.Explosive