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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 8 additions and 0 deletions

View File

@ -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.