Class GroundItemMenuActionResolver

    • Constructor Detail

      • GroundItemMenuActionResolver

        public GroundItemMenuActionResolver()
    • Method Detail

      • getEntityType

        public java.lang.Class<GroundItem> getEntityType()
        Description copied from interface: MenuActionResolver
        The entity type this resolver handles. Used for registry lookup.
        Specified by:
        getEntityType in interface MenuActionResolver<GroundItem>
        Returns:
        Class<T> The type of game entity this resolver handles (e.g. NPC, Widget, TileObject, etc.)
      • resolve

        public java.util.Optional<ResolvedMenuAction> resolve​(GroundItem item,
                                                              java.lang.String action)
        Description copied from interface: MenuActionResolver
        Resolves the appropriate menu action for the given entity and action string.
        Specified by:
        resolve in interface MenuActionResolver<GroundItem>
        Parameters:
        item - The game entity to interact with
        action - The action string (e.g. "Attack", "Talk-to", "Examine")
        Returns:
        An Optional containing the resolved action, or empty if resolution failed