Class GlowWolf

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.Animals, org.bukkit.entity.Breedable, org.bukkit.entity.Creature, org.bukkit.entity.Damageable, org.bukkit.entity.Entity, org.bukkit.entity.LivingEntity, org.bukkit.entity.Mob, org.bukkit.entity.Sittable, org.bukkit.entity.Tameable, org.bukkit.entity.Wolf, 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 GlowWolf extends GlowTameable implements org.bukkit.entity.Wolf
  • Constructor Details

    • GlowWolf

      public GlowWolf(org.bukkit.Location location)
      Creates a wolf with a random collar color.
      Parameters:
      location - the location
  • Method Details

    • isAngry

      public boolean isAngry()
      Specified by:
      isAngry in interface org.bukkit.entity.Wolf
    • setAngry

      public void setAngry(boolean angry)
      Specified by:
      setAngry in interface org.bukkit.entity.Wolf
    • getCollarColor

      public org.bukkit.DyeColor getCollarColor()
      Specified by:
      getCollarColor in interface org.bukkit.entity.Wolf
    • setCollarColor

      public void setCollarColor(org.bukkit.DyeColor color)
      Specified by:
      setCollarColor in interface org.bukkit.entity.Wolf
    • isBegging

      public boolean isBegging()
      Gets whether the wolf is in the 'begging' state.
      Returns:
      whether the wolf is in the 'begging' state.
    • setBegging

      public void setBegging(boolean begging)
      Sets whether the wolf is in the 'begging' state.
      Parameters:
      begging - whether the wolf is in the 'begging' state.
    • setTamed

      public void setTamed(boolean isTamed)
      Specified by:
      setTamed in interface org.bukkit.entity.Tameable
      Overrides:
      setTamed in class GlowTameable
    • setOwner

      public void setOwner(org.bukkit.entity.AnimalTamer animalTamer)
      Specified by:
      setOwner in interface org.bukkit.entity.Tameable
      Overrides:
      setOwner in class GlowTameable
    • entityInteract

      public boolean entityInteract(GlowPlayer player, InteractEntityMessage message)
      Overrides:
      entityInteract in class GlowAnimal
    • setHealth

      public void setHealth(double health)
      Specified by:
      setHealth in interface org.bukkit.entity.Damageable
      Overrides:
      setHealth in class GlowLivingEntity
    • 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
    • getBreedingFoods

      public Set<org.bukkit.Material> getBreedingFoods()
      Description copied from class: GlowAnimal
      Returns an immutable set containing the breeding foods for the current animal.
      Overrides:
      getBreedingFoods in class GlowAnimal
      Returns:
      an immutable set containing Material