Modifier and Type | Class and Description |
---|---|
static class |
CitizensNPCRegistry.MapNPCCollection |
static interface |
CitizensNPCRegistry.NPCCollection |
static class |
CitizensNPCRegistry.TroveNPCCollection |
Constructor and Description |
---|
CitizensNPCRegistry(net.citizensnpcs.api.npc.NPCDataStore store) |
Modifier and Type | Method and Description |
---|---|
net.citizensnpcs.api.npc.NPC |
createNPC(EntityType type,
String name) |
net.citizensnpcs.api.npc.NPC |
createNPC(EntityType type,
UUID uuid,
int id,
String name) |
void |
deregister(net.citizensnpcs.api.npc.NPC npc) |
void |
deregisterAll() |
net.citizensnpcs.api.npc.NPC |
getById(int id) |
net.citizensnpcs.api.npc.NPC |
getByUniqueId(UUID uuid) |
net.citizensnpcs.api.npc.NPC |
getByUniqueIdGlobal(UUID uuid) |
net.citizensnpcs.api.npc.NPC |
getNPC(Entity entity) |
boolean |
isNPC(Entity entity) |
Iterator<net.citizensnpcs.api.npc.NPC> |
iterator() |
Iterable<net.citizensnpcs.api.npc.NPC> |
sorted() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEach, spliterator
public CitizensNPCRegistry(net.citizensnpcs.api.npc.NPCDataStore store)
public net.citizensnpcs.api.npc.NPC createNPC(EntityType type, String name)
createNPC
in interface net.citizensnpcs.api.npc.NPCRegistry
public net.citizensnpcs.api.npc.NPC createNPC(EntityType type, UUID uuid, int id, String name)
createNPC
in interface net.citizensnpcs.api.npc.NPCRegistry
public void deregister(net.citizensnpcs.api.npc.NPC npc)
deregister
in interface net.citizensnpcs.api.npc.NPCRegistry
public void deregisterAll()
deregisterAll
in interface net.citizensnpcs.api.npc.NPCRegistry
public net.citizensnpcs.api.npc.NPC getById(int id)
getById
in interface net.citizensnpcs.api.npc.NPCRegistry
public net.citizensnpcs.api.npc.NPC getByUniqueId(UUID uuid)
getByUniqueId
in interface net.citizensnpcs.api.npc.NPCRegistry
public net.citizensnpcs.api.npc.NPC getByUniqueIdGlobal(UUID uuid)
getByUniqueIdGlobal
in interface net.citizensnpcs.api.npc.NPCRegistry
public net.citizensnpcs.api.npc.NPC getNPC(Entity entity)
getNPC
in interface net.citizensnpcs.api.npc.NPCRegistry
public boolean isNPC(Entity entity)
isNPC
in interface net.citizensnpcs.api.npc.NPCRegistry
public Iterator<net.citizensnpcs.api.npc.NPC> iterator()
public Iterable<net.citizensnpcs.api.npc.NPC> sorted()
sorted
in interface net.citizensnpcs.api.npc.NPCRegistry
Copyright © 2019. All rights reserved.