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 Type
    Method
    Description
    boolean
    interact(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:
      true when the native runtime accepted the action