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, setCarryingChest
getDomestication, getJumpStrength, getMaxDomestication, getVariant, setDomestication, setJumpStrength, setMaxDomestication, setVariant
getBreedCause, setBreedCause
canBreed, getAge, getAgeLock, isAdult, setAdult, setAge, setAgeLock, setBaby, setBreed
addPotionEffect, addPotionEffect, addPotionEffects, getActivePotionEffects, getCanPickupItems, getEquipment, getEyeHeight, getEyeHeight, getEyeLocation, getKiller, getLastDamage, getLastTwoTargetBlocks, getLeashHolder, getLineOfSight, getMaximumAir, getMaximumNoDamageTicks, getNoDamageTicks, getPotionEffect, getRemainingAir, getRemoveWhenFarAway, getTargetBlock, getTargetBlockExact, getTargetBlockExact, hasAI, hasLineOfSight, hasPotionEffect, isCollidable, isGliding, isLeashed, isRiptiding, isSwimming, rayTraceBlocks, rayTraceBlocks, removePotionEffect, setAI, setCanPickupItems, setCollidable, setGliding, setLastDamage, setLeashHolder, setMaximumAir, setMaximumNoDamageTicks, setNoDamageTicks, setRemainingAir, setRemoveWhenFarAway, setSwimming
getAttribute
damage, damage, getHealth, getMaxHealth, resetMaxHealth, setHealth, setMaxHealth
addPassenger, addScoreboardTag, eject, getBoundingBox, getEntityId, getFacing, 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, isPersistent, isSilent, isValid, leaveVehicle, playEffect, remove, removePassenger, removeScoreboardTag, setCustomNameVisible, setFallDistance, setFireTicks, setGlowing, setGravity, setInvulnerable, setLastDamageCause, setPassenger, setPersistent, setPortalCooldown, setSilent, setTicksLived, setVelocity, teleport, teleport, teleport, teleport
getMetadata, hasMetadata, removeMetadata, setMetadata
getName, sendMessage, sendMessage
addAttachment, addAttachment, addAttachment, addAttachment, getEffectivePermissions, hasPermission, hasPermission, isPermissionSet, isPermissionSet, recalculatePermissions, removeAttachment
isOp, setOp
getCustomName, setCustomName
launchProjectile, launchProjectile
getLootTable, getSeed, setLootTable, setSeed
getVelocity, setVelocity
Llama.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
在接口中 AbstractHorse
getInventory
在接口中 InventoryHolder