Class GlowEnderDragon

All Implemented Interfaces:
net.kyori.adventure.audience.Audience, net.kyori.adventure.text.event.HoverEventSource<net.kyori.adventure.text.event.HoverEvent.ShowEntity>, org.bukkit.attribute.Attributable, org.bukkit.command.CommandSender, org.bukkit.entity.Boss, org.bukkit.entity.ComplexLivingEntity, org.bukkit.entity.Creature, org.bukkit.entity.Damageable, org.bukkit.entity.EnderDragon, org.bukkit.entity.Entity, org.bukkit.entity.LivingEntity, org.bukkit.entity.Mob, org.bukkit.entity.Monster, org.bukkit.loot.Lootable, org.bukkit.metadata.Metadatable, org.bukkit.Nameable, org.bukkit.permissions.Permissible, org.bukkit.permissions.ServerOperator, org.bukkit.persistence.PersistentDataHolder, org.bukkit.projectiles.ProjectileSource

public class GlowEnderDragon extends GlowBoss implements org.bukkit.entity.EnderDragon
  • Constructor Details

    • GlowEnderDragon

      public GlowEnderDragon(org.bukkit.Location loc, org.bukkit.entity.EntityType type, double maxHealth)
      Creates an ender dragon.
      Parameters:
      loc - the location
      type - the entity type
      maxHealth - the maximum health
    • GlowEnderDragon

      public GlowEnderDragon(org.bukkit.Location loc)
  • Method Details

    • getPhase

      @NotNull public @NotNull org.bukkit.entity.EnderDragon.Phase getPhase()
      Specified by:
      getPhase in interface org.bukkit.entity.EnderDragon
    • setPhase

      public void setPhase(org.bukkit.entity.EnderDragon.Phase phase)
      Specified by:
      setPhase in interface org.bukkit.entity.EnderDragon
    • getDragonBattle

      @Nullable public @Nullable org.bukkit.boss.DragonBattle getDragonBattle()
      Specified by:
      getDragonBattle in interface org.bukkit.entity.EnderDragon
    • getDeathAnimationTicks

      public int getDeathAnimationTicks()
      Specified by:
      getDeathAnimationTicks in interface org.bukkit.entity.EnderDragon
    • getParts

      @NotNull public @NotNull Set<org.bukkit.entity.ComplexEntityPart> getParts()
      Specified by:
      getParts in interface org.bukkit.entity.ComplexLivingEntity
    • getDeathSound

      protected org.bukkit.Sound getDeathSound()
      Description copied from class: GlowLivingEntity
      Get the death sound of this entity, or null for silence.
      Overrides:
      getDeathSound in class GlowLivingEntity
      Returns:
      the death sound if available
    • getAmbientSound

      protected org.bukkit.Sound getAmbientSound()
      Description copied from class: GlowLivingEntity
      Get the ambient sound this entity makes randomly, or null for silence.
      Overrides:
      getAmbientSound in class GlowLivingEntity
      Returns:
      the ambient sound if available