public interface NPCManager
Modifier and Type | Method and Description |
---|---|
ChunkLoaderNPC |
createNPC(org.bukkit.Location location)
Create a NPC in a specific location.
|
java.util.Optional<ChunkLoaderNPC> |
getNPC(org.bukkit.Location location)
Get a NPC by it's location.
|
boolean |
isNPC(org.bukkit.entity.LivingEntity livingEntity)
Check whether or not an entity is an NPC.
|
void |
killAllNPCs()
Kill all the npcs on the server.
|
void |
killNPC(ChunkLoaderNPC npc)
Kill a NPC.
|
java.util.Optional<ChunkLoaderNPC> getNPC(org.bukkit.Location location)
location
- The location of the npc.ChunkLoaderNPC createNPC(org.bukkit.Location location)
location
- The location of the npc.boolean isNPC(org.bukkit.entity.LivingEntity livingEntity)
livingEntity
- The entity to check.void killNPC(ChunkLoaderNPC npc)
npc
- The NPC to kill.void killAllNPCs()