Search in sources :

Example 11 with MultiVersionHandler

use of com.github.sirblobman.api.nms.MultiVersionHandler 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);
}
Also used : MultiVersionHandler(com.github.sirblobman.api.nms.MultiVersionHandler) ICombatLogX(com.github.sirblobman.combatlogx.api.ICombatLogX) EntityHandler(com.github.sirblobman.api.nms.EntityHandler)

Aggregations

MultiVersionHandler (com.github.sirblobman.api.nms.MultiVersionHandler)11 ICombatLogX (com.github.sirblobman.combatlogx.api.ICombatLogX)9 EntityHandler (com.github.sirblobman.api.nms.EntityHandler)7 LanguageManager (com.github.sirblobman.api.language.LanguageManager)4 ItemHandler (com.github.sirblobman.api.nms.ItemHandler)2 ICombatManager (com.github.sirblobman.combatlogx.api.manager.ICombatManager)2 CommandSender (org.bukkit.command.CommandSender)2 LivingEntity (org.bukkit.entity.LivingEntity)2 Player (org.bukkit.entity.Player)2 ScoreboardHandler (com.github.sirblobman.api.nms.scoreboard.ScoreboardHandler)1 CitizensExpansion (combatlogx.expansion.compatibility.citizens.CitizensExpansion)1 CombatNPC (combatlogx.expansion.compatibility.citizens.object.CombatNPC)1 UUID (java.util.UUID)1 NPC (net.citizensnpcs.api.npc.NPC)1 NPCRegistry (net.citizensnpcs.api.npc.NPCRegistry)1 Location (org.bukkit.Location)1 OfflinePlayer (org.bukkit.OfflinePlayer)1 YamlConfiguration (org.bukkit.configuration.file.YamlConfiguration)1 Entity (org.bukkit.entity.Entity)1 EntityType (org.bukkit.entity.EntityType)1