Interface Controller

All Known Implementing Classes:
AbstractController, BeeController, GoalController, MobController, PlayerController

public interface Controller
Represents a source of control input for an entity or system.

Controllers provide ControlIntent objects that describe intended actions or commands, which can be consumed by entities or systems to drive behavior.

  • Method Summary

    Modifier and Type
    Method
    Description
    Retrieves the current control intent, if one is available.
  • Method Details

    • getIntent

      Optional<ControlIntent> getIntent()
      Retrieves the current control intent, if one is available.

      The returned Optional may be empty if there is no intent to process at the current moment.

      Returns:
      an Optional containing the current ControlIntent, or empty if no intent is present