Class GlowZombie

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.Ageable, 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.Zombie, 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
Direct Known Subclasses:
GlowHusk, GlowPigZombie, GlowZombieVillager

public class GlowZombie extends GlowMonster implements org.bukkit.entity.Zombie
  • Constructor Details

    • GlowZombie

      public GlowZombie(org.bukkit.Location loc)
      Creates a zombie.
      Parameters:
      loc - the location
    • GlowZombie

      public GlowZombie(org.bukkit.Location loc, org.bukkit.entity.EntityType type)
      Creates a zombie.
      Parameters:
      loc - the location
      type - the zombie type
  • Method Details

    • createSpawnMessage

      public List<com.flowpowered.network.Message> createSpawnMessage()
      Description copied from class: GlowEntity
      Creates a list of Messages which can be sent to a client to spawn this entity. Implementations in concrete subclasses may return a shallowly immutable list.
      Overrides:
      createSpawnMessage in class GlowCreature
      Returns:
      A list of messages which can spawn this entity.
    • isBaby

      public boolean isBaby()
      Specified by:
      isBaby in interface org.bukkit.entity.Zombie
    • setBaby

      public void setBaby(boolean value)
      Specified by:
      setBaby in interface org.bukkit.entity.Zombie
    • setBaby

      public void setBaby()
      Specified by:
      setBaby in interface org.bukkit.entity.Ageable
    • isVillager

      public boolean isVillager()
      Specified by:
      isVillager in interface org.bukkit.entity.Zombie
    • setVillager

      public void setVillager(boolean value)
      Specified by:
      setVillager in interface org.bukkit.entity.Zombie
    • getVillagerProfession

      public org.bukkit.entity.Villager.Profession getVillagerProfession()
      Specified by:
      getVillagerProfession in interface org.bukkit.entity.Zombie
    • setVillagerProfession

      public void setVillagerProfession(org.bukkit.entity.Villager.Profession profession)
      Specified by:
      setVillagerProfession in interface org.bukkit.entity.Zombie
    • isConverting

      public boolean isConverting()
      Specified by:
      isConverting in interface org.bukkit.entity.Zombie
    • getConversionTime

      public int getConversionTime()
      Specified by:
      getConversionTime in interface org.bukkit.entity.Zombie
    • setConversionTime

      public void setConversionTime(int time)
      Specified by:
      setConversionTime in interface org.bukkit.entity.Zombie
    • isDrowning

      public boolean isDrowning()
      Specified by:
      isDrowning in interface org.bukkit.entity.Zombie
    • startDrowning

      public void startDrowning(int drownedConversionTime)
      Specified by:
      startDrowning in interface org.bukkit.entity.Zombie
    • stopDrowning

      public void stopDrowning()
      Specified by:
      stopDrowning in interface org.bukkit.entity.Zombie
    • isArmsRaised

      public boolean isArmsRaised()
      Specified by:
      isArmsRaised in interface org.bukkit.entity.Zombie
    • setArmsRaised

      public void setArmsRaised(boolean raised)
      Specified by:
      setArmsRaised in interface org.bukkit.entity.Zombie
    • shouldBurnInDay

      public boolean shouldBurnInDay()
      Specified by:
      shouldBurnInDay in interface org.bukkit.entity.Zombie
    • setShouldBurnInDay

      public void setShouldBurnInDay(boolean shouldBurnInDay)
      Specified by:
      setShouldBurnInDay in interface org.bukkit.entity.Zombie
    • canBreakDoors

      public boolean canBreakDoors()
      Specified by:
      canBreakDoors in interface org.bukkit.entity.Zombie
    • getSoundPitch

      protected float getSoundPitch()
      Description copied from class: GlowLivingEntity
      The pitch of the sounds this entity makes.
      Overrides:
      getSoundPitch in class GlowLivingEntity
      Returns:
      the pitch of the sounds
    • 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
    • setAdult

      public void setAdult()
      Specified by:
      setAdult in interface org.bukkit.entity.Ageable
    • isAdult

      public boolean isAdult()
      Specified by:
      isAdult in interface org.bukkit.entity.Ageable
    • canBreed

      public boolean canBreed()
      Specified by:
      canBreed in interface org.bukkit.entity.Ageable
    • setBreed

      public void setBreed(boolean b)
      Specified by:
      setBreed in interface org.bukkit.entity.Ageable
    • getAgeLock

      public boolean getAgeLock()
      Specified by:
      getAgeLock in interface org.bukkit.entity.Ageable
    • setCanBreakDoors

      public void setCanBreakDoors(boolean canBreakDoors)
      Specified by:
      setCanBreakDoors in interface org.bukkit.entity.Zombie
    • getAge

      public int getAge()
      Specified by:
      getAge in interface org.bukkit.entity.Ageable
    • setAge

      public void setAge(int age)
      Specified by:
      setAge in interface org.bukkit.entity.Ageable
    • setAgeLock

      public void setAgeLock(boolean ageLock)
      Specified by:
      setAgeLock in interface org.bukkit.entity.Ageable