Improve entity effect API

This commit is contained in:
Jake Potrebic
2024-09-27 17:12:50 -07:00
parent 4a86a6e4ee
commit 4cd3060ff8
3 changed files with 66 additions and 1 deletions
@@ -3899,4 +3899,16 @@ public interface Player extends HumanEntity, Conversable, OfflinePlayer, PluginM
@Override
Spigot spigot();
// Spigot end
// Paper start - entity effect API
/**
* Plays an entity effect to this player for the target entity
* <p>
* If the effect is not applicable to this class of entity, it will not play.
*
* @param effect the entity effect
* @param target the target entity
*/
void sendEntityEffect(org.bukkit.@NotNull EntityEffect effect, @NotNull Entity target);
// Paper end - entity effect API
}