接口 Horse
- 所有超级接口:
AbstractHorse
,Ageable
,Animals
,Attributable
,Breedable
,CommandSender
,Creature
,Damageable
,Entity
,InventoryHolder
,LivingEntity
,Lootable
,Metadatable
,Mob
,Nameable
,Permissible
,PersistentDataHolder
,ProjectileSource
,ServerOperator
,Tameable
,Vehicle
-
嵌套类概要
修饰符和类型接口说明static enum
表示马拥有的基本颜色.static enum
代表马的花纹图案.static enum
已过时。不同的种类对应不同的类.从接口继承的嵌套类/接口 org.bukkit.entity.Entity
Entity.Spigot
-
方法概要
修饰符和类型方法说明getColor()
获取马的颜色.获取该对象的用户界面项目.getStyle()
得到马的外貌特征.boolean
已过时。请参阅ChestedHorse
void
setCarryingChest
(boolean chest) 已过时。请参阅ChestedHorse
void
setColor
(@NotNull Horse.Color color) 设置马的颜色.void
setStyle
(@NotNull Horse.Style style) 设置马的外貌特征.从接口继承的方法 org.bukkit.entity.AbstractHorse
getDomestication, getJumpStrength, getMaxDomestication, getVariant, isEatingHaystack, setDomestication, setEatingHaystack, setJumpStrength, setMaxDomestication, setVariant
从接口继承的方法 org.bukkit.entity.Animals
getBreedCause, getLoveModeTicks, isBreedItem, isBreedItem, isLoveMode, setBreedCause, setLoveModeTicks
从接口继承的方法 org.bukkit.attribute.Attributable
getAttribute
从接口继承的方法 org.bukkit.entity.Breedable
canBreed, getAgeLock, setAgeLock, setBreed
从接口继承的方法 org.bukkit.command.CommandSender
getName, sendMessage, sendMessage, sendMessage, sendMessage
从接口继承的方法 org.bukkit.entity.Damageable
damage, damage, damage, getAbsorptionAmount, getHealth, getMaxHealth, resetMaxHealth, setAbsorptionAmount, setHealth, setMaxHealth
从接口继承的方法 org.bukkit.entity.Entity
addPassenger, addScoreboardTag, copy, copy, createSnapshot, eject, getAsString, getBoundingBox, getEntityId, getFacing, getFallDistance, getFireTicks, getFreezeTicks, getHeight, getLastDamageCause, getLocation, getLocation, getMaxFireTicks, getMaxFreezeTicks, getNearbyEntities, getPassenger, getPassengers, getPistonMoveReaction, getPortalCooldown, getPose, getScoreboardTags, getServer, getSpawnCategory, getSwimHighSpeedSplashSound, getSwimSound, getSwimSplashSound, getTicksLived, getTrackedBy, getType, getUniqueId, getVehicle, getWidth, getWorld, hasGravity, isCustomNameVisible, isDead, isEmpty, isFrozen, isGlowing, isInsideVehicle, isInvulnerable, isInWater, isInWorld, isOnGround, isPersistent, isSilent, isValid, isVisibleByDefault, isVisualFire, leaveVehicle, playEffect, remove, removePassenger, removeScoreboardTag, setCustomNameVisible, setFallDistance, setFireTicks, setFreezeTicks, setGlowing, setGravity, setInvulnerable, setLastDamageCause, setPassenger, setPersistent, setPortalCooldown, setRotation, setSilent, setTicksLived, setVisibleByDefault, setVisualFire, spigot, teleport, teleport, teleport, teleport
从接口继承的方法 org.bukkit.entity.LivingEntity
addPotionEffect, addPotionEffect, addPotionEffects, attack, canBreatheUnderwater, getActivePotionEffects, getArrowCooldown, getArrowsInBody, getCanPickupItems, getCategory, getCollidableExemptions, getDeathSound, getDrinkingSound, getEatingSound, getEquipment, getEyeHeight, getEyeHeight, getEyeLocation, getFallDamageSound, getFallDamageSoundBig, getFallDamageSoundSmall, getHurtSound, getItemInUse, getItemInUseTicks, getKiller, getLastDamage, getLastTwoTargetBlocks, getLeashHolder, getLineOfSight, getMaximumAir, getMaximumNoDamageTicks, getMemory, getNoActionTicks, getNoDamageTicks, getPotionEffect, getRemainingAir, getRemoveWhenFarAway, getTargetBlock, getTargetBlockExact, getTargetBlockExact, hasAI, hasLineOfSight, hasPotionEffect, isClimbing, isCollidable, isGliding, isInvisible, isLeashed, isRiptiding, isSleeping, isSwimming, playHurtAnimation, rayTraceBlocks, rayTraceBlocks, removePotionEffect, setAI, setArrowCooldown, setArrowsInBody, setCanPickupItems, setCollidable, setGliding, setInvisible, setItemInUseTicks, setLastDamage, setLeashHolder, setMaximumAir, setMaximumNoDamageTicks, setMemory, setNoActionTicks, setNoDamageTicks, setRemainingAir, setRemoveWhenFarAway, setSwimming, swingMainHand, swingOffHand
从接口继承的方法 org.bukkit.loot.Lootable
getLootTable, getSeed, setLootTable, setSeed
从接口继承的方法 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.persistence.PersistentDataHolder
getPersistentDataContainer
从接口继承的方法 org.bukkit.projectiles.ProjectileSource
launchProjectile, launchProjectile
从接口继承的方法 org.bukkit.permissions.ServerOperator
isOp, setOp
从接口继承的方法 org.bukkit.entity.Vehicle
getVelocity, setVelocity
-
方法详细资料
-
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
得到马的外貌特征. 这些特征决定马有什么样的图案.这些特征只适用于马,而不适用于驴,骡子,骷髅马或僵尸马.
原文: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
从接口复制的说明:InventoryHolder
获取该对象的用户界面项目.原文:Get the object's inventory.
- 指定者:
getInventory
在接口中AbstractHorse
- 指定者:
getInventory
在接口中InventoryHolder
- 返回:
- The inventory.
-