Class EntityDamage
java.lang.Object
net.minestom.server.entity.damage.DamageType
net.minestom.server.entity.damage.EntityDamage
- All Implemented Interfaces:
DataContainer
public class EntityDamage extends DamageType
Represents damage inflicted by an
Entity
.-
Field Summary
-
Constructor Summary
Constructors Constructor Description EntityDamage(Entity source)
-
Method Summary
Methods inherited from class net.minestom.server.entity.damage.DamageType
buildDeathMessage, buildDeathScreenText, fromEntity, fromPlayer, fromProjectile, getData, getGenericSound, getIdentifier, getPlayerSound, getSound, setData
-
Constructor Details
-
Method Details
-
getSource
Gets the source of the damage.- Returns:
- the source
-