CommandSender, Entity, Metadatable, Nameable, Permissible, PersistentDataHolder, ServerOperatorAbstractHorse, AbstractVillager, Ageable, Ambient, Animals, ArmorStand, Bat, Blaze, Cat, CaveSpider, ChestedHorse, Chicken, Cod, ComplexLivingEntity, Cow, Creature, Creeper, Dolphin, Donkey, Drowned, ElderGuardian, EnderDragon, EnderDragonPart, Enderman, Endermite, Evoker, Fish, Flying, Fox, Ghast, Giant, Golem, Guardian, Horse, HumanEntity, Husk, Illager, Illusioner, IronGolem, LivingEntity, Llama, MagmaCube, Mob, Monster, Mule, MushroomCow, NPC, Ocelot, Panda, Parrot, Phantom, Pig, PigZombie, Pillager, Player, PolarBear, PufferFish, Rabbit, Raider, RangedEntity, Ravager, Salmon, Sheep, Shulker, Silverfish, Skeleton, SkeletonHorse, Slime, Snowman, Spellcaster, Spider, Squid, Stray, TraderLlama, TropicalFish, Turtle, Vex, Villager, Vindicator, WanderingTrader, WaterMob, Witch, Wither, WitherSkeleton, Wolf, Zombie, ZombieHorse, ZombieVillagerpublic interface Damageable extends Entity
Entity that has health and can take damage.Entity.Spigot| Modifier and Type | Method | Description | 
|---|---|---|
| void | damage(double amount) | Deals the given amount of damage to this entity. | 
| void | damage(double amount,
      Entity source) | Deals the given amount of damage to this entity, from a specified
 entity. | 
| double | getAbsorptionAmount() | Gets the entity's absorption amount. | 
| double | getHealth() | Gets the entity's health from 0 to  getMaxHealth(), where 0 is dead. | 
| double | getMaxHealth() | Deprecated.
 | 
| void | resetMaxHealth() | Deprecated.
 | 
| void | setAbsorptionAmount(double amount) | Sets the entity's absorption amount. | 
| void | setHealth(double health) | Sets the entity's health from 0 to  getMaxHealth(), where 0 is
 dead. | 
| void | setMaxHealth(double health) | Deprecated.
 | 
getName, sendMessage, sendMessage, sendMessage, sendMessageaddPassenger, addScoreboardTag, eject, fromMobSpawner, getBoundingBox, getChunk, getEntityId, getEntitySpawnReason, getFacing, getFallDistance, getFireTicks, getHeight, getLastDamageCause, getLocation, getLocation, getMaxFireTicks, getNearbyEntities, getOrigin, getPassenger, getPassengers, getPistonMoveReaction, getPortalCooldown, getPose, getScoreboardTags, getServer, getTicksLived, getType, getUniqueId, getVehicle, getVelocity, 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, setVelocity, spigot, teleport, teleport, teleport, teleport, teleportAsync, teleportAsyncgetMetadata, hasMetadata, removeMetadata, setMetadatagetCustomName, setCustomNameaddAttachment, addAttachment, addAttachment, addAttachment, getEffectivePermissions, hasPermission, hasPermission, isPermissionSet, isPermissionSet, recalculatePermissions, removeAttachmentgetPersistentDataContainerisOp, setOpvoid damage(double amount)
amount - Amount of damage to dealvoid damage(double amount,
            @Nullable
            Entity source)
amount - Amount of damage to dealsource - Entity which to attribute this damage fromdouble getHealth()
getMaxHealth(), where 0 is dead.void setHealth(double health)
getMaxHealth(), where 0 is
 dead.health - New health represented from 0 to maxIllegalArgumentException - Thrown if the health is < 0 or >
     getMaxHealth()double getAbsorptionAmount()
void setAbsorptionAmount(double amount)
amount - new absorption amount from 0IllegalArgumentException - thrown if health is < 0 or
 non-finite.@Deprecated double getMaxHealth()
@Deprecated void setMaxHealth(double health)
If the health of the entity is above the value provided it will be set to that value.
 Note: An entity with a health bar (Player, EnderDragon,
 Wither, etc...} will have their bar scaled accordingly.
health - amount of health to set the maximum to@Deprecated void resetMaxHealth()
Copyright © 2020. All rights reserved.