use of com.github.sirblobman.api.nms.EntityHandler in project CombatLogX by SirBlobman.
the class CombatManager method getEntityName.
private String getEntityName(Player player, LivingEntity entity) {
if (entity == null) {
LanguageManager languageManager = this.plugin.getLanguageManager();
return languageManager.getMessage(player, "placeholder.unknown-enemy", null, true);
}
MultiVersionHandler multiVersionHandler = this.plugin.getMultiVersionHandler();
EntityHandler entityHandler = multiVersionHandler.getEntityHandler();
return entityHandler.getName(entity);
}
use of com.github.sirblobman.api.nms.EntityHandler in project CombatLogX by SirBlobman.
the class Reward method getEntityName.
private String getEntityName(LivingEntity entity) {
ICombatLogX plugin = this.expansion.getPlugin();
MultiVersionHandler multiVersionHandler = plugin.getMultiVersionHandler();
EntityHandler entityHandler = multiVersionHandler.getEntityHandler();
return entityHandler.getName(entity);
}
Aggregations