Interface Interactable

    • Method Detail

      • interact

        default boolean interact​(String... actions)
        Iterates through @actions and returns true if the interaction was successful
        Parameters:
        actions - The actions to check
        Returns:
        true if the interaction was successful
      • interact

        default boolean interact​(Predicate<String> action,
                                 InterfaceAddress... dialog)
        Parameters:
        action - The interact option
        dialog - The dialog options to process after the interaction, in the same tick. Note: This requires the entity to be within 1 manhattan tile
        Returns:
        true if successful
      • interact

        default boolean interact​(String action,
                                 InterfaceAddress... dialog)
        Parameters:
        action - The interact option
        dialog - The dialog options to process after the interaction, in the same tick. Note: This requires the entity to be within 1 manhattan tile
        Returns:
        true if successful
      • interact

        default boolean interact​(String action)
        Parameters:
        action - The action to interact with
        Returns:
        true if the interaction was successful