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:
parent
b97361516c
commit
73df32172e
|
@ -101,6 +101,14 @@ public interface NPC {
|
|||
* @return Object instance.
|
||||
*/
|
||||
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.
|
||||
|
|
Loading…
Reference in New Issue