public interface AbstractHorse extends Animals, Vehicle, InventoryHolder, Tameable
Entity.Spigot
Modifier and Type | Method and Description |
---|---|
int |
getDomestication()
Gets the domestication level of this horse.
|
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
_INVALID_getLastDamage, _INVALID_setLastDamage, addPotionEffect, addPotionEffect, addPotionEffects, getActivePotionEffects, getCanPickupItems, getEquipment, getEyeHeight, getEyeHeight, getEyeLocation, getKiller, getLastDamage, getLastTwoTargetBlocks, getLastTwoTargetBlocks, getLeashHolder, getLineOfSight, getLineOfSight, getMaximumAir, getMaximumNoDamageTicks, getNoDamageTicks, getPotionEffect, getRemainingAir, getRemoveWhenFarAway, getTargetBlock, getTargetBlock, hasAI, hasLineOfSight, hasPotionEffect, isCollidable, isGliding, isLeashed, removePotionEffect, setAI, setCanPickupItems, setCollidable, setGliding, setLastDamage, setLeashHolder, setMaximumAir, setMaximumNoDamageTicks, setNoDamageTicks, setRemainingAir, setRemoveWhenFarAway
getAttribute
_INVALID_damage, _INVALID_damage, _INVALID_getHealth, _INVALID_getMaxHealth, _INVALID_setHealth, _INVALID_setMaxHealth, damage, damage, getHealth, getMaxHealth, resetMaxHealth, setHealth, setMaxHealth
addPassenger, addScoreboardTag, eject, getEntityId, getFallDistance, getFireTicks, getHeight, getLastDamageCause, getLocation, getLocation, getMaxFireTicks, getNearbyEntities, getPassenger, getPassengers, getPortalCooldown, getScoreboardTags, getServer, getTicksLived, getType, getUniqueId, getVehicle, getVelocity, getWidth, getWorld, hasGravity, isCustomNameVisible, isDead, isEmpty, isGlowing, isInsideVehicle, isInvulnerable, isOnGround, isSilent, isValid, leaveVehicle, playEffect, remove, removePassenger, removeScoreboardTag, setCustomNameVisible, setFallDistance, setFireTicks, setGlowing, setGravity, setInvulnerable, setLastDamageCause, setPassenger, setPortalCooldown, setSilent, setTicksLived, setVelocity, spigot, teleport, teleport, teleport, teleport
getMetadata, hasMetadata, removeMetadata, setMetadata
getName, sendMessage, sendMessage
addAttachment, addAttachment, addAttachment, addAttachment, getEffectivePermissions, hasPermission, hasPermission, isPermissionSet, isPermissionSet, recalculatePermissions, removeAttachment
isOp, setOp
getCustomName, setCustomName
launchProjectile, launchProjectile
getVelocity, setVelocity
getInventory
@Deprecated 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 void setVariant(Horse.Variant variant)
variant
- int 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 horseCopyright © 2017. All rights reserved.