public interface Horse extends AbstractHorse
Modifier and Type | Interface and Description |
---|---|
static class |
Horse.Color
Represents the base color that the horse has.
|
static class |
Horse.Style
Represents the style, or markings, that the horse has.
|
static class |
Horse.Variant
Deprecated.
different variants are differing classes
|
Entity.Spigot
Modifier and Type | Method and Description |
---|---|
Horse.Color |
getColor()
Gets the horse's color.
|
HorseInventory |
getInventory()
Get the object's inventory.
|
Horse.Style |
getStyle()
Gets the horse's style.
|
boolean |
isCarryingChest()
Deprecated.
see
ChestedHorse |
void |
setCarryingChest(boolean chest)
Deprecated.
see
ChestedHorse |
void |
setColor(Horse.Color color)
Sets the horse's color.
|
void |
setStyle(Horse.Style style)
Sets the style of this horse.
|
getDomestication, getJumpStrength, getMaxDomestication, getVariant, setDomestication, setJumpStrength, setMaxDomestication, setVariant
canBreed, getAge, getAgeLock, isAdult, setAdult, setAge, setAgeLock, setBaby, setBreed
_INVALID_getLastDamage, _INVALID_setLastDamage, addPotionEffect, addPotionEffect, addPotionEffects, getActivePotionEffects, getCanPickupItems, getEquipment, getEyeHeight, getEyeHeight, getEyeLocation, getKiller, getLastDamage, getLastTwoTargetBlocks, getLastTwoTargetBlocks, getLeashHolder, getLineOfSight, getLineOfSight, getMaximumAir, getMaximumNoDamageTicks, getNoDamageTicks, getPotionEffect, getRemainingAir, getRemoveWhenFarAway, getTargetBlock, getTargetBlock, hasAI, hasLineOfSight, hasPotionEffect, isCollidable, isGliding, isLeashed, removePotionEffect, setAI, setCanPickupItems, setCollidable, setGliding, setLastDamage, setLeashHolder, setMaximumAir, setMaximumNoDamageTicks, setNoDamageTicks, setRemainingAir, setRemoveWhenFarAway
getAttribute
_INVALID_damage, _INVALID_damage, _INVALID_getHealth, _INVALID_getMaxHealth, _INVALID_setHealth, _INVALID_setMaxHealth, damage, damage, getHealth, getMaxHealth, resetMaxHealth, setHealth, setMaxHealth
addScoreboardTag, eject, getEntityId, getFallDistance, getFireTicks, getLastDamageCause, getLocation, getLocation, getMaxFireTicks, getNearbyEntities, getPassenger, getPortalCooldown, getScoreboardTags, getServer, getTicksLived, getType, getUniqueId, getVehicle, getVelocity, getWorld, hasGravity, isCustomNameVisible, isDead, isEmpty, isGlowing, isInsideVehicle, isInvulnerable, isOnGround, isSilent, isValid, leaveVehicle, playEffect, remove, removeScoreboardTag, setCustomNameVisible, setFallDistance, setFireTicks, setGlowing, setGravity, setInvulnerable, setLastDamageCause, setPassenger, setPortalCooldown, setSilent, setTicksLived, setVelocity, spigot, teleport, teleport, teleport, teleport
getMetadata, hasMetadata, removeMetadata, setMetadata
getName, sendMessage, sendMessage
addAttachment, addAttachment, addAttachment, addAttachment, getEffectivePermissions, hasPermission, hasPermission, isPermissionSet, isPermissionSet, recalculatePermissions, removeAttachment
isOp, setOp
getCustomName, setCustomName
launchProjectile, launchProjectile
getVelocity, setVelocity
Horse.Color getColor()
Colors only apply to horses, not to donkeys, mules, skeleton horses or undead horses.
Horse.Color
representing the horse's groupvoid setColor(Horse.Color color)
Attempting to set a color for any donkey, mule, skeleton horse or undead horse will not result in a change.
color
- a Horse.Color
for this horseHorse.Style getStyle()
Styles only apply to horses, not to donkeys, mules, skeleton horses or undead horses.
Horse.Style
representing the horse's stylevoid setStyle(Horse.Style style)
Attempting to set a style for any donkey, mule, skeleton horse or undead horse will not result in a change.
style
- a Horse.Style
for this horse@Deprecated boolean isCarryingChest()
ChestedHorse
@Deprecated void setCarryingChest(boolean chest)
ChestedHorse
chest
- HorseInventory getInventory()
InventoryHolder
getInventory
in interface InventoryHolder
Copyright © 2016. All rights reserved.