Class NpcHandler

java.lang.Object
com.ryandw11.structure.NpcHandler

public class NpcHandler extends Object
Handles configuration of NPCs.
  • Constructor Details

    • NpcHandler

      public NpcHandler(File dataFolder, CustomStructures plugin)
      Processes the NPC configuration
      Parameters:
      dataFolder - The base plugin data folder.
      plugin - The instance to the Custom Structures plugin.
  • Method Details

    • cleanUp

      public void cleanUp()
      Cleans up the NPC data.
    • getNPCByName

      public NpcHandler.NpcInfo getNPCByName(String name)
      Get the NPC by its name.
      Parameters:
      name - The name of the NPC.
      Returns:
      The NPC Info.