Class MythicNPCRegistry
java.lang.Object
net.playavalon.mythicdungeons.compatibility.citizens.MythicNPCRegistry
- All Implemented Interfaces:
Iterable<net.citizensnpcs.api.npc.NPC>
,net.citizensnpcs.api.npc.NPCRegistry
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionnet.citizensnpcs.api.npc.NPC
cloneNPC
(int id) net.citizensnpcs.api.npc.NPC
net.citizensnpcs.api.npc.NPC
net.citizensnpcs.api.npc.NPC
net.citizensnpcs.api.npc.NPC
createNPCUsingItem
(org.bukkit.entity.EntityType entityType, String s, org.bukkit.inventory.ItemStack itemStack) void
deregister
(net.citizensnpcs.api.npc.NPC npc) void
void
despawnNPCs
(net.citizensnpcs.api.event.DespawnReason despawnReason) net.citizensnpcs.api.npc.NPC
getById
(int id) net.citizensnpcs.api.npc.NPC
getByUniqueId
(UUID uuid) net.citizensnpcs.api.npc.NPC
getByUniqueIdGlobal
(UUID uuid) getName()
net.citizensnpcs.api.npc.NPC
getNPC
(org.bukkit.entity.Entity entity) boolean
isNPC
(org.bukkit.entity.Entity entity) Iterator<net.citizensnpcs.api.npc.NPC>
iterator()
void
save
(net.citizensnpcs.api.npc.NPC npc, net.citizensnpcs.api.util.DataKey key) void
Iterable<net.citizensnpcs.api.npc.NPC>
sorted()
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
Constructor Details
-
MythicNPCRegistry
public MythicNPCRegistry()
-
-
Method Details
-
createNPC
- Specified by:
createNPC
in interfacenet.citizensnpcs.api.npc.NPCRegistry
-
createNPC
public net.citizensnpcs.api.npc.NPC createNPC(org.bukkit.entity.EntityType type, String name, org.bukkit.Location location) - Specified by:
createNPC
in interfacenet.citizensnpcs.api.npc.NPCRegistry
-
createNPC
public net.citizensnpcs.api.npc.NPC createNPC(org.bukkit.entity.EntityType type, UUID uuid, int id, String name) - Specified by:
createNPC
in interfacenet.citizensnpcs.api.npc.NPCRegistry
-
createNPCUsingItem
public net.citizensnpcs.api.npc.NPC createNPCUsingItem(org.bukkit.entity.EntityType entityType, String s, org.bukkit.inventory.ItemStack itemStack) - Specified by:
createNPCUsingItem
in interfacenet.citizensnpcs.api.npc.NPCRegistry
-
deregister
public void deregister(net.citizensnpcs.api.npc.NPC npc) - Specified by:
deregister
in interfacenet.citizensnpcs.api.npc.NPCRegistry
-
deregisterAll
public void deregisterAll()- Specified by:
deregisterAll
in interfacenet.citizensnpcs.api.npc.NPCRegistry
-
despawnNPCs
public void despawnNPCs(net.citizensnpcs.api.event.DespawnReason despawnReason) - Specified by:
despawnNPCs
in interfacenet.citizensnpcs.api.npc.NPCRegistry
-
getById
public net.citizensnpcs.api.npc.NPC getById(int id) - Specified by:
getById
in interfacenet.citizensnpcs.api.npc.NPCRegistry
-
getByUniqueId
- Specified by:
getByUniqueId
in interfacenet.citizensnpcs.api.npc.NPCRegistry
-
getByUniqueIdGlobal
- Specified by:
getByUniqueIdGlobal
in interfacenet.citizensnpcs.api.npc.NPCRegistry
-
getName
- Specified by:
getName
in interfacenet.citizensnpcs.api.npc.NPCRegistry
-
getNPC
public net.citizensnpcs.api.npc.NPC getNPC(org.bukkit.entity.Entity entity) - Specified by:
getNPC
in interfacenet.citizensnpcs.api.npc.NPCRegistry
-
isNPC
public boolean isNPC(org.bukkit.entity.Entity entity) - Specified by:
isNPC
in interfacenet.citizensnpcs.api.npc.NPCRegistry
-
saveToStore
public void saveToStore()- Specified by:
saveToStore
in interfacenet.citizensnpcs.api.npc.NPCRegistry
-
sorted
- Specified by:
sorted
in interfacenet.citizensnpcs.api.npc.NPCRegistry
-
iterator
-
cloneNPC
public net.citizensnpcs.api.npc.NPC cloneNPC(int id) -
save
public void save(net.citizensnpcs.api.npc.NPC npc, net.citizensnpcs.api.util.DataKey key)
-