Package lol.pyr.znpcsplus.api.npc
Interface NpcEntry
public interface NpcEntry
Base class for all NPC entries
An NPC entry is a wrapper around an NPC that contains additional information
-
Method Summary
Modifier and TypeMethodDescriptionvoidEnables everything for this NPC entry That is, it makes the NPC processed, saveable, and allows command modificationgetId()Gets the ID of this NPC entrygetNpc()Gets the NPC of this NPC entrybooleanGets if this NPC can be modified by commandsbooleanGets if this NPC entry is processed or notbooleanisSave()voidsetAllowCommandModification(boolean value) Sets if this NPC can be modified by commandsvoidsetProcessed(boolean value) Sets if this NPC entry is processed or notvoidsetSave(boolean value) Sets if this NPC should be saved or not
-
Method Details
-
getId
String getId()Gets the ID of this NPC entry- Returns:
- The ID of this NPC entry
-
getNpc
Npc getNpc()Gets the NPC of this NPC entry- Returns:
- The
Npcof this NPC entry
-
isProcessed
boolean isProcessed()Gets if this NPC entry is processed or not- Returns:
- If this NPC entry is processed or not
-
setProcessed
void setProcessed(boolean value) Sets if this NPC entry is processed or not- Parameters:
value- If this NPC entry is processed or not
-
isSave
boolean isSave()- Returns:
- If this NPC entry SHOULD be saved into the storage or not
-
setSave
void setSave(boolean value) Sets if this NPC should be saved or not- Parameters:
value- If this NPC entry should be saved or not
-
isAllowCommandModification
boolean isAllowCommandModification()Gets if this NPC can be modified by commands- Returns:
trueif this NPC can be modified by commands,falseotherwise
-
setAllowCommandModification
void setAllowCommandModification(boolean value) Sets if this NPC can be modified by commands- Parameters:
value-trueif this NPC can be modified by commands,falseotherwise
-
enableEverything
void enableEverything()Enables everything for this NPC entry That is, it makes the NPC processed, saveable, and allows command modification
-