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:
@@ -101,6 +101,14 @@ public interface NPC {
|
|||||||
* @return Object instance.
|
* @return Object instance.
|
||||||
*/
|
*/
|
||||||
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.
|
||||||
|
|||||||
Reference in New Issue
Block a user