接口 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已过时。请参阅ChestedHorsevoidsetCarryingChest(boolean chest) 已过时。请参阅ChestedHorsevoidsetColor(@NotNull Horse.Color color) 设置马的颜色.voidsetStyle(@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, getWaypointColor, getWaypointStyle, 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, setRiptiding, setSwimming, setWaypointColor, setWaypointStyle, 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.
-