Class GlowVex

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.Creature, org.bukkit.entity.Damageable, org.bukkit.entity.Entity, org.bukkit.entity.LivingEntity, org.bukkit.entity.Mob, org.bukkit.entity.Monster, org.bukkit.entity.Vex, 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 GlowVex extends GlowMonster implements org.bukkit.entity.Vex
  • Constructor Details

    • GlowVex

      public GlowVex(org.bukkit.Location loc)
      Creates a vex with a random lifespan.
      Parameters:
      loc - the location
  • Method Details

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

      public boolean isCharging()
      Specified by:
      isCharging in interface org.bukkit.entity.Vex
    • setCharging

      public void setCharging(boolean charging)
      Specified by:
      setCharging in interface org.bukkit.entity.Vex
    • getLifeTicks

      public int getLifeTicks()
    • setLifeTicks

      public void setLifeTicks(int lifeTicks)
    • getSummoner

      public org.bukkit.entity.Mob getSummoner()
      Specified by:
      getSummoner in interface org.bukkit.entity.Vex
    • setSummoner

      public void setSummoner(org.bukkit.entity.Mob summoner)
      Specified by:
      setSummoner in interface org.bukkit.entity.Vex