Interface Llama

All Superinterfaces:
AbstractHorse, Ageable, Animals, Attributable, Breedable, ChestedHorse, CommandSender, Creature, Damageable, Entity, InventoryHolder, LivingEntity, Lootable, Metadatable, Mob, Nameable, Permissible, PersistentDataHolder, ProjectileSource, ServerOperator, Tameable, Vehicle
All Known Subinterfaces:
TraderLlama

public interface Llama extends ChestedHorse
Represents a Llama.
  • Method Details

    • getColor

      @NotNull Llama.Color getColor()
      Gets the llama's color.
      Returns:
      a Llama.Color representing the llama's color
    • setColor

      void setColor(@NotNull Llama.Color color)
      Sets the llama's color.
      Parameters:
      color - a Llama.Color for this llama
    • getStrength

      int getStrength()
      Gets the llama's strength. A higher strength llama will have more inventory slots and be more threatening to entities.
      Returns:
      llama strength [1,5]
    • setStrength

      void setStrength(int strength)
      Sets the llama's strength. A higher strength llama will have more inventory slots and be more threatening to entities. Inventory slots are equal to strength * 3.
      Parameters:
      strength - llama strength [1,5]
    • getInventory

      @NotNull LlamaInventory getInventory()
      Description copied from interface: InventoryHolder
      Get the object's inventory.
      Specified by:
      getInventory in interface AbstractHorse
      Specified by:
      getInventory in interface InventoryHolder
      Returns:
      The inventory.