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 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 -
Method Summary
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.seeChestedHorse
void
setCarryingChest(boolean chest)
Deprecated.seeChestedHorse
void
setColor(Horse.Color color)
Sets the horse's color.void
setStyle(Horse.Style style)
Sets the style of this horse.Methods inherited from interface org.bukkit.entity.AbstractHorse
getDomestication, getJumpStrength, getMaxDomestication, getVariant, setDomestication, setJumpStrength, setMaxDomestication, setVariant
Methods inherited from interface org.bukkit.entity.Ageable
getAge, isAdult, setAdult, setAge, setBaby
Methods inherited from interface org.bukkit.entity.Animals
getBreedCause, getLoveModeTicks, isLoveMode, setBreedCause, setLoveModeTicks
Methods inherited from interface org.bukkit.entity.Breedable
canBreed, getAgeLock, setAgeLock, setBreed
Methods inherited from interface org.bukkit.command.CommandSender
getName, sendMessage, sendMessage, sendMessage, sendMessage
Methods inherited from interface org.bukkit.entity.Damageable
damage, damage, getAbsorptionAmount, getHealth, getMaxHealth, resetMaxHealth, setAbsorptionAmount, setHealth, setMaxHealth
Methods 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, 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, teleport
Methods 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, swingOffHand
Methods inherited from interface org.bukkit.loot.Lootable
getLootTable, getSeed, setLootTable, setSeed
Methods inherited from interface org.bukkit.metadata.Metadatable
getMetadata, hasMetadata, removeMetadata, setMetadata
Methods inherited from interface org.bukkit.permissions.Permissible
addAttachment, addAttachment, addAttachment, addAttachment, getEffectivePermissions, hasPermission, hasPermission, isPermissionSet, isPermissionSet, recalculatePermissions, removeAttachment
Methods inherited from interface org.bukkit.persistence.PersistentDataHolder
getPersistentDataContainer
Methods 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.Color
representing 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.Color
for 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.Style
representing 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.Style
for this horse
-
isCarryingChest
Deprecated.seeChestedHorse
- Returns:
- carrying chest status
-
setCarryingChest
Deprecated.seeChestedHorse
- Parameters:
chest
- chest
-
getInventory
Description copied from interface:InventoryHolder
Get the object's inventory.- Specified by:
getInventory
in interfaceAbstractHorse
- Specified by:
getInventory
in interfaceInventoryHolder
- Returns:
- The inventory.
-