Add getState(NPCState)

Adds NPC#getState(NPCState) to return a boolean indicating whether the NPC in question has a specific state.
This commit is contained in:
A248
2019-10-31 20:10:20 -04:00
committed by GitHub
parent b97361516c
commit 73df32172e
@@ -102,6 +102,14 @@ public interface NPC {
*/ */
NPC toggleState(NPCState state); NPC toggleState(NPCState state);
/**
* Get state of NPC.
*
* @param state The state requested.
* @return boolean on/off status.
*/
boolean getState(NPCState state);
/** /**
* Change the item in the inventory of the NPC. * Change the item in the inventory of the NPC.
* *