Interface CrewEntityActionProvider


  • public interface CrewEntityActionProvider
    Implement this interface if your entity provides a custom entity action that has to be executed by CrewEntity
    • Method Detail

      • hasCrewEntityAction

        boolean hasCrewEntityAction()
      • getCrewEntityAction

        String getCrewEntityAction()
      • serverExecuteCrewEntityAction

        boolean serverExecuteCrewEntityAction​(CrewEntity crewEntity,
                                              GameSession gameSession)
        Executes custom entity action
        Parameters:
        crewEntity - Crew entity that executes the action
        gameSession - game session
        Returns:
        true if action has been finished and entity action should be aborted; false if action continues;