Package me.bimmr.bimmcore.npc
Class NPCManager
- java.lang.Object
-
- me.bimmr.bimmcore.npc.NPCManager
-
- All Implemented Interfaces:
org.bukkit.event.Listener
public class NPCManager extends java.lang.Object implements org.bukkit.event.Listener
-
-
Constructor Summary
Constructors Constructor Description NPCManager()
-
Method Summary
Modifier and Type Method Description static NPCBase
createNPC(java.lang.String name, org.bukkit.Location location, java.lang.String skin)
static NPCBase
createNPC(java.lang.String name, org.bukkit.Location location, org.bukkit.entity.EntityType type)
static NPCBase
createNPC(NPCBase.NPCType npcType, java.lang.String name, org.bukkit.Location location)
void
damageNPC(org.bukkit.event.entity.EntityDamageEvent e)
static java.util.ArrayList<NPCBase>
getAllNPCs()
static NPCBase
getNPC(int id)
NPCPlayerListener
getNPCPlayerListener()
void
npcOnFire(org.bukkit.event.entity.EntityCombustEvent e)
void
npcTargeted(org.bukkit.event.entity.EntityTargetEvent e)
void
playerDamageNPC(org.bukkit.event.entity.EntityDamageByEntityEvent e)
void
playerInteract(org.bukkit.event.player.PlayerInteractEntityEvent e)
static void
register(NPCBase npcBase)
static void
unregister(NPCBase npcBase)
-
-
-
Method Detail
-
unregister
public static void unregister(NPCBase npcBase)
-
register
public static void register(NPCBase npcBase)
-
getAllNPCs
public static java.util.ArrayList<NPCBase> getAllNPCs()
-
getNPC
public static NPCBase getNPC(int id)
-
createNPC
public static NPCBase createNPC(NPCBase.NPCType npcType, java.lang.String name, org.bukkit.Location location)
-
createNPC
public static NPCBase createNPC(java.lang.String name, org.bukkit.Location location, org.bukkit.entity.EntityType type)
-
createNPC
public static NPCBase createNPC(java.lang.String name, org.bukkit.Location location, java.lang.String skin)
-
getNPCPlayerListener
public NPCPlayerListener getNPCPlayerListener()
-
playerDamageNPC
public void playerDamageNPC(org.bukkit.event.entity.EntityDamageByEntityEvent e)
-
damageNPC
public void damageNPC(org.bukkit.event.entity.EntityDamageEvent e)
-
npcOnFire
public void npcOnFire(org.bukkit.event.entity.EntityCombustEvent e)
-
npcTargeted
public void npcTargeted(org.bukkit.event.entity.EntityTargetEvent e)
-
playerInteract
public void playerInteract(org.bukkit.event.player.PlayerInteractEntityEvent e)
-
-