Interface AbstractHorse
- All Superinterfaces:
- Ageable,- Animals,- Attributable,- Breedable,- CommandSender,- Creature,- Damageable,- Entity,- InventoryHolder,- LivingEntity,- Lootable,- Metadatable,- Mob,- Nameable,- Permissible,- PersistentDataHolder,- ProjectileSource,- ServerOperator,- Tameable,- Vehicle
- All Known Subinterfaces:
- Camel,- ChestedHorse,- Donkey,- Horse,- Llama,- Mule,- SkeletonHorse,- TraderLlama,- ZombieHorse
- 
Nested Class SummaryNested classes/interfaces inherited from interface org.bukkit.entity.EntityEntity.Spigot
- 
Method SummaryModifier and TypeMethodDescriptionintGets the domestication level of this horse.Get the object's inventory.doubleGets the jump strength of this horse.intGets the maximum domestication level of this horse.Deprecated.different variants are different classesbooleanGets whether the horse is currently grazing hay.voidsetDomestication(int level) Sets the domestication level of this horse.voidsetEatingHaystack(boolean eatingHaystack) Sets whether the horse is grazing hay.voidsetJumpStrength(double strength) Sets the jump strength of this horse.voidsetMaxDomestication(int level) Sets the maximum domestication level of this horse.voidsetVariant(Horse.Variant variant) Deprecated.you are required to spawn a different entityMethods inherited from interface org.bukkit.entity.AgeablegetAge, isAdult, setAdult, setAge, setBabyMethods inherited from interface org.bukkit.entity.AnimalsgetBreedCause, getLoveModeTicks, isBreedItem, isBreedItem, isLoveMode, setBreedCause, setLoveModeTicksMethods inherited from interface org.bukkit.attribute.AttributablegetAttributeMethods inherited from interface org.bukkit.entity.BreedablecanBreed, getAgeLock, setAgeLock, setBreedMethods inherited from interface org.bukkit.command.CommandSendergetName, sendMessage, sendMessage, sendMessage, sendMessageMethods inherited from interface org.bukkit.entity.Damageabledamage, damage, getAbsorptionAmount, getHealth, getMaxHealth, resetMaxHealth, setAbsorptionAmount, setHealth, setMaxHealthMethods inherited from interface org.bukkit.entity.EntityaddPassenger, addScoreboardTag, eject, getBoundingBox, getEntityId, getFacing, getFallDistance, getFireTicks, getFreezeTicks, getHeight, getLastDamageCause, getLocation, getLocation, getMaxFireTicks, getMaxFreezeTicks, getNearbyEntities, getPassenger, getPassengers, getPistonMoveReaction, getPortalCooldown, getPose, getScoreboardTags, getServer, getSpawnCategory, getSwimHighSpeedSplashSound, getSwimSound, getSwimSplashSound, getTicksLived, getType, getUniqueId, getVehicle, getWidth, getWorld, hasGravity, isCustomNameVisible, isDead, isEmpty, isFrozen, isGlowing, isInsideVehicle, isInvulnerable, isInWater, isOnGround, isPersistent, isSilent, isValid, isVisibleByDefault, isVisualFire, leaveVehicle, playEffect, remove, removePassenger, removeScoreboardTag, setCustomNameVisible, setFallDistance, setFireTicks, setFreezeTicks, setGlowing, setGravity, setInvulnerable, setLastDamageCause, setPassenger, setPersistent, setPortalCooldown, setRotation, setSilent, setTicksLived, setVisibleByDefault, setVisualFire, spigot, teleport, teleport, teleport, teleportMethods inherited from interface org.bukkit.entity.LivingEntityaddPotionEffect, addPotionEffect, addPotionEffects, attack, canBreatheUnderwater, getActivePotionEffects, getArrowCooldown, getArrowsInBody, getCanPickupItems, getCategory, getCollidableExemptions, getDeathSound, getDrinkingSound, getEatingSound, getEquipment, getEyeHeight, getEyeHeight, getEyeLocation, getFallDamageSound, getFallDamageSoundBig, getFallDamageSoundSmall, getHurtSound, getKiller, getLastDamage, getLastTwoTargetBlocks, getLeashHolder, getLineOfSight, getMaximumAir, getMaximumNoDamageTicks, getMemory, getNoDamageTicks, getPotionEffect, getRemainingAir, getRemoveWhenFarAway, getTargetBlock, getTargetBlockExact, getTargetBlockExact, hasAI, hasLineOfSight, hasPotionEffect, isClimbing, 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.LootablegetLootTable, getSeed, setLootTable, setSeedMethods inherited from interface org.bukkit.metadata.MetadatablegetMetadata, hasMetadata, removeMetadata, setMetadataMethods inherited from interface org.bukkit.entity.MobgetAmbientSound, getTarget, isAware, setAware, setTargetMethods inherited from interface org.bukkit.NameablegetCustomName, setCustomNameMethods inherited from interface org.bukkit.permissions.PermissibleaddAttachment, addAttachment, addAttachment, addAttachment, getEffectivePermissions, hasPermission, hasPermission, isPermissionSet, isPermissionSet, recalculatePermissions, removeAttachmentMethods inherited from interface org.bukkit.persistence.PersistentDataHoldergetPersistentDataContainerMethods inherited from interface org.bukkit.projectiles.ProjectileSourcelaunchProjectile, launchProjectileMethods inherited from interface org.bukkit.permissions.ServerOperatorisOp, setOpMethods inherited from interface org.bukkit.entity.VehiclegetVelocity, setVelocity
- 
Method Details- 
getVariantDeprecated.different variants are different classesGets the horse's variant.A horse's variant defines its physical appearance and capabilities. Whether a horse is a regular horse, donkey, mule, or other kind of horse is determined using the variant. - Returns:
- a Horse.Variantrepresenting the horse's variant
 
