Class NPCRegistry

java.lang.Object
com.github.skriptdev.skript.api.skript.registration.NPCRegistry

public class NPCRegistry extends Object
Registry holder for NPC Roles.
  • Constructor Details

    • NPCRegistry

      public NPCRegistry()
  • Method Details

    • getByIndex

      public static NPCRegistry.NPCRole getByIndex(int index)
      Get an NPCRole by its index;
      Parameters:
      index - Index of the role
      Returns:
      NPCRole with the given index, or null if not found
    • getTypeUsage

      public static String getTypeUsage()
    • parse

      public static NPCRegistry.NPCRole parse(String name)
    • stringify

      public static String stringify(com.hypixel.hytale.server.npc.entities.NPCEntity entity)