com.sucy.skill.hook.CitizensHook Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of proskillapi Show documentation
Show all versions of proskillapi Show documentation
A Minecraft Bukkit plugin aiming to provide an easy code API and skill editor for all server owners to
create unique and fully custom classes and skills.
package com.sucy.skill.hook;
import org.bukkit.entity.Entity;
/**
* Handles checking whether an entity is an NPC
*/
public class CitizensHook {
public static boolean isNPC(Entity entity) {
return entity.getClass().getName().equals("PlayerNPC");
}
}