- 
setVariantDeprecated.you are required to spawn a different entity- Parameters:
- variant- variant
 
- 
getDomesticationint getDomestication()Gets the domestication level of this horse.A higher domestication level indicates that the horse is closer to becoming tame. As the domestication level gets closer to the max domestication level, the chance of the horse becoming tame increases. - Returns:
- domestication level
 
- 
setDomesticationvoid setDomestication(int level) Sets the domestication level of this horse.Setting the domestication level to a high value will increase the horse's chances of becoming tame. Domestication level must be greater than zero and no greater than the max domestication level of the horse, determined with getMaxDomestication()- Parameters:
- level- domestication level
 
- 
getMaxDomesticationint getMaxDomestication()Gets the maximum domestication level of this horse.The higher this level is, the longer it will likely take for the horse to be tamed. - Returns:
- the max domestication level
 
- 
setMaxDomesticationvoid setMaxDomestication(int level) Sets the maximum domestication level of this horse.Setting a higher max domestication will increase the amount of domesticating (feeding, riding, etc.) necessary in order to tame it, while setting a lower max value will have the opposite effect. Maximum domestication must be greater than zero. - Parameters:
- level- the max domestication level
 
- 
getJumpStrengthdouble getJumpStrength()Gets the jump strength of this horse.Jump strength defines how high the horse can jump. A higher jump strength increases how high a jump will go. - Returns:
- the horse's jump strength
 
- 
setJumpStrengthvoid setJumpStrength(double strength) Sets the jump strength of this horse.A higher jump strength increases how high a jump will go. Setting a jump strength to 0 will result in no jump. You cannot set a jump strength to a value below 0 or above 2. - Parameters:
- strength- jump strength for this horse
 
- 
isEatingHaystackboolean isEatingHaystack()Gets whether the horse is currently grazing hay.- Returns:
- true if eating hay
 
- 
setEatingHaystackvoid setEatingHaystack(boolean eatingHaystack) Sets whether the horse is grazing hay.- Parameters:
- eatingHaystack- new hay grazing status
 
- 
getInventoryDescription copied from interface:InventoryHolderGet the object's inventory.- Specified by:
- getInventoryin interface- InventoryHolder
- Returns:
- The inventory.
 
 
-