Add a "should burn in sunlight" API for Phantoms and Skeletons

This commit is contained in:
MeFisto94
2021-05-11 00:48:51 +02:00
parent 07e76ccd5b
commit 613ffeaeed
2 changed files with 34 additions and 0 deletions

View File

@@ -26,5 +26,19 @@ public interface Phantom extends Flying, Enemy {
*/
@Nullable
public java.util.UUID getSpawningEntity();
/**
* Check if this phantom will burn in the sunlight
*
* @return True if phantom will burn in sunlight
*/
public boolean shouldBurnInDay();
/**
* Set if this phantom should burn in the sunlight
*
* @param shouldBurnInDay True to burn in sunlight
*/
public void setShouldBurnInDay(boolean shouldBurnInDay);
// Paper end
}