api: Implement isInteractible
This commit is contained in:
@@ -41,8 +41,8 @@ public interface NPCDefinition
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* The 5 menuops this NPC has when in world. Index 0 corresponds to
|
* The 5 menuops this NPC has when in world. Index 0 corresponds to
|
||||||
* {@link MenuAction#NPC_FIRST_OPTION}, Index 2 to
|
* {@link MenuOpcode#NPC_FIRST_OPTION}, Index 2 to
|
||||||
* {@link MenuAction#NPC_SECOND_OPTION} and so on.
|
* {@link MenuOpcode#NPC_SECOND_OPTION} and so on.
|
||||||
*/
|
*/
|
||||||
String[] getActions();
|
String[] getActions();
|
||||||
|
|
||||||
@@ -50,6 +50,12 @@ public interface NPCDefinition
|
|||||||
|
|
||||||
boolean isFollower();
|
boolean isFollower();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* NPC can be interacting with via menu options
|
||||||
|
* @return
|
||||||
|
*/
|
||||||
|
boolean isInteractible();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Gets whether the NPC is visible on the mini-map.
|
* Gets whether the NPC is visible on the mini-map.
|
||||||
*/
|
*/
|
||||||
@@ -92,4 +98,4 @@ public interface NPCDefinition
|
|||||||
* Gets the displayed overhead icon of the NPC.
|
* Gets the displayed overhead icon of the NPC.
|
||||||
*/
|
*/
|
||||||
HeadIcon getOverheadIcon();
|
HeadIcon getOverheadIcon();
|
||||||
}
|
}
|
||||||
@@ -25,6 +25,10 @@ public interface RSNPCDefinition extends NPCDefinition
|
|||||||
@Override
|
@Override
|
||||||
boolean isFollower();
|
boolean isFollower();
|
||||||
|
|
||||||
|
@Import("isInteractable")
|
||||||
|
@Override
|
||||||
|
boolean isInteractible();
|
||||||
|
|
||||||
@Import("drawMapDot")
|
@Import("drawMapDot")
|
||||||
@Override
|
@Override
|
||||||
boolean isMinimapVisible();
|
boolean isMinimapVisible();
|
||||||
|
|||||||
Reference in New Issue
Block a user