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

public class MythicNPCRegistry extends Object implements net.citizensnpcs.api.npc.NPCRegistry
  • Constructor Details

    • MythicNPCRegistry

      public MythicNPCRegistry()
  • Method Details

    • createNPC

      public net.citizensnpcs.api.npc.NPC createNPC(org.bukkit.entity.EntityType type, String name)
      Specified by:
      createNPC in interface net.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 interface net.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 interface net.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 interface net.citizensnpcs.api.npc.NPCRegistry
    • deregister

      public void deregister(net.citizensnpcs.api.npc.NPC npc)
      Specified by:
      deregister in interface net.citizensnpcs.api.npc.NPCRegistry
    • deregisterAll

      public void deregisterAll()
      Specified by:
      deregisterAll in interface net.citizensnpcs.api.npc.NPCRegistry
    • despawnNPCs

      public void despawnNPCs(net.citizensnpcs.api.event.DespawnReason despawnReason)
      Specified by:
      despawnNPCs in interface net.citizensnpcs.api.npc.NPCRegistry
    • getById

      public net.citizensnpcs.api.npc.NPC getById(int id)
      Specified by:
      getById in interface net.citizensnpcs.api.npc.NPCRegistry
    • getByUniqueId

      public net.citizensnpcs.api.npc.NPC getByUniqueId(UUID uuid)
      Specified by:
      getByUniqueId in interface net.citizensnpcs.api.npc.NPCRegistry
    • getByUniqueIdGlobal

      public net.citizensnpcs.api.npc.NPC getByUniqueIdGlobal(UUID uuid)
      Specified by:
      getByUniqueIdGlobal in interface net.citizensnpcs.api.npc.NPCRegistry
    • getName

      public String getName()
      Specified by:
      getName in interface net.citizensnpcs.api.npc.NPCRegistry
    • getNPC

      public net.citizensnpcs.api.npc.NPC getNPC(org.bukkit.entity.Entity entity)
      Specified by:
      getNPC in interface net.citizensnpcs.api.npc.NPCRegistry
    • isNPC

      public boolean isNPC(org.bukkit.entity.Entity entity)
      Specified by:
      isNPC in interface net.citizensnpcs.api.npc.NPCRegistry
    • saveToStore

      public void saveToStore()
      Specified by:
      saveToStore in interface net.citizensnpcs.api.npc.NPCRegistry
    • sorted

      public Iterable<net.citizensnpcs.api.npc.NPC> sorted()
      Specified by:
      sorted in interface net.citizensnpcs.api.npc.NPCRegistry
    • iterator

      @NotNull public Iterator<net.citizensnpcs.api.npc.NPC> iterator()
      Specified by:
      iterator in interface Iterable<net.citizensnpcs.api.npc.NPC>
    • 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)