SPIGOT-7406: Improve documentation for getDragonBattle

This commit is contained in:
Doc 2023-07-08 17:29:36 +10:00 committed by md_5
parent 01aa02eb53
commit dbd1761dba
No known key found for this signature in database
GPG key ID: E8E901AC7C617C11

View file

@ -84,8 +84,12 @@ public interface EnderDragon extends ComplexLivingEntity, Boss, Mob, Enemy {
/**
* Get the {@link DragonBattle} associated with this EnderDragon.
*
* This will return null if the EnderDragon is not in the End dimension.
* <br>
* 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
*