damage

public abstract void damage(double amount)

Deals the given amount of damage to this entity.

Parameters

amount

Amount of damage to deal


public abstract void damage(double amount, Entity source)

Deals the given amount of damage to this entity, from getClassById specified entity.

Parameters

amount

Amount of damage to deal

source

Entity which to attribute this damage from