Interface Interactable

All Superinterfaces:
Actionable
All Known Implementing Classes:
EffectObject, Entity, InterfaceComponent, Item, Npc, PathingEntity, Pickable, Player, Projectile, SceneObject

public interface Interactable extends Actionable
  • Method Details

    • 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
    • interact

      default boolean interact(Predicate<String> predicate)
    • actionOf

      MenuAction actionOf(String action)
    • actionOf

      default MenuAction actionOf(Predicate<String> predicate)