Package org.bukkit.entity
Interface Horse
- All Superinterfaces:
AbstractHorse,Ageable,Animals,Attributable,Breedable,CommandSender,Creature,Damageable,Entity,InventoryHolder,LivingEntity,Lootable,Metadatable,Mob,Nameable,Permissible,PersistentDataHolder,ProjectileSource,ServerOperator,Tameable,Vehicle
public interface Horse extends AbstractHorse
Represents a Horse.
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classHorse.ColorRepresents the base color that the horse has.static classHorse.StyleRepresents the style, or markings, that the horse has.static classHorse.VariantDeprecated.different variants are differing classes -
Method Summary
Modifier and Type Method Description Horse.ColorgetColor()Gets the horse's color.HorseInventorygetInventory()Get the object's inventory.Horse.StylegetStyle()Gets the horse's style.booleanisCarryingChest()Deprecated.seeChestedHorsevoidsetCarryingChest(boolean chest)Deprecated.seeChestedHorsevoidsetColor(Horse.Color color)Sets the horse's color.voidsetStyle(Horse.Style style)Sets the style of this horse.Methods inherited from interface org.bukkit.entity.AbstractHorse
getDomestication, getJumpStrength, getMaxDomestication, getVariant, setDomestication, setJumpStrength, setMaxDomestication, setVariantMethods inherited from interface org.bukkit.entity.Ageable
getAge, isAdult, setAdult, setAge, setBabyMethods inherited from interface org.bukkit.entity.Animals
getBreedCause, getLoveModeTicks, isLoveMode, setBreedCause, setLoveModeTicksMethods inherited from interface org.bukkit.entity.Breedable
canBreed, getAgeLock, setAgeLock, setBreedMethods inherited from interface org.bukkit.command.CommandSender
getName, sendMessage, sendMessage, sendMessage, sendMessageMethods inherited from interface org.bukkit.entity.Damageable
damage, damage, getAbsorptionAmount, getHealth, getMaxHealth, resetMaxHealth, setAbsorptionAmount, setHealth, setMaxHealthMethods inherited from interface org.bukkit.entity.Entity
addPassenger, addScoreboardTag, eject, getBoundingBox, getEntityId, getFacing, getFallDistance, getFireTicks, getHeight, getLastDamageCause, getLocation, getLocation, getMaxFireTicks, getNearbyEntities, getPassenger, getPassengers, getPistonMoveReaction, getPortalCooldown, getPose, getScoreboardTags, getServer, getTicksLived, getType, getUniqueId, getVehicle, getWidth, getWorld, hasGravity, isCustomNameVisible, isDead, isEmpty, isGlowing, isInsideVehicle, isInvulnerable, isInWater, isOnGround, isPersistent, isSilent, isValid, leaveVehicle, playEffect, remove, removePassenger, removeScoreboardTag, setCustomNameVisible, setFallDistance, setFireTicks, setGlowing, setGravity, setInvulnerable, setLastDamageCause, setPassenger, setPersistent, setPortalCooldown, setRotation, setSilent, setTicksLived, spigot, teleport, teleport, teleport, teleportMethods inherited from interface org.bukkit.entity.LivingEntity
addPotionEffect, addPotionEffect, addPotionEffects, attack, getActivePotionEffects, getArrowCooldown, getArrowsInBody, getCanPickupItems, getCategory, getCollidableExemptions, getEquipment, getEyeHeight, getEyeHeight, getEyeLocation, getKiller, getLastDamage, getLastTwoTargetBlocks, getLeashHolder, getLineOfSight, getMaximumAir, getMaximumNoDamageTicks, getMemory, getNoDamageTicks, getPotionEffect, getRemainingAir, getRemoveWhenFarAway, getTargetBlock, getTargetBlockExact, getTargetBlockExact, hasAI, hasLineOfSight, hasPotionEffect, isCollidable, isGliding, isInvisible, isLeashed, isRiptiding, isSleeping, isSwimming, rayTraceBlocks, rayTraceBlocks, removePotionEffect, setAI, setArrowCooldown, setArrowsInBody, setCanPickupItems, setCollidable, setGliding, setInvisible, setLastDamage, setLeashHolder, setMaximumAir, setMaximumNoDamageTicks, setMemory, setNoDamageTicks, setRemainingAir, setRemoveWhenFarAway, setSwimming, swingMainHand, swingOffHandMethods inherited from interface org.bukkit.loot.Lootable
getLootTable, getSeed, setLootTable, setSeedMethods inherited from interface org.bukkit.metadata.Metadatable
getMetadata, hasMetadata, removeMetadata, setMetadataMethods inherited from interface org.bukkit.permissions.Permissible
addAttachment, addAttachment, addAttachment, addAttachment, getEffectivePermissions, hasPermission, hasPermission, isPermissionSet, isPermissionSet, recalculatePermissions, removeAttachmentMethods inherited from interface org.bukkit.persistence.PersistentDataHolder
getPersistentDataContainerMethods inherited from interface org.bukkit.projectiles.ProjectileSource
launchProjectile, launchProjectile
-
Method Details
-
getColor
Gets the horse's color.Colors only apply to horses, not to donkeys, mules, skeleton horses or undead horses.
- Returns:
- a
Horse.Colorrepresenting the horse's group
-
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.
- Parameters:
color- aHorse.Colorfor this horse
-
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.
- Returns:
- a
Horse.Stylerepresenting the horse's style
-
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.
- Parameters:
style- aHorse.Stylefor this horse
-
isCarryingChest
Deprecated.seeChestedHorse- Returns:
- carrying chest status
-
setCarryingChest
Deprecated.seeChestedHorse- Parameters:
chest- chest
-
getInventory
Description copied from interface:InventoryHolderGet the object's inventory.- Specified by:
getInventoryin interfaceAbstractHorse- Specified by:
getInventoryin interfaceInventoryHolder- Returns:
- The inventory.
-