程序包 org.bukkit.entity

# 接口 Llama

所有超级接口:
  `AbstractHorse`, `Ageable`, `Animals`, `Attributable`, `Breedable`, `ChestedHorse`, `CommandSender`, `Creature`, `Damageable`, `Entity`, `InventoryHolder`, `LivingEntity`, `Lootable`, `Metadatable`, `Mob`, `Nameable`, `Permissible`, `PersistentDataHolder`, `ProjectileSource`, `ServerOperator`, `Tameable`, `Vehicle`

所有已知子接口:
  `TraderLlama`

public interface Llama extends ChestedHorse
表示一只羊驼.

- ## 嵌套类概要

  嵌套类
  修饰符和类型
  接口
  说明
  `static enum`
  `Llama.Color`
  代表羊驼的颜色.

  ## 从接口继承的嵌套类/接口 org.bukkit.entity.Entity

  `Entity.Spigot`

- ## 方法概要

  修饰符和类型
  方法
  说明
  `@NotNull Llama.Color`
  `getColor()`
  获取羊驼的颜色.
  `@NotNull LlamaInventory`
  `getInventory()`
  获取该对象的用户界面项目.
  `int`
  `getStrength()`
  获取羊驼的强度, 强度大的羊驼的背包将有更大的容量, 并对其他实体更具威胁性.
  `void`
  `setColor(@NotNull Llama.Color color)`
  设置羊驼的颜色.
  `void`
  `setStrength(int strength)`
  设置羊驼的强度, 强度大的羊驼的背包将有更大的容量, 并对其他实体更具威胁性.

  ### 从接口继承的方法 org.bukkit.entity.AbstractHorse

  `getDomestication, getJumpStrength, getMaxDomestication, getVariant, isEatingHaystack, setDomestication, setEatingHaystack, setJumpStrength, setMaxDomestication, setVariant`

  ### 从接口继承的方法 org.bukkit.entity.Ageable

  `getAge, isAdult, setAdult, setAge, setBaby`

  ### 从接口继承的方法 org.bukkit.entity.Animals

  `getBreedCause, getLoveModeTicks, isBreedItem, isBreedItem, isLoveMode, setBreedCause, setLoveModeTicks`

  ### 从接口继承的方法 org.bukkit.attribute.Attributable

  `getAttribute`

  ### 从接口继承的方法 org.bukkit.entity.Breedable

  `canBreed, getAgeLock, setAgeLock, setBreed`

  ### 从接口继承的方法 org.bukkit.entity.ChestedHorse

  `isCarryingChest, setCarryingChest`

  ### 从接口继承的方法 org.bukkit.command.CommandSender

  `getName, sendMessage, sendMessage, sendMessage, sendMessage`

  ### 从接口继承的方法 org.bukkit.entity.Damageable

  `damage, damage, damage, getAbsorptionAmount, getHealth, getMaxHealth, resetMaxHealth, setAbsorptionAmount, setHealth, setMaxHealth`

  ### 从接口继承的方法 org.bukkit.entity.Entity

  `addPassenger, addScoreboardTag, copy, copy, createSnapshot, eject, getAsString, getBoundingBox, getEntityId, getFacing, getFallDistance, getFireTicks, getFreezeTicks, getHeight, getLastDamageCause, getLocation, getLocation, getMaxFireTicks, getMaxFreezeTicks, getNearbyEntities, getPassenger, getPassengers, getPistonMoveReaction, getPortalCooldown, getPose, getScoreboardTags, getServer, getSpawnCategory, getSwimHighSpeedSplashSound, getSwimSound, getSwimSplashSound, getTicksLived, getTrackedBy, getType, getUniqueId, getVehicle, getWidth, getWorld, hasGravity, isCustomNameVisible, isDead, isEmpty, isFrozen, isGlowing, isInsideVehicle, isInvulnerable, isInWater, isInWorld, isOnGround, isPersistent, isSilent, isValid, isVisibleByDefault, isVisualFire, leaveVehicle, playEffect, remove, removePassenger, removeScoreboardTag, setCustomNameVisible, setFallDistance, setFireTicks, setFreezeTicks, setGlowing, setGravity, setInvulnerable, setLastDamageCause, setPassenger, setPersistent, setPortalCooldown, setRotation, setSilent, setTicksLived, setVisibleByDefault, setVisualFire, spigot, teleport, teleport, teleport, teleport`

  ### 从接口继承的方法 org.bukkit.entity.LivingEntity

  `addPotionEffect, addPotionEffect, addPotionEffects, attack, canBreatheUnderwater, getActivePotionEffects, getArrowCooldown, getArrowsInBody, getCanPickupItems, getCategory, getCollidableExemptions, getDeathSound, getDrinkingSound, getEatingSound, getEquipment, getEyeHeight, getEyeHeight, getEyeLocation, getFallDamageSound, getFallDamageSoundBig, getFallDamageSoundSmall, getHurtSound, getItemInUse, getItemInUseTicks, getKiller, getLastDamage, getLastTwoTargetBlocks, getLeashHolder, getLineOfSight, getMaximumAir, getMaximumNoDamageTicks, getMemory, getNoActionTicks, getNoDamageTicks, getPotionEffect, getRemainingAir, getRemoveWhenFarAway, getTargetBlock, getTargetBlockExact, getTargetBlockExact, hasAI, hasLineOfSight, hasPotionEffect, isClimbing, isCollidable, isGliding, isInvisible, isLeashed, isRiptiding, isSleeping, isSwimming, playHurtAnimation, rayTraceBlocks, rayTraceBlocks, removePotionEffect, setAI, setArrowCooldown, setArrowsInBody, setCanPickupItems, setCollidable, setGliding, setInvisible, setItemInUseTicks, setLastDamage, setLeashHolder, setMaximumAir, setMaximumNoDamageTicks, setMemory, setNoActionTicks, setNoDamageTicks, setRemainingAir, setRemoveWhenFarAway, setSwimming, swingMainHand, swingOffHand`

  ### 从接口继承的方法 org.bukkit.loot.Lootable

  `getLootTable, getSeed, setLootTable, setSeed`

  ### 从接口继承的方法 org.bukkit.metadata.Metadatable

  `getMetadata, hasMetadata, removeMetadata, setMetadata`

  ### 从接口继承的方法 org.bukkit.entity.Mob

  `getAmbientSound, getTarget, isAware, setAware, setTarget`

  ### 从接口继承的方法 org.bukkit.Nameable

  `getCustomName, setCustomName`

  ### 从接口继承的方法 org.bukkit.permissions.Permissible

  `addAttachment, addAttachment, addAttachment, addAttachment, getEffectivePermissions, hasPermission, hasPermission, isPermissionSet, isPermissionSet, recalculatePermissions, removeAttachment`

  ### 从接口继承的方法 org.bukkit.persistence.PersistentDataHolder

  `getPersistentDataContainer`

  ### 从接口继承的方法 org.bukkit.projectiles.ProjectileSource

  `launchProjectile, launchProjectile`

  ### 从接口继承的方法 org.bukkit.permissions.ServerOperator

  `isOp, setOp`

  ### 从接口继承的方法 org.bukkit.entity.Tameable

  `getOwner, isTamed, setOwner, setTamed`

  ### 从接口继承的方法 org.bukkit.entity.Vehicle

  `getVelocity, setVelocity`

