#535: Add EntityCategory API to LivingEntity

By: Parker Hawke <hawkeboyz2@hotmail.com>
This commit is contained in:
Bukkit/Spigot
2020-08-27 11:42:36 +10:00
parent 301266fe1b
commit c642284c9c
2 changed files with 74 additions and 0 deletions

View File

@@ -552,4 +552,15 @@ public interface LivingEntity extends Attributable, Damageable, ProjectileSource
* @param <T> the type of the passed value
*/
<T> void setMemory(@NotNull MemoryKey<T> memoryKey, @Nullable T memoryValue);
/**
* Get the category to which this entity belongs.
*
* Categories may subject this entity to additional effects, benefits or
* debuffs.
*
* @return the entity category
*/
@NotNull
public EntityCategory getCategory();
}