接口 Llama
- 所有超级接口:
AbstractHorse
,Ageable
,Animals
,Attributable
,ChestedHorse
,CommandSender
,Creature
,Damageable
,Entity
,InventoryHolder
,LivingEntity
,Metadatable
,Nameable
,Permissible
,ProjectileSource
,ServerOperator
,Tameable
,Vehicle
表示一只羊驼.
-
嵌套类概要
-
方法概要
修饰符和类型方法说明getColor()
获取羊驼的颜色.获取该对象的用户界面项目.int
获取羊驼的强度, 强度大的羊驼的背包将有更大的容量, 并对其他实体更具威胁性.void
setColor
(Llama.Color color) 设置羊驼的颜色.void
setStrength
(int strength) 设置羊驼的强度, 强度大的羊驼的背包将有更大的容量, 并对其他实体更具威胁性.从接口继承的方法 org.bukkit.entity.AbstractHorse
getDomestication, getJumpStrength, getMaxDomestication, getVariant, setDomestication, setJumpStrength, setMaxDomestication, setVariant
从接口继承的方法 org.bukkit.entity.Ageable
canBreed, getAge, getAgeLock, isAdult, setAdult, setAge, setAgeLock, setBaby, setBreed
从接口继承的方法 org.bukkit.attribute.Attributable
getAttribute
从接口继承的方法 org.bukkit.entity.ChestedHorse
isCarryingChest, setCarryingChest
从接口继承的方法 org.bukkit.command.CommandSender
getName, sendMessage, sendMessage
从接口继承的方法 org.bukkit.entity.Damageable
damage, damage, getHealth, getMaxHealth, resetMaxHealth, setHealth, setMaxHealth
从接口继承的方法 org.bukkit.entity.Entity
addPassenger, addScoreboardTag, eject, getEntityId, getFallDistance, getFireTicks, getHeight, getLastDamageCause, getLocation, getLocation, getMaxFireTicks, getNearbyEntities, getPassenger, getPassengers, getPistonMoveReaction, getPortalCooldown, getScoreboardTags, getServer, getTicksLived, getType, getUniqueId, getVehicle, 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, teleport, teleport, teleport, teleport
从接口继承的方法 org.bukkit.entity.LivingEntity
addPotionEffect, 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, setRemoveWhenFarAway
从接口继承的方法 org.bukkit.metadata.Metadatable
getMetadata, hasMetadata, removeMetadata, setMetadata
从接口继承的方法 org.bukkit.Nameable
getCustomName, setCustomName
从接口继承的方法 org.bukkit.permissions.Permissible
addAttachment, addAttachment, addAttachment, addAttachment, getEffectivePermissions, hasPermission, hasPermission, isPermissionSet, isPermissionSet, recalculatePermissions, removeAttachment
从接口继承的方法 org.bukkit.projectiles.ProjectileSource
launchProjectile, launchProjectile
从接口继承的方法 org.bukkit.permissions.ServerOperator
isOp, setOp
从接口继承的方法 org.bukkit.entity.Vehicle
getVelocity, setVelocity
-
方法详细资料
-
getColor
Llama.Color getColor()获取羊驼的颜色.原文:Gets the llama's color.
- 返回:
- 返回羊驼的颜色
-
setColor
设置羊驼的颜色.原文: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
LlamaInventory getInventory()从接口复制的说明:InventoryHolder
获取该对象的用户界面项目.原文:Get the object's inventory.
- 指定者:
getInventory
在接口中AbstractHorse
- 指定者:
getInventory
在接口中InventoryHolder
- 返回:
- The inventory.
-