Class GlowWither

All Implemented Interfaces:
com.destroystokyo.paper.entity.RangedEntity, 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.Creature, org.bukkit.entity.Damageable, org.bukkit.entity.Entity, org.bukkit.entity.LivingEntity, org.bukkit.entity.Mob, org.bukkit.entity.Monster, org.bukkit.entity.Wither, 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 GlowWither extends GlowBoss implements org.bukkit.entity.Wither
  • Constructor Details

    • GlowWither

      public GlowWither(org.bukkit.Location loc)
      Creates a wither.
      Parameters:
      loc - the location
  • Method Details

    • damage

      public void damage(double amount, org.bukkit.entity.Entity source, @NotNull org.bukkit.event.entity.EntityDamageEvent.DamageCause cause)
      Specified by:
      damage in interface org.bukkit.entity.Damageable
      Overrides:
      damage in class GlowLivingEntity
    • setInvulnerableTicks

      public void setInvulnerableTicks(int invulnerableTicks)
      Specified by:
      setInvulnerableTicks in interface org.bukkit.entity.Wither
    • setCenterTarget

      public void setCenterTarget(org.bukkit.entity.Entity centerTarget)
      Sets the center target.
      Parameters:
      centerTarget - the new center target
    • setLeftTarget

      public void setLeftTarget(org.bukkit.entity.Entity leftTarget)
      Sets the left target.
      Parameters:
      leftTarget - the new left target
    • setRightTarget

      public void setRightTarget(org.bukkit.entity.Entity rightTarget)
      Sets the right target.
      Parameters:
      rightTarget - the new right target
    • 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 GlowMonster
    • getHurtSound

      protected org.bukkit.Sound getHurtSound()
      Description copied from class: GlowLivingEntity
      Get the hurt sound of this entity, or null for silence.
      Overrides:
      getHurtSound in class GlowLivingEntity
      Returns:
      the hurt sound if available
    • 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
    • isUndead

      public boolean isUndead()
      Description copied from class: GlowLivingEntity
      Get whether or not this entity is undead.
      Overrides:
      isUndead in class GlowLivingEntity
      Returns:
      true if this entity is undead, false otherwise
    • rangedAttack

      public void rangedAttack(org.bukkit.entity.LivingEntity target, float charge)
      Specified by:
      rangedAttack in interface com.destroystokyo.paper.entity.RangedEntity
    • setChargingAttack

      public void setChargingAttack(boolean raiseHands)
      Specified by:
      setChargingAttack in interface com.destroystokyo.paper.entity.RangedEntity
    • canTravelThroughPortals

      public boolean canTravelThroughPortals()
      Specified by:
      canTravelThroughPortals in interface org.bukkit.entity.Wither
    • getInvulnerableTicks

      public int getInvulnerableTicks()
      Specified by:
      getInvulnerableTicks in interface org.bukkit.entity.Wither
    • getCenterTarget

      public org.bukkit.entity.Entity getCenterTarget()
    • getLeftTarget

      public org.bukkit.entity.Entity getLeftTarget()
    • getRightTarget

      public org.bukkit.entity.Entity getRightTarget()
    • isCharged

      public boolean isCharged()
      Specified by:
      isCharged in interface org.bukkit.entity.Wither
    • setCharged

      public void setCharged(boolean charged)
    • setCanTravelThroughPortals

      public void setCanTravelThroughPortals(boolean canTravelThroughPortals)
      Specified by:
      setCanTravelThroughPortals in interface org.bukkit.entity.Wither