public interface Llama extends ChestedHorse
| 限定符和类型 | 接口和说明 |
|---|---|
static class |
Llama.Color
代表羊驼的颜色.
|
| 限定符和类型 | 方法和说明 |
|---|---|
Llama.Color |
getColor()
获取羊驼的颜色.
|
LlamaInventory |
getInventory()
获取该对象的用户界面项目.
|
int |
getStrength()
获取羊驼的强度, 强度大的羊驼的背包将有更大的容量, 并对其他实体更具威胁性.
|
void |
setColor(Llama.Color color)
设置羊驼的颜色.
|
void |
setStrength(int strength)
设置羊驼的强度, 强度大的羊驼的背包将有更大的容量, 并对其他实体更具威胁性.
|
isCarryingChest, setCarryingChestgetDomestication, getJumpStrength, getMaxDomestication, getVariant, setDomestication, setJumpStrength, setMaxDomestication, setVariantcanBreed, getAge, getAgeLock, isAdult, setAdult, setAge, setAgeLock, setBaby, setBreedaddPotionEffect, addPotionEffect, addPotionEffects, getActivePotionEffects, getCanPickupItems, getEquipment, getEyeHeight, getEyeHeight, getEyeLocation, getKiller, getLastDamage, getLastTwoTargetBlocks, getLeashHolder, getLineOfSight, getMaximumAir, getMaximumNoDamageTicks, getNoDamageTicks, getPotionEffect, getRemainingAir, getRemoveWhenFarAway, getTargetBlock, hasAI, hasLineOfSight, hasPotionEffect, isCollidable, isGliding, isLeashed, removePotionEffect, setAI, setCanPickupItems, setCollidable, setGliding, setLastDamage, setLeashHolder, setMaximumAir, setMaximumNoDamageTicks, setNoDamageTicks, setRemainingAir, setRemoveWhenFarAwaygetAttributedamage, damage, getHealth, getMaxHealth, resetMaxHealth, setHealth, setMaxHealthaddPassenger, addScoreboardTag, eject, getEntityId, getFallDistance, getFireTicks, getHeight, getLastDamageCause, getLocation, getLocation, getMaxFireTicks, getNearbyEntities, getPassenger, getPassengers, getPistonMoveReaction, getPortalCooldown, getScoreboardTags, getServer, getTicksLived, getType, getUniqueId, getVehicle, getVelocity, getWidth, getWorld, hasGravity, isCustomNameVisible, isDead, isEmpty, isGlowing, isInsideVehicle, isInvulnerable, isOnGround, isSilent, isValid, leaveVehicle, playEffect, remove, removePassenger, removeScoreboardTag, setCustomNameVisible, setFallDistance, setFireTicks, setGlowing, setGravity, setInvulnerable, setLastDamageCause, setPassenger, setPortalCooldown, setSilent, setTicksLived, setVelocity, teleport, teleport, teleport, teleportgetMetadata, hasMetadata, removeMetadata, setMetadatagetName, sendMessage, sendMessageaddAttachment, addAttachment, addAttachment, addAttachment, getEffectivePermissions, hasPermission, hasPermission, isPermissionSet, isPermissionSet, recalculatePermissions, removeAttachmentisOp, setOpgetCustomName, setCustomNamelaunchProjectile, launchProjectilegetVelocity, setVelocityLlama.Color getColor()
原文:Gets the llama's color.
void setColor(Llama.Color color)
原文:Sets the llama's color.
color - 给定的羊驼的颜色int getStrength()
译注:此处的强度采用的是 中文Wiki 中的翻译, 但个人认为翻译为力气会好些
原文:Gets the llama's strength. A higher strength llama will have more inventory slots and be more threatening to entities.
void setStrength(int strength)
译注:此处的强度采用的是 中文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] 之间LlamaInventory getInventory()
InventoryHolder原文:Get the object's inventory.
getInventory 在接口中 AbstractHorsegetInventory 在接口中 InventoryHolder