接口 Horse
- 所有超级接口:
AbstractHorse
,Ageable
,Animals
,Attributable
,CommandSender
,Creature
,Damageable
,Entity
,InventoryHolder
,LivingEntity
,Metadatable
,Nameable
,Permissible
,ProjectileSource
,ServerOperator
,Tameable
,Vehicle
代表一匹马.
-
嵌套类概要
修饰符和类型接口说明static enum
表示马拥有的基本颜色.static enum
代表马的花纹图案.static enum
已过时。不同的种类对应不同的类. -
方法概要
修饰符和类型方法说明getColor()
获取马的颜色.获取该对象的用户界面项目.getStyle()
得到马的外貌特征.boolean
已过时。请参阅ChestedHorse
void
setCarryingChest
(boolean chest) 已过时。请参阅ChestedHorse
void
setColor
(Horse.Color color) 设置马的颜色.void
setStyle
(Horse.Style style) 设置马的外貌特征.从接口继承的方法 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.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
Horse.Color getColor()获取马的颜色. 该颜色只适用于马,而不适用于驴,骡子,骷髅马或僵尸马.原文:Gets the horse's color. Colors only apply to horses, not to donkeys, mules, skeleton horses or undead horses.
- 返回:
Horse.Color
马的颜色.
-
setColor
设置马的颜色. 试图为任何驴,骡子,骷髅马或僵尸马设定颜色不会有任何变化.原文: Sets the horse's color. Attempting to set a color for any donkey, mule, skeleton horse or undead horse will not result in a change.
- 参数:
color
- 马的颜色
-
getStyle
Horse.Style getStyle()得到马的外貌特征. 这些特征决定马有什么样的图案. 这些特征只适用于马,而不适用于驴,骡子,骷髅马或僵尸马.原文:Gets the horse's style. Styles determine what kind of markings or patterns a horse has. Styles only apply to horses, not to donkeys, mules, skeleton horses or undead horses.
- 返回:
- 马的
花纹与图案
-
setStyle
设置马的外貌特征. 风格决定马有什么样的标记或图案. 试图为任何驴,骡子,骷髅马或僵尸马设定这些特征不会有任何变化.原文:Sets the style of this horse. Styles determine what kind of markings or patterns a horse has. Attempting to set a style for any donkey, mule, skeleton horse or undead horse will not result in a change.
- 参数:
style
- 马的花纹与图案
-
isCarryingChest
已过时。请参阅ChestedHorse
- 返回:
- 是否携带箱子
-
setCarryingChest
已过时。请参阅ChestedHorse
- 参数:
chest
- 是否携带箱子
-
getInventory
HorseInventory getInventory()从接口复制的说明:InventoryHolder
获取该对象的用户界面项目.原文:Get the object's inventory.
- 指定者:
getInventory
在接口中AbstractHorse
- 指定者:
getInventory
在接口中InventoryHolder
- 返回:
- The inventory.
-