- ## 方法详细资料

  - ### getColor

    @NotNull @NotNull Llama.Color getColor()
    获取羊驼的颜色.

    原文:Gets the llama's color.

    返回:
      返回羊驼的颜色

  - ### setColor

    void setColor(@NotNull @NotNull Llama.Color color)
    设置羊驼的颜色.

    原文:Sets the llama's color.

    参数:
      `color` - 给定的羊驼的颜色

  - ### getStrength

    int getStrength()
    获取羊驼的强度, 强度大的羊驼的背包将有更大的容量, 并对其他实体更具威胁性.

    译注:此处的强度采用的是 中文Wiki 中的翻译, 但个人认为翻译为力气会好些

    原文:Gets the llama's strength. A higher strength llama will have more inventory slots and be more threatening to entities.

    返回:
      羊驼的强度, 范围会在 [1-5] 之间

  - ### setStrength

    void setStrength(int strength)
    设置羊驼的强度, 强度大的羊驼的背包将有更大的容量, 并对其他实体更具威胁性. 羊驼的背包容量的计算公式: 强度值 * 3.

    译注:此处的强度采用的是 中文Wiki 中的翻译, 但个人认为翻译为力气会好些.

    当给定的强度值不在 [1-5] 该范围内时,将会抛出异常 IllegalArgumentException.

    原文: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.

    参数:
      `strength` - 给定的强度值, 强度须在 [1-5] 之间

  - ### getInventory

    @NotNull @NotNull LlamaInventory getInventory()
    从接口复制的说明: `InventoryHolder`
    获取该对象的用户界面项目.

    原文:Get the object's inventory.

    指定者:
      `getInventory` 在接口中 `AbstractHorse`
    指定者:
      `getInventory` 在接口中 `InventoryHolder`
    返回:
      The inventory.