public interface Horse extends AbstractHorse
| 限定符和类型 | 接口和说明 |
|---|---|
static class |
Horse.Color
表示马拥有的基本颜色.
|
static class |
Horse.Style
代表马的花纹图案.
|
static class |
Horse.Variant
已过时。
不同的种类对应不同的类.
|
| 限定符和类型 | 方法和说明 |
|---|---|
Horse.Color |
getColor()
获取马的颜色.
|
HorseInventory |
getInventory()
获取该对象的用户界面项目.
|
Horse.Style |
getStyle()
得到马的外貌特征.
|
boolean |
isCarryingChest()
已过时。
请参阅
ChestedHorse |
void |
setCarryingChest(boolean chest)
已过时。
请参阅
ChestedHorse |
void |
setColor(Horse.Color color)
设置马的颜色.
|
void |
setStyle(Horse.Style style)
设置马的外貌特征.
|
getDomestication, 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, setVelocityHorse.Color getColor()
原文:Gets the horse's color. Colors only apply to horses, not to donkeys, mules, skeleton horses or undead horses.
Horse.Color 马的颜色.void setColor(Horse.Color color)
原文: 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 - 马的颜色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.
花纹与图案void setStyle(Horse.Style style)
原文: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 - 马的花纹与图案@Deprecated boolean isCarryingChest()
ChestedHorse@Deprecated void setCarryingChest(boolean chest)
ChestedHorsechest - 是否携带箱子HorseInventory getInventory()
InventoryHolder原文:Get the object's inventory.
getInventory 在接口中 AbstractHorsegetInventory 在接口中 InventoryHolder