Package com.ryandw11.structure
Class NpcHandler
java.lang.Object
com.ryandw11.structure.NpcHandler
Handles configuration of NPCs.
-
Nested Class Summary
-
Constructor Summary
ConstructorDescriptionNpcHandler(File dataFolder, CustomStructures plugin)
Processes the NPC configuration -
Method Summary
Modifier and TypeMethodDescriptionvoid
cleanUp()
Cleans up the NPC data.getNPCByName(String name)
Get the NPC by its name.
-
Constructor Details
-
NpcHandler
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
Get the NPC by its name.- Parameters:
name
- The name of the NPC.- Returns:
- The NPC Info.
-