AbstractHorse, Ageable, Animals, Attributable, CommandSender, Creature, Damageable, Entity, InventoryHolder, LivingEntity, Lootable, Metadatable, Mob, Nameable, Permissible, ProjectileSource, ServerOperator, Tameable, Vehiclepublic interface Horse extends AbstractHorse
| Modifier and Type | Interface | 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 | 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, setVariantcanBreed, getAge, getAgeLock, isAdult, setAdult, setAge, setAgeLock, setBaby, setBreedgetBreedCause, getLoveModeTicks, isLoveMode, setBreedCause, setLoveModeTicksgetAttributegetName, sendMessage, sendMessage, sendMessage, sendMessagedamage, damage, getHealth, getMaxHealth, resetMaxHealth, setHealth, setMaxHealthaddPassenger, addScoreboardTag, eject, fromMobSpawner, getBoundingBox, getChunk, getEntityId, getEntitySpawnReason, getFacing, getFallDistance, getFireTicks, getHeight, getLastDamageCause, getLocation, getLocation, getMaxFireTicks, getNearbyEntities, getOrigin, getPassenger, getPassengers, getPistonMoveReaction, getPortalCooldown, getScoreboardTags, getServer, getTicksLived, getType, getUniqueId, getVehicle, getVelocity, 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, setVelocity, spigot, teleport, teleport, teleport, teleport, teleportAsync, teleportAsyncaddPotionEffect, addPotionEffect, addPotionEffects, getActiveItem, getActivePotionEffects, getArrowsStuck, getCanPickupItems, getEquipment, getEyeHeight, getEyeHeight, getEyeLocation, getHandRaisedTime, getItemUseRemainingTime, getKiller, getLastDamage, getLastTwoTargetBlocks, getLeashHolder, getLineOfSight, getMaximumAir, getMaximumNoDamageTicks, getNoDamageTicks, getPotionEffect, getRemainingAir, getRemoveWhenFarAway, getShieldBlockingDelay, getTargetBlock, getTargetBlock, getTargetBlock, getTargetBlockExact, getTargetBlockExact, getTargetBlockFace, getTargetBlockFace, getTargetBlockInfo, getTargetBlockInfo, getTargetEntity, getTargetEntity, getTargetEntityInfo, getTargetEntityInfo, hasAI, hasLineOfSight, hasPotionEffect, isCollidable, isGliding, isHandRaised, isLeashed, isRiptiding, isSwimming, rayTraceBlocks, rayTraceBlocks, removePotionEffect, setAI, setArrowsStuck, setCanPickupItems, setCollidable, setGliding, setKiller, setLastDamage, setLeashHolder, setMaximumAir, setMaximumNoDamageTicks, setNoDamageTicks, setRemainingAir, setRemoveWhenFarAway, setShieldBlockingDelay, setSwimmingclearLootTable, getLootTable, getSeed, hasLootTable, setLootTable, setLootTable, setSeedgetMetadata, hasMetadata, removeMetadata, setMetadatagetPathfinder, getTarget, isInDaylight, setTargetgetCustomName, setCustomNameaddAttachment, addAttachment, addAttachment, addAttachment, getEffectivePermissions, hasPermission, hasPermission, isPermissionSet, isPermissionSet, recalculatePermissions, removeAttachmentlaunchProjectile, launchProjectileisOp, setOpgetOwner, getOwnerUniqueId, isTamed, setOwner, setTamedgetVelocity, setVelocity@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
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 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
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 - Sets whether the Horse is carrying a chest@NotNull HorseInventory getInventory()
InventoryHoldergetInventory in interface AbstractHorsegetInventory in interface InventoryHolderCopyright © 2020. All rights reserved.