Ageable
, Animals
, Attributable
, CommandSender
, Creature
, Damageable
, Entity
, InventoryHolder
, LivingEntity
, Lootable
, Metadatable
, Mob
, Nameable
, Permissible
, PersistentDataHolder
, ProjectileSource
, ServerOperator
, Tameable
, Vehicle
ChestedHorse
, Donkey
, Horse
, Llama
, Mule
, SkeletonHorse
, TraderLlama
, ZombieHorse
public interface AbstractHorse extends Vehicle, InventoryHolder, Tameable
Modifier and Type | Method | Description |
---|---|---|
int |
getDomestication() |
Gets the domestication level of this horse.
|
@NotNull AbstractHorseInventory |
getInventory() |
Get the object's inventory.
|
double |
getJumpStrength() |
Gets the jump strength of this horse.
|
int |
getMaxDomestication() |
Gets the maximum domestication level of this horse.
|
Horse.Variant |
getVariant() |
Deprecated.
different variants are different classes
|
void |
setDomestication(int level) |
Sets the domestication level of this horse.
|
void |
setJumpStrength(double strength) |
Sets the jump strength of this horse.
|
void |
setMaxDomestication(int level) |
Sets the maximum domestication level of this horse.
|
void |
setVariant(Horse.Variant variant) |
Deprecated.
you are required to spawn a different entity
|
canBreed, getAge, getAgeLock, isAdult, setAdult, setAge, setAgeLock, setBaby, setBreed
getBreedCause, getLoveModeTicks, isLoveMode, setBreedCause, setLoveModeTicks
getAttribute
getName, sendMessage, sendMessage, sendMessage, sendMessage
damage, damage, getAbsorptionAmount, getHealth, getMaxHealth, resetMaxHealth, setAbsorptionAmount, setHealth, setMaxHealth
addPassenger, addScoreboardTag, eject, fromMobSpawner, getBoundingBox, getChunk, getEntityId, getEntitySpawnReason, getFacing, getFallDistance, getFireTicks, getHeight, getLastDamageCause, getLocation, getLocation, getMaxFireTicks, getNearbyEntities, getOrigin, getPassenger, getPassengers, getPistonMoveReaction, getPortalCooldown, getPose, getScoreboardTags, 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, teleport, teleport, teleport, teleport, teleportAsync, teleportAsync
addPotionEffect, addPotionEffect, addPotionEffects, attack, getActiveItem, getActivePotionEffects, getArrowsStuck, getCanPickupItems, getEquipment, getEyeHeight, getEyeHeight, getEyeLocation, getHandRaisedTime, getItemUseRemainingTime, getKiller, getLastDamage, getLastTwoTargetBlocks, getLeashHolder, getLineOfSight, getMaximumAir, getMaximumNoDamageTicks, getMemory, getNoDamageTicks, getPotionEffect, getRemainingAir, getRemoveWhenFarAway, getShieldBlockingDelay, getTargetBlock, getTargetBlock, getTargetBlock, getTargetBlockExact, getTargetBlockExact, getTargetBlockFace, getTargetBlockFace, getTargetBlockInfo, getTargetBlockInfo, getTargetEntity, getTargetEntity, getTargetEntityInfo, getTargetEntityInfo, hasAI, hasLineOfSight, hasPotionEffect, isCollidable, isGliding, isHandRaised, isJumping, isLeashed, isRiptiding, isSleeping, isSwimming, rayTraceBlocks, rayTraceBlocks, removePotionEffect, setAI, setArrowsStuck, setCanPickupItems, setCollidable, setGliding, setJumping, setKiller, setLastDamage, setLeashHolder, setMaximumAir, setMaximumNoDamageTicks, setMemory, setNoDamageTicks, setRemainingAir, setRemoveWhenFarAway, setShieldBlockingDelay, setSwimming, swingMainHand, swingOffHand
clearLootTable, getLootTable, getSeed, hasLootTable, setLootTable, setLootTable, setSeed
getMetadata, hasMetadata, removeMetadata, setMetadata
getPathfinder, getTarget, isAware, isInDaylight, setAware, setTarget
getCustomName, setCustomName
addAttachment, addAttachment, addAttachment, addAttachment, getEffectivePermissions, hasPermission, hasPermission, isPermissionSet, isPermissionSet, recalculatePermissions, removeAttachment
getPersistentDataContainer
launchProjectile, launchProjectile
isOp, setOp
getOwner, getOwnerUniqueId, isTamed, setOwner, setTamed
getVelocity, setVelocity
@Deprecated @NotNull Horse.Variant getVariant()
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.
Horse.Variant
representing the horse's variant@Deprecated @Contract("_ -> fail") void setVariant(Horse.Variant variant)
variant
- variantint getDomestication()
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.
void setDomestication(int level)
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()
level
- domestication levelint getMaxDomestication()
The higher this level is, the longer it will likely take for the horse to be tamed.
void setMaxDomestication(int level)
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.
level
- the max domestication leveldouble getJumpStrength()
Jump strength defines how high the horse can jump. A higher jump strength increases how high a jump will go.
void setJumpStrength(double strength)
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.
strength
- jump strength for this horse@NotNull @NotNull AbstractHorseInventory getInventory()
InventoryHolder
getInventory
in interface InventoryHolder
Copyright © 2020. All rights reserved.