Package com.valhalla.sdk.api.entities
Interface Interactable
- All Known Subinterfaces:
GameObject
- All Known Implementing Classes:
GroundItem,Npc,SceneObject
public interface Interactable
Snapshot that can dispatch a native action opcode.
A true result means the runtime accepted the action for dispatch. It
does not prove that the server completed the interaction. Scripts should verify
the expected state change before issuing another action.
-
Method Summary
Modifier and TypeMethodDescriptionbooleaninteract(int action) Dispatches a native menu-action opcode for this snapshot.
-
Method Details
-
interact
boolean interact(int action) Dispatches a native menu-action opcode for this snapshot.- Parameters:
action- action opcode defined by the entity-specific action enum- Returns:
truewhen the native runtime accepted the action
-