Class GlowSheep

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.Sheep, org.bukkit.loot.Lootable, org.bukkit.material.Colorable, 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 GlowSheep extends GlowAnimal implements org.bukkit.entity.Sheep
  • Constructor Details

    • GlowSheep

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

    • setSheared

      public void setSheared(boolean sheared)
      Specified by:
      setSheared in interface org.bukkit.entity.Sheep
    • setColor

      public void setColor(org.bukkit.DyeColor dyeColor)
      Specified by:
      setColor in interface org.bukkit.material.Colorable
    • entityInteract

      public boolean entityInteract(GlowPlayer player, InteractEntityMessage message)
      Overrides:
      entityInteract in class GlowAnimal
    • 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
    • isSheared

      public boolean isSheared()
      Specified by:
      isSheared in interface org.bukkit.entity.Sheep
    • getColor

      public org.bukkit.DyeColor getColor()
      Specified by:
      getColor in interface org.bukkit.material.Colorable