Class GlowLlama

All Implemented Interfaces:
com.destroystokyo.paper.entity.RangedEntity, 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.ChestedHorse, org.bukkit.entity.Creature, org.bukkit.entity.Damageable, org.bukkit.entity.Entity, org.bukkit.entity.LivingEntity, org.bukkit.entity.Llama, 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 GlowLlama extends GlowChestedHorse<GlowLlamaInventory> implements org.bukkit.entity.Llama
Represents a llama. The data comes from https://minecraft.gamepedia.com/Llama
  • Constructor Details

    • GlowLlama

      public GlowLlama(org.bukkit.Location location)
      Creates a llama entity.
      Parameters:
      location - the entity's location
  • Method Details

    • getColor

      public org.bukkit.entity.Llama.Color getColor()
      Specified by:
      getColor in interface org.bukkit.entity.Llama
    • setColor

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

      public int getStrength()
      Specified by:
      getStrength in interface org.bukkit.entity.Llama
    • setStrength

      public void setStrength(int strength)
      Specified by:
      setStrength in interface org.bukkit.entity.Llama
    • 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
    • createNewInventory

      protected GlowLlamaInventory createNewInventory()
      Description copied from class: GlowChestedHorse
      Creates and sets a new inventory, and copies equipment over from the existing inventory.
      Specified by:
      createNewInventory in class GlowChestedHorse<GlowLlamaInventory>
    • 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 GlowAbstractHorse
      Returns:
      an immutable set containing Material
    • computeGrowthAmount

      protected int computeGrowthAmount(org.bukkit.Material material)
      Description copied from class: GlowAgeable
      Computes the growth amount using a specific material for the current ageable creature. Always returns 0 for an adult or if the material is not food for the creature.
      Overrides:
      computeGrowthAmount in class GlowAbstractHorse
      Parameters:
      material - The food used to compute the growth amount.
      Returns:
      The age gained using the given food.
    • rangedAttack

      public void rangedAttack(org.bukkit.entity.LivingEntity target, float charge)
      Specified by:
      rangedAttack in interface com.destroystokyo.paper.entity.RangedEntity
    • setChargingAttack

      public void setChargingAttack(boolean raiseHands)
      Specified by:
      setChargingAttack in interface com.destroystokyo.paper.entity.RangedEntity