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 
 | 
| Modifier and Type | Method and Description | 
|---|---|
@NotNull Horse.Color | 
getColor()
Gets the horse's color. 
 | 
@NotNull HorseInventory | 
getInventory()
Get the object's inventory. 
 | 
@NotNull Horse.Style | 
getStyle()
Gets the horse's style. 
 | 
boolean | 
isCarryingChest()
Deprecated. 
 
see  
ChestedHorse | 
void | 
setCarryingChest(boolean chest)
Deprecated. 
 
see  
ChestedHorse | 
void | 
setColor(@NotNull Horse.Color color)
Sets the horse's color. 
 | 
void | 
setStyle(@NotNull Horse.Style style)
Sets the style of this horse. 
 | 
getDomestication, getJumpStrength, getMaxDomestication, getVariant, setDomestication, setJumpStrength, setMaxDomestication, setVariantgetVelocity, setVelocitygetBreedCause, getLoveModeTicks, isLoveMode, setBreedCause, setLoveModeTickscanBreed, getAge, getAgeLock, isAdult, setAdult, setAge, setAgeLock, setBaby, setBreedaddPotionEffect, addPotionEffect, addPotionEffects, attack, getActivePotionEffects, getCanPickupItems, getEquipment, getEyeHeight, getEyeHeight, getEyeLocation, getKiller, getLastDamage, getLastTwoTargetBlocks, getLeashHolder, getLineOfSight, getMaximumAir, getMaximumNoDamageTicks, getMemory, getNoDamageTicks, getPotionEffect, getRemainingAir, getRemoveWhenFarAway, getTargetBlock, getTargetBlockExact, getTargetBlockExact, hasAI, hasLineOfSight, hasPotionEffect, isCollidable, isGliding, isLeashed, isRiptiding, isSleeping, isSwimming, rayTraceBlocks, rayTraceBlocks, removePotionEffect, setAI, setCanPickupItems, setCollidable, setGliding, setLastDamage, setLeashHolder, setMaximumAir, setMaximumNoDamageTicks, setMemory, setNoDamageTicks, setRemainingAir, setRemoveWhenFarAway, setSwimming, swingMainHand, swingOffHandgetAttributedamage, damage, getAbsorptionAmount, getHealth, getMaxHealth, resetMaxHealth, setAbsorptionAmount, setHealth, setMaxHealthaddPassenger, addScoreboardTag, eject, getBoundingBox, getEntityId, getFacing, getFallDistance, getFireTicks, getHeight, getLastDamageCause, getLocation, getLocation, getMaxFireTicks, getNearbyEntities, getPassenger, getPassengers, getPistonMoveReaction, getPortalCooldown, getPose, getScoreboardTags, getTicksLived, getType, getUniqueId, getVehicle, getWidth, getWorld, hasGravity, isCustomNameVisible, isDead, isEmpty, isGlowing, isInsideVehicle, isInvulnerable, isOnGround, isPersistent, isSilent, isValid, leaveVehicle, playEffect, remove, removePassenger, removeScoreboardTag, setCustomNameVisible, setFallDistance, setFireTicks, setGlowing, setGravity, setInvulnerable, setLastDamageCause, setPassenger, setPersistent, setPortalCooldown, setRotation, setSilent, setTicksLived, teleport, teleport, teleport, teleportgetMetadata, hasMetadata, removeMetadata, setMetadatagetName, sendMessage, sendMessageaddAttachment, addAttachment, addAttachment, addAttachment, getEffectivePermissions, hasPermission, hasPermission, isPermissionSet, isPermissionSet, recalculatePermissions, removeAttachmentisOp, setOpgetCustomName, setCustomNamegetPersistentDataContainerlaunchProjectile, launchProjectilegetLootTable, getSeed, setLootTable, setSeed@NotNull @NotNull 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(@NotNull
              @NotNull 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 horse@NotNull @NotNull Horse.Style getStyle()
Styles only apply to horses, not to donkeys, mules, skeleton horses or undead horses.
Horse.Style representing the horse's stylevoid setStyle(@NotNull
              @NotNull 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)
ChestedHorsechest - chest@NotNull @NotNull HorseInventory getInventory()
InventoryHoldergetInventory in interface AbstractHorsegetInventory in interface InventoryHolderCopyright © 2021. All rights reserved.