Improve compatibility of new DamageSource API

By: md_5 <git@md-5.net>
This commit is contained in:
Bukkit/Spigot
2024-02-14 06:38:57 +11:00
parent e32cdbcc1c
commit 5c89ccf428
4 changed files with 35 additions and 0 deletions

View File

@@ -395,7 +395,9 @@ public interface Entity extends Metadatable, CommandSender, Nameable, Persistent
* Record the last {@link EntityDamageEvent} inflicted on this entity
*
* @param event a {@link EntityDamageEvent}
* @deprecated method is for internal use only and will be removed
*/
@Deprecated(forRemoval = true)
public void setLastDamageCause(@Nullable EntityDamageEvent event);
/**