Class GlowHorse

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.AbstractHorse, 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.Horse, org.bukkit.entity.LivingEntity, org.bukkit.entity.Mob, org.bukkit.entity.Tameable, org.bukkit.entity.Vehicle, org.bukkit.inventory.InventoryHolder, 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 GlowHorse extends GlowAbstractHorse implements org.bukkit.entity.Horse
  • Constructor Details

    • GlowHorse

      public GlowHorse(org.bukkit.Location location)
  • Method Details

    • tryFeed

      protected boolean tryFeed(org.bukkit.Material food, GlowPlayer player)
      Description copied from class: GlowAnimal
      Determines whether this entity can eat an item while healthy, and if so, applies the effects of eating it.
      tryFeed in class GlowAbstractHorse
      food - an item that may be food
      player - the player feeding the entity, for statistical purposes
      true if the item should be consumed; false otherwise
    • setColor

      public void setColor(org.bukkit.entity.Horse.Color color)
      Specified by:
      setColor in interface org.bukkit.entity.Horse
    • setStyle

      public void setStyle(org.bukkit.entity.Horse.Style style)
      Specified by:
      setStyle in interface org.bukkit.entity.Horse
    • isCarryingChest

      public boolean isCarryingChest()
      Specified by:
      isCarryingChest in interface org.bukkit.entity.Horse
    • setCarryingChest

      public void setCarryingChest(boolean b)
      Specified by:
      setCarryingChest in interface org.bukkit.entity.Horse
    • hasReproduced

      public boolean hasReproduced()
    • createSpawnMessage

      public List<> 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.
      createSpawnMessage in class GlowAbstractHorse
      A list of messages which can spawn this entity.
    • getHurtSound

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

      public org.bukkit.entity.Ageable createBaby()
      Description copied from class: GlowAgeable
      Creates a baby clone of this creature, as when right-clicking it with a spawn egg.
      createBaby in class GlowAgeable
      a baby clone of this creature
    • getVariant

      public org.bukkit.entity.Horse.Variant getVariant()
      Specified by:
      getVariant in interface org.bukkit.entity.AbstractHorse
      getVariant in class GlowAbstractHorse
    • setVariant

      public void setVariant(org.bukkit.entity.Horse.Variant variant)
      Specified by:
      setVariant in interface org.bukkit.entity.AbstractHorse
      setVariant in class GlowAbstractHorse
    • getColor

      public org.bukkit.entity.Horse.Color getColor()
      Specified by:
      getColor in interface org.bukkit.entity.Horse
    • getStyle

      public org.bukkit.entity.Horse.Style getStyle()
      Specified by:
      getStyle in interface org.bukkit.entity.Horse
    • isEatingHay

      public boolean isEatingHay()
    • setEatingHay

      public void setEatingHay(boolean eatingHay)
    • setHasReproduced

      public void setHasReproduced(boolean hasReproduced)
    • getTemper

      public int getTemper()
    • setTemper

      public void setTemper(int temper)
    • getInventory

      public org.bukkit.inventory.HorseInventory getInventory()
      Specified by:
      getInventory in interface org.bukkit.entity.AbstractHorse
      Specified by:
      getInventory in interface org.bukkit.entity.Horse
      Specified by:
      getInventory in interface org.bukkit.inventory.InventoryHolder
    • setInventory

      public void setInventory(org.bukkit.inventory.HorseInventory inventory)