SPIGOT-7406: Improve documentation for getDragonBattle

By: Doc <nachito94@msn.com>
This commit is contained in:
Bukkit/Spigot 2023-07-08 17:29:36 +10:00
parent cae67d1aad
commit 76090cb83e

View file

@ -84,8 +84,12 @@ public interface EnderDragon extends ComplexLivingEntity, Boss, Mob, Enemy {
/** /**
* Get the {@link DragonBattle} associated with this EnderDragon. * Get the {@link DragonBattle} associated with this EnderDragon.
* * <br>
* This will return null if the EnderDragon is not in the End dimension. * This will return null for the following reasons:
* <ul>
* <li>The EnderDragon is not in the End dimension</li>
* <li>The EnderDragon was summoned by command/API</li>
* </ul>
* *
* @return the dragon battle * @return the dragon battle
* *