Package org.bukkit.entity
Interface Horse
-
- All Superinterfaces:
AbstractHorse,Ageable,Animals,Attributable,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-
Nested classes/interfaces inherited from interface org.bukkit.entity.Entity
Entity.Spigot
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods 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, setVariant
-
Methods inherited from interface org.bukkit.entity.Ageable
canBreed, getAge, getAgeLock, isAdult, setAdult, setAge, setAgeLock, setBaby, setBreed
-
Methods inherited from interface org.bukkit.entity.Animals
getBreedCause, getLoveModeTicks, isLoveMode, setBreedCause, setLoveModeTicks
-
Methods inherited from interface org.bukkit.attribute.Attributable
getAttribute
-
Methods inherited from interface org.bukkit.command.CommandSender
getName, 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, 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
-
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.Nameable
getCustomName, setCustomName
-
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
-
Methods inherited from interface org.bukkit.permissions.ServerOperator
isOp, setOp
-
Methods inherited from interface org.bukkit.entity.Vehicle
getVelocity, setVelocity
-
-
-
-
Method Detail
-
getColor
@NotNull Horse.Color 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
void setColor(@NotNull Horse.Color color)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
@NotNull Horse.Style 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
void setStyle(@NotNull Horse.Style style)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 boolean isCarryingChest()
Deprecated.seeChestedHorse- Returns:
- carrying chest status
-
setCarryingChest
@Deprecated void setCarryingChest(boolean chest)
Deprecated.seeChestedHorse- Parameters:
chest- chest
-
getInventory
@NotNull HorseInventory getInventory()
Description copied from interface:InventoryHolderGet the object's inventory.- Specified by:
getInventoryin interfaceAbstractHorse- Specified by:
getInventoryin interfaceInventoryHolder- Returns:
- The inventory.
-